Skip to content

Commit

Permalink
fix(core): esbuild generateLockfile according to docs (#18413)
Browse files Browse the repository at this point in the history
  • Loading branch information
dearlordylord committed Aug 1, 2023
1 parent 48deaec commit a5d6a29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/esbuild/src/esbuild.test.ts
Expand Up @@ -51,7 +51,10 @@ describe('EsBuild Plugin', () => {

expect(runCommand(`node dist/libs/${myPkg}/index.cjs`)).toMatch(/Hello/);
// main field should be set correctly in package.json
checkFilesExist(`dist/libs/${myPkg}/package.json`);
checkFilesExist(
`dist/libs/${myPkg}/package.json`,
`dist/libs/${myPkg}/pnpm-lock.yaml`
);
expect(runCommand(`node dist/libs/${myPkg}`)).toMatch(/Hello/);

expect(runCommand(`node dist/libs/${myPkg}/index.cjs`)).toMatch(/Hello/);
Expand Down
1 change: 1 addition & 0 deletions packages/esbuild/src/executors/esbuild/esbuild.impl.ts
Expand Up @@ -85,6 +85,7 @@ export async function* esbuildExecutor(
...options,
// TODO(jack): make types generate with esbuild
skipTypings: true,
generateLockfile: true,
outputFileExtensionForCjs: getOutExtension('cjs', options),
excludeLibsInPackageJson: !options.thirdParty,
updateBuildableProjectDepsInPackageJson: externalDependencies.length > 0,
Expand Down

1 comment on commit a5d6a29

@vercel
Copy link

@vercel vercel bot commented on a5d6a29 Aug 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx.dev
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.