Files
js/packages/cli/scripts/generate-thirdweb-package.js
T
2022-08-28 01:00:28 -07:00

18 lines
509 B
JavaScript

const fs = require("fs");
const existingPackageJson = JSON.parse(fs.readFileSync("package.json", "utf8"));
const newPackageJson = { ...existingPackageJson, name: "thirdweb" };
fs.writeFileSync("package.json", JSON.stringify(newPackageJson, null, 2));
fs.writeFileSync(
"README.md",
`# thirdweb cli
This is a proxied package of the \`@thirdweb-dev/cli\` for convenient usage with \`npx thirdweb\`.
You can find the actual package [here](https://www.npmjs.com/package/@thirdweb-dev/cli).
`
);