17 lines
386 B
JavaScript
17 lines
386 B
JavaScript
|
/*
|
||
|
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);
|
||
|
*/
|