ethers.js/misc/admin/lib/cmds/peg-version.js

17 lines
386 B
JavaScript
Raw Normal View History

2022-01-06 11:53:52 +03:00
/*
import { dirnames, getPackage } from "../local";
import { colorify } from "../log";
const dirname = process.argv[2];
if (dirname == null) {
console.log("Usage: peg-version DIRNAME");
process.exit(1);
}
(async function(dirname) {
const { name, version } = getPackage(dirname);
console.log(colorify.bold(`Pegging ${ name } to ${ version }...`));
})(dirname);
*/