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 3a2848c commit f3bced1Copy full SHA for f3bced1
README.md
@@ -162,11 +162,17 @@ 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
- #!/usr/bin/env ts-node --files
167
- // This shebang is not portable. It only works on Mac
+- On Mac:
168
169
-Instead, specify all ts-node options in your `tsconfig.json`.
+ #!/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.
176
177
## Programmatic
178
0 commit comments