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

14 lines
411 B
TypeScript

import { dirs, isEthers } from "../path";
import { getDependencies, updateJson } from "../local";
(async function() {
const dependencies = getDependencies(null, (name: string) => {
return !isEthers(name);
});
updateJson(dirs.rootPackageJsonPath, { dependencies });
})().catch((error) => {
console.log(`Error running ${ process.argv[0] }: ${ error.message }`);
process.exit(1);
});