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

Support node --run #210

Open
3 tasks done
BoscoDomingo opened this issue May 16, 2024 · 2 comments
Open
3 tasks done

Support node --run #210

BoscoDomingo opened this issue May 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@BoscoDomingo
Copy link

Clear and concise description of the problem

Node 22 introduced the --run flag, which allows it to run scripts in the same way npm, pnpm, yarn and bun do. It'd be nice to support this, since it seems to be significantly faster

Suggested solution

Add node --run to the list of options that the nr command can use

Alternative

No response

Additional context

No response

Validations

@BoscoDomingo BoscoDomingo added the enhancement New feature or request label May 16, 2024
@antfu
Copy link
Member

antfu commented May 16, 2024

PR welcome - tho I don't know if there is way we could detect that

@BoscoDomingo
Copy link
Author

PR welcome - tho I don't know if there is way we could detect that

@antfu I would assume that first checking if Node >= 22. After that, maybe ask users if they prefer to use whatever package manager they use, or node --run. If they use npm, I would turn it on by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants