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