Skip to content

Commit

Permalink
fix: pkg-install unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Oct 22, 2024
1 parent 4e8b7a0 commit 9c6e64d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/nx-verdaccio/src/executors/pkg-install/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export default async function runNpmInstallExecutor(
_: [
'install',
`${packageNameAndVersion}`,
'--include=prod --include=dev --include=optional --include=peer', // install all the deps of the package
'--include=prod',
'--include=dev',
'--include=optional',
'--include=peer', // install all the deps of the package
],
fund: false, // avoid polluted terminal
shrinkwrap: false, // avoid package-lock creation or update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ describe('runNpmInstallExecutor', () => {
args: [
'install',
'[email protected]',
'--include=prod',
'--include=dev',
'--include=optional',
'--include=peer',
'--no-fund',
'--no-shrinkwrap',
'--save',
Expand Down

0 comments on commit 9c6e64d

Please sign in to comment.