From 9e770142a3c98a2c405af863f011a71bbb1c442e Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Fri, 21 Jan 2022 13:59:21 -0500 Subject: [PATCH] fix --- README.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 23a079028..d55198566 100644 --- a/README.md +++ b/README.md @@ -162,17 +162,11 @@ console.log("Hello, world!") ``` Passing CLI arguments via shebang is allowed on Mac but not Linux. For example, the following will fail on Linux: -### Passing CLI arguments via shebang -- On Mac: + #!/usr/bin/env ts-node --files + // This shebang is not portable. It only works on Mac - #!/usr/bin/env ts-node --files - -- On Linux: - - #!/usr/bin/env -S ts-node --files - - 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`. ## Programmatic