11 lines
317 B
TypeScript
11 lines
317 B
TypeScript
import { createZPM } from "./lib";
|
|
import { promises as fs } from "fs";
|
|
|
|
const main = async () => {
|
|
const packageJSON = JSON.parse(await fs.readFile("./package.json", "utf-8"));
|
|
const { name, version } = packageJSON;
|
|
console.log(`Building ${name} v${version}`);
|
|
await createZPM({ name, version });
|
|
}
|
|
|
|
main();
|