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

feat(essentials): support forwarding --require in yarn run #4376

Merged

Conversation

juan-fernandez
Copy link
Contributor

@juan-fernandez juan-fernandez commented Apr 19, 2022

What's the problem this PR addresses?

There isn't a way to pass a --require option to the underlying node process. This makes it impossible to preload a module at startup time.

How did you fix it?

Add a new --require option that is passed as a node argument to the underlying node process, similarly to what is done for --inspect or --inspect-brk

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@merceyz merceyz changed the title Add --require option to the CLI feat(essentials): support forwarding --require in yarn run Apr 19, 2022
@juan-fernandez juan-fernandez marked this pull request as ready for review April 20, 2022 08:51
@arcanis arcanis merged commit 2cf0a8f into yarnpkg:master Apr 20, 2022
merceyz pushed a commit that referenced this pull request Oct 21, 2023
* add require flag

* add version check

* update versions

* Update run.ts

Co-authored-by: Maël Nison <nison.mael@gmail.com>
(cherry picked from commit 2cf0a8f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants