-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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(core): esbuild generateLockfile according to docs #18413
fix(core): esbuild generateLockfile according to docs #18413
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution @Firfi !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add a e2e check? I'll show you where exactly!
Maybe add a line to check below here:
https://github.com/nrwl/nx/blob/master/e2e/esbuild/src/esbuild.test.ts#L54
like:
checkFilesExist(`dist/libs/${myPkg}/package-lock.json`);
e54f714
to
f1ca6ca
Compare
f1ca6ca
to
bc7a76f
Compare
Thank you @Firfi ! I'll take over from here, don't worry! |
@mandarini thank you for this direction. I've added a test. There's a peculiarity I found though. Depending on the package manager used, the code would generate an appropriate lockfile. So, for my project, it generates package-lock.json, but in e2e, it generates pnpm-lock. I tried to switch to Yarn, and it does start generating yarn.lock. |
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. |
Current Behavior
esbuild:esbuild executor will generate package.json
Expected Behavior
esbuild:esbuild executor will generate package.json together with a lockfile according to documentation https://nx.dev/packages/esbuild/executors/esbuild#generatepackagejson