Skip to content

Commit

Permalink
fix(ng-dev): avoid ts-node esm shebang that breaks on windows
Browse files Browse the repository at this point in the history
Consumers should instead run `ts-node` as well. They need to pass in
the project manually anyway already, so it also makes this portion
easier by just having to directly use `ts-node` with `--project`.
  • Loading branch information
devversion committed Jun 18, 2022
1 parent 3faf6c0 commit 91c9200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ng-dev/cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env -S node --loader ts-node/esm --no-warnings
#!/usr/bin/env node

/**
* @license
* Copyright Google LLC All Rights Reserved.
Expand Down
2 changes: 1 addition & 1 deletion tools/local-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ bazelCommand=${BAZEL:-"yarn bazel"}

# Execute the built ng-dev command in the current working directory
# and pass-through arguments unmodified.
${ngDevBinFile} ${@}
yarn ts-node --esm --project .ng-dev/tsconfig.json ${ngDevBinFile} ${@}

0 comments on commit 91c9200

Please sign in to comment.