Skip to content

Commit 1818a7e

Browse files
authored
Merge pull request #994 from ember-cli/ignore-scripts-by-default
2 parents 619c772 + 9d73a89 commit 1818a7e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/dependency-manager-adapters/pnpm.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

test/dependency-manager-adapters/pnpm-adapter-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)