Skip to content

Commit 507a7e2

Browse files
devversiondgp1130
authored andcommitted
build: ensure ng-dev command works on windows
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.
1 parent 6677994 commit 507a7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"build:bazel": "node ./bin/devkit-admin build-bazel",
2525
"build-tsc": "tsc -p tsconfig.json",
2626
"lint": "eslint --cache --max-warnings=0 \"**/*.ts\"",
27-
"ng-dev": "TS_NODE_PROJECT=$PWD/.ng-dev/tsconfig.json node_modules/@angular/dev-infra-private/ng-dev/bundles/cli.mjs",
27+
"ng-dev": "ts-node --esm --project .ng-dev/tsconfig.json node_modules/@angular/dev-infra-private/ng-dev/bundles/cli.mjs",
2828
"templates": "node ./bin/devkit-admin templates",
2929
"validate": "node ./bin/devkit-admin validate",
3030
"postinstall": "yarn webdriver-update && yarn husky install",

0 commit comments

Comments
 (0)