ethers.js/misc/admin/src.ts/cmds/update-depgraph.ts

16 lines
387 B
TypeScript
Raw Permalink Normal View History

import { getOrdered } from "../depgraph";
import { resolve } from "../path";
import { updateJson } from "../local";
(async function() {
const ordered = getOrdered(true);
updateJson(resolve("tsconfig.project.json"), {
references: ordered.map((name) => ({ path: ("./packages/" + name) }))
});
})().catch((error) => {
console.log(error);
process.exit(1);
});