We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3059e44 commit 1a5c512Copy full SHA for 1a5c512
README.md
@@ -162,17 +162,11 @@ console.log("Hello, world!")
162
```
163
164
Passing CLI arguments via shebang is allowed on Mac but not Linux. For example, the following will fail on Linux:
165
-### Passing CLI arguments via shebang
166
167
-- On Mac:
+ #!/usr/bin/env ts-node --files
+ // This shebang is not portable. It only works on Mac
168
169
- #!/usr/bin/env ts-node --files
170
-
171
-- On Linux:
172
173
- #!/usr/bin/env -S ts-node --files
174
175
- The `-S` option for `env` processes and splits what comes after it into separate arguments; and is used to pass multiple arguments on shebang lines.
+Instead, specify all ts-node options in your `tsconfig.json`.
176
177
## Programmatic
178
0 commit comments