Skip to content

Commit

Permalink
chore: windows local development fix (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored Sep 9, 2024
1 parent 1eb41fd commit 794ae46
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/create-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"create-tutorial": "./dist/index.js"
},
"scripts": {
"build": "rm -rf dist && tsc -b",
"build": "node ./scripts/build.js",
"prepublishOnly": "pnpm run build"
},
"files": [
Expand All @@ -27,6 +27,7 @@
},
"devDependencies": {
"@types/node": "^20.14.6",
"execa": "^9.2.0",
"typescript": "^5.4.5"
}
}
5 changes: 5 additions & 0 deletions packages/create-tutorial/scripts/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { rm } from 'node:fs/promises';
import { execa } from 'execa';

await rm('dist', { recursive: true, force: true });
await execa('tsc', ['-b'], { stdio: 'inherit', preferLocal: true });
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 794ae46

Please sign in to comment.