Skip to content

Commit 1a5c512

Browse files
committed
fix
1 parent 3059e44 commit 1a5c512

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,11 @@ console.log("Hello, world!")
162162
```
163163

164164
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
166165

167-
- On Mac:
166+
#!/usr/bin/env ts-node --files
167+
// This shebang is not portable. It only works on Mac
168168

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.
169+
Instead, specify all ts-node options in your `tsconfig.json`.
176170

177171
## Programmatic
178172

0 commit comments

Comments
 (0)