()
| 9 | import boxen from "boxen"; |
| 10 | |
| 11 | export function getPackageInfo() { |
| 12 | const __filename = fileURLToPath(import.meta.url); |
| 13 | const __dirname = path.dirname(__filename); |
| 14 | |
| 15 | const packageJsonPath = path.resolve(__dirname, "../package.json"); |
| 16 | return fs.readJSONSync(packageJsonPath) as PackageJson; |
| 17 | } |
| 18 | |
| 19 | export function addPackageJSONScripts(scripts: Record<string, string>) { |
| 20 | const packageJsonPath = path.resolve("./package.json"); |