File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,17 @@ const promises = fixtures.map((fixture) =>
44
44
} )
45
45
}
46
46
47
- // npm is the default
48
- let cmd = `npm install --no-audit --progress=false --prefer-offline --legacy-peer-deps`
47
+ let cmd = ``
49
48
const { packageManager } = JSON . parse ( await readFile ( join ( cwd , 'package.json' ) , 'utf8' ) )
50
49
if ( packageManager ?. startsWith ( 'pnpm' ) ) {
51
50
// We disable frozen-lockfile because we may have changed the version of Next.js
52
51
cmd = `pnpm install --frozen-lockfile=false ${
53
52
process . env . DEBUG || NEXT_VERSION !== 'latest' ? '' : '--reporter silent'
54
53
} `
54
+ } else {
55
+ // npm is the default
56
+ cmd = `npm install --no-audit --progress=false --prefer-offline --legacy-peer-deps`
57
+ await rm ( join ( cwd , 'package-lock.json' ) , { force : true } )
55
58
}
56
59
57
60
const addPrefix = new Transform ( {
You can’t perform that action at this time.
0 commit comments