Skip to content

Commit 0eef927

Browse files
authored
Update npm in user tests (#42841)
* Update npm in user tests * Update npm baseline * update tsconfig of npm user test * Use source repo npm/cli instead * update baseline
1 parent e961916 commit 0eef927

File tree

6 files changed

+129
-1844
lines changed

6 files changed

+129
-1844
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ tests/baselines/reference/dt
8585
.failed-tests
8686
TEST-results.xml
8787
package-lock.json
88+
tests/cases/user/npm/npm
8889
tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
8990
tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
9091
tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter

tests/baselines/reference/user/npm.log

Lines changed: 114 additions & 1814 deletions
Large diffs are not rendered by default.

tests/cases/user/npm/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/cases/user/npm/package.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/cases/user/npm/test.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"cloneUrl": "https://github.com/npm/cli.git",
3+
"types": ["node"]
4+
}

tests/cases/user/npm/tsconfig.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
{
22
"compilerOptions": {
3+
"moduleResolution": "node",
4+
"module": "commonjs",
5+
"resolveJsonModule": true,
6+
"target": "es2019",
37
"noImplicitAny": false,
4-
"noImplicitThis": false,
5-
"maxNodeModuleJsDepth": 0,
8+
"noImplicitThis": true,
69
"strict": true,
10+
"maxNodeModuleJsDepth": 0,
711
"noEmit": true,
812
"allowJs": true,
913
"checkJs": true,
10-
"types": [
11-
"node"
12-
],
13-
"lib": [
14-
"esnext",
15-
"dom",
16-
"scripthost"
17-
]
14+
"types": ["node"],
15+
"lib": ["esnext"]
1816
},
19-
"include": [
20-
"node_modules/npm",
21-
"index.ts"
22-
]
23-
}
17+
"include": ["npm/lib"]
18+
}

0 commit comments

Comments
 (0)