-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(js): standalone executor for generating package.json #16330
feat(js): standalone executor for generating package.json #16330
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
896c1ca
to
c200fe9
Compare
92a7403
to
cf9f7f1
Compare
Updated everything to the new |
cf9f7f1
to
c5d1a2d
Compare
Looking forward to using this executor. |
c171f34
to
32cae5c
Compare
rebased with master |
@jensbodal Is there any way I can temporarily use this PR for testing? |
* generates a package.json based on the project's dependencies in node_modules * moves getExtraDependencies helper from esbuild package to js package
32cae5c
to
34b5ce7
Compare
You're welcome to if you want. I just rebased with master again. As for how the best way to do that I'm not sure since I think part of the release process creates the proper packages from the monorepo. I'm guessing you could install my fork locally then point your local install to it via a file alias. |
Hi @jensbodal, thank you for this PR. Unfortunately, this is not something we want to implement in nx. The |
@meeroslav I must be misunderstanding here. How does the Is it possible that you are saying that the |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Sorry @SmoshySmosh, your message got somehow lost. The package json creation logic from You can see how to use it here: https://nx.dev/recipes/ci/ci-deployment For libraries, we are now deprecating this functionality and suggest that you use the new linter rule - https://nx.dev/packages/eslint-plugin/documents/dependency-checks |
Current Behavior
Currently each executor implements their own (generally similar) logic for generating a package.json. Adding this executor and function should allow for
dependsOn
Expected Behavior
If an executor is missing the ability to generate a
package.json
file this executor can be called independsOn
to provide the functionality.Related Issue(s)
Related to #16042 which doesn't necessarily fix that issue but can allow generating a
package.json
by calling this executor in the depends on block.Example
project.json
: