File tree Expand file tree Collapse file tree
lib/dependency-manager-adapters
test/dependency-manager-adapters Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,6 +122,10 @@ module.exports = CoreObject.extend({
122122 if ( ! mgrOptions . includes ( '--no-lockfile' ) ) {
123123 mgrOptions . push ( '--no-lockfile' ) ;
124124 }
125+
126+ if ( ! mgrOptions . includes ( '--ignore-scripts' ) ) {
127+ mgrOptions . push ( '--ignore-scripts' ) ;
128+ }
125129 }
126130
127131 // Note: We are explicitly *not* using `--no-lockfile` here, so that we
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ describe('pnpm Adapter', () => {
121121 let stubbedRun = generateMockRun (
122122 [
123123 {
124- command : 'pnpm install --no-lockfile' ,
124+ command : 'pnpm install --no-lockfile --ignore-scripts ' ,
125125 async callback ( command , args , opts ) {
126126 runCount ++ ;
127127 expect ( opts ) . to . have . property ( 'cwd' , tmpdir ) ;
@@ -226,7 +226,7 @@ describe('pnpm Adapter', () => {
226226 let stubbedRun = generateMockRun (
227227 [
228228 {
229- command : 'pnpm install --no-lockfile' ,
229+ command : 'pnpm install --no-lockfile --ignore-scripts ' ,
230230 async callback ( command , args , opts ) {
231231 runCount ++ ;
232232 expect ( opts ) . to . have . property ( 'cwd' , tmpdir ) ;
You can’t perform that action at this time.
0 commit comments