Skip to content

Commit b47671c

Browse files
fix(cli): start script paths in Bun and Node runtime setup
1 parent de8d980 commit b47671c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/major-fans-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-better-t-stack": patch
3+
---
4+
5+
Fix start script paths in Bun and Node runtime setup

apps/cli/src/helpers/setup/runtime-setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async function setupBunRuntime(
7777
packageJson.scripts = {
7878
...packageJson.scripts,
7979
dev: "bun run --hot src/index.ts",
80-
start: "bun run dist/src/index.js",
80+
start: "bun run dist/index.js",
8181
};
8282

8383
await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 });
@@ -100,7 +100,7 @@ async function setupNodeRuntime(
100100
packageJson.scripts = {
101101
...packageJson.scripts,
102102
dev: "tsx watch src/index.ts",
103-
start: "node dist/src/index.js",
103+
start: "node dist/index.js",
104104
};
105105

106106
await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 });

0 commit comments

Comments
 (0)