Skip to content

Commit 57a196d

Browse files
committed
Add package-lock.json files to user tests
1 parent 7cc4a8d commit 57a196d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
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
@@ -83,7 +82,7 @@ tests/cases/user/*/**/*.d.ts
8382
tests/baselines/reference/dt
8483
.failed-tests
8584
TEST-results.xml
86-
package-lock.json
85+
/package-lock.json
8786
tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
8887
tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
8988
tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter

src/testRunner/externalCompileRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ namespace Harness {
6969
cwd = config.path ? path.join(cwd, config.path) : submoduleDir;
7070
}
7171
if (fs.existsSync(path.join(cwd, "package.json"))) {
72-
if (fs.existsSync(path.join(cwd, "package-lock.json"))) {
72+
if (!process.env.SOURCE_ISSUE && fs.existsSync(path.join(cwd, "package-lock.json"))) {
7373
fs.unlinkSync(path.join(cwd, "package-lock.json"));
7474
}
7575
if (fs.existsSync(path.join(cwd, "node_modules"))) {

0 commit comments

Comments
 (0)