Skip to content

Commit bf8076e

Browse files
committed
ci: removes node_modules if it has changed
1 parent ac1599c commit bf8076e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/e2e.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ function setupE2e() {
131131
}
132132

133133
if (!packagesOk) {
134+
// faster to remove them first
135+
log(` [template: ${name}]`, 'removing `node_modules` directory')
136+
fs.removeSync(path.join(dir, 'node_modules'))
134137
if (npm.can.ci()) {
135138
log(` [template: ${name}]`, 'installing packages using "npm ci"')
136139
spawnSync('npm', ['ci'], { cwd: dir })

0 commit comments

Comments
 (0)