Skip to content

Commit 9d62246

Browse files
committed
Add package-lock.json files to user tests
1 parent 3b919e2 commit 9d62246

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ internal/
7272
yarn.lock
7373
yarn-error.log
7474
.parallelperf.*
75-
tests/cases/user/*/package-lock.json
7675
tests/cases/user/*/node_modules/
7776
tests/cases/user/*/**/*.js
7877
tests/cases/user/*/**/*.js.map

src/testRunner/externalCompileRunner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ namespace Harness {
6767
cwd = config.path ? path.join(cwd, config.path) : submoduleDir;
6868
}
6969
if (fs.existsSync(path.join(cwd, "package.json"))) {
70-
if (fs.existsSync(path.join(cwd, "package-lock.json"))) {
70+
if (process.env.TRAVIS_EVENT_TYPE === "cron" && fs.existsSync(path.join(cwd, "package-lock.json"))) {
7171
fs.unlinkSync(path.join(cwd, "package-lock.json"));
7272
}
7373
if (fs.existsSync(path.join(cwd, "node_modules"))) {
@@ -337,4 +337,4 @@ ${stderr.replace(/\r\n/g, "\n")}`;
337337
}
338338
return result;
339339
}
340-
}
340+
}

0 commit comments

Comments
 (0)