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(core): esbuild generateLockfile according to docs #18413

Merged
merged 4 commits into from
Aug 1, 2023

Conversation

dearlordylord
Copy link
Contributor

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

@dearlordylord dearlordylord requested a review from a team as a code owner August 1, 2023 07:16
@vercel
Copy link

vercel bot commented Aug 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2023 1:23pm

Copy link
Member

@mandarini mandarini left a 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 !

Copy link
Member

@mandarini mandarini left a 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`);

@mandarini
Copy link
Member

Thank you @Firfi ! I'll take over from here, don't worry!

@dearlordylord
Copy link
Contributor Author

dearlordylord commented Aug 1, 2023

@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.

@mandarini mandarini merged commit a5d6a29 into nrwl:master Aug 1, 2023
15 checks passed
@dearlordylord dearlordylord deleted the feat/esbuild-generateLockfile branch August 1, 2023 13:30
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

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.

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

Successfully merging this pull request may close these issues.

None yet

2 participants