Skip to content

Commit

Permalink
fix: executable issue for linux users (#1115)
Browse files Browse the repository at this point in the history
## 🧰 Changes

Linux requires the `-S` flag when passing options to `node` command-line
in executable files. This was fun to troubleshoot 🥴

## 🧬 QA & Testing

Can Linux users run the CLI again? 😮‍💨
  • Loading branch information
kanadgupta authored Dec 9, 2024
1 parent 1f9c864 commit 4319fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/dev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env npx tsx
#!/usr/bin/env -S npx tsx

async function main() {
const { execute } = await import('@oclif/core');
Expand Down
2 changes: 1 addition & 1 deletion bin/run.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node --no-warnings=ExperimentalWarning
#!/usr/bin/env -S node --no-warnings=ExperimentalWarning
// ^ we need this env variable above to hide the ExperimentalWarnings
// source: https://github.com/nodejs/node/issues/10802#issuecomment-573376999

Expand Down

0 comments on commit 4319fb5

Please sign in to comment.