Skip to content

Commit 794ae46

Browse files
authored
chore: windows local development fix (#320)
1 parent 1eb41fd commit 794ae46

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

packages/create-tutorial/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"create-tutorial": "./dist/index.js"
1717
},
1818
"scripts": {
19-
"build": "rm -rf dist && tsc -b",
19+
"build": "node ./scripts/build.js",
2020
"prepublishOnly": "pnpm run build"
2121
},
2222
"files": [
@@ -27,6 +27,7 @@
2727
},
2828
"devDependencies": {
2929
"@types/node": "^20.14.6",
30+
"execa": "^9.2.0",
3031
"typescript": "^5.4.5"
3132
}
3233
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { rm } from 'node:fs/promises';
2+
import { execa } from 'execa';
3+
4+
await rm('dist', { recursive: true, force: true });
5+
await execa('tsc', ['-b'], { stdio: 'inherit', preferLocal: true });

pnpm-lock.yaml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)