Skip to content

Commit aa6c751

Browse files
committed
build: ensure ng-dev command works on windows (#25109)
Apparently the `ng-dev` command does not work with Git Bash on windows because of the environment variable being set. We should use `ts-node` directly to avoid this issue, and also avoid the `$PWD` access which might not work depending on the shell. Also on the dev-infra side we would need to remove the ts-node shebang and leave the responsibility to the consumer project. (cherry picked from commit e09841c)
1 parent 2ad1677 commit aa6c751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"scripts": {
1717
"postinstall": "node tools/postinstall/apply-patches.js",
18-
"ng-dev": "TS_NODE_PROJECT=$PWD/.ng-dev/tsconfig.json node_modules/@angular/dev-infra-private/ng-dev/bundles/cli.mjs",
18+
"ng-dev": "yarn ts-node --esm --project .ng-dev/tsconfig.json node_modules/@angular/dev-infra-private/ng-dev/bundles/cli.mjs",
1919
"build": "ts-node --esm --project scripts/tsconfig.json ./scripts/build-packages-dist-main.mts",
2020
"build-docs-content": "ts-node --esm --project scripts/tsconfig.json ./scripts/build-docs-content-main.mts",
2121
"build-and-check-release-output": "ts-node --esm --project scripts/tsconfig.json scripts/build-and-check-release-output.mts",

0 commit comments

Comments
 (0)