Skip to content

Commit 547d8f1

Browse files
committed
Add package-lock.json files to user tests
1 parent ea4e6b3 commit 547d8f1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
6666
cwd = config.path ? path.join(cwd, config.path) : submoduleDir;
6767
}
6868
if (fs.existsSync(path.join(cwd, "package.json"))) {
69-
if (fs.existsSync(path.join(cwd, "package-lock.json"))) {
69+
if (process.env.TRAVIS_EVENT_TYPE === "cron" && fs.existsSync(path.join(cwd, "package-lock.json"))) {
7070
fs.unlinkSync(path.join(cwd, "package-lock.json"));
7171
}
7272
if (fs.existsSync(path.join(cwd, "node_modules"))) {

0 commit comments

Comments
 (0)