Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: follow Node.js flag handling #133

Merged
merged 9 commits into from Nov 10, 2022
Merged

fix: follow Node.js flag handling #133

merged 9 commits into from Nov 10, 2022

Conversation

privatenumber
Copy link
Owner

  • tsx --version now shows tsx's version, and passes the flag down to Node.js to show the version too
  • tsx --help now shows tsx's help, and passes the flag down to Node.js to show the help too
  • No longer implicitly accepts values to unknown flags (fix Can't use --inspect and watch at the same time #70)

@privatenumber privatenumber marked this pull request as ready for review November 10, 2022 02:44
@privatenumber privatenumber merged commit 76a83c2 into develop Nov 10, 2022
@privatenumber privatenumber deleted the remove-argv-flags branch November 10, 2022 03:07
@privatenumber
Copy link
Owner Author

🎉 This PR is included in version 3.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

tsconfigPath: argv.flags.tsconfig,
});
const childProcess = run(
removeArgvFlags(tsxFlags),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change.

When pass args to some.ts :

< 3.12.0 :

  tsx some.ts -- dev

>= 3.12.0 :

  tsx some.ts dev

follow Semantic Versioning Specification , I think should bump to 4.0.0 , not 3.12.0

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't use --inspect and watch at the same time
2 participants