fix(cli): start script paths in Bun and Node runtime setup

This commit is contained in:
Aman Varshney
2025-07-15 15:35:11 +05:30
parent de8d980036
commit b47671c24d
2 changed files with 7 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ async function setupBunRuntime(
packageJson.scripts = {
...packageJson.scripts,
dev: "bun run --hot src/index.ts",
start: "bun run dist/src/index.js",
start: "bun run dist/index.js",
};
await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 });
@@ -100,7 +100,7 @@ async function setupNodeRuntime(
packageJson.scripts = {
...packageJson.scripts,
dev: "tsx watch src/index.ts",
start: "node dist/src/index.js",
start: "node dist/index.js",
};
await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 });