ethers.js/misc/admin/src.ts/cmds/update-depgraph.ts
2020-09-21 01:14:06 -04:00

16 lines
387 B
TypeScript

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);
});