Skip to content

Commit 0eef927

Browse files
authored
Update npm in user tests (microsoft#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

Diff for: .gitignore

+1
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

Diff for: tests/baselines/reference/user/npm.log

+114-1,814
Large diffs are not rendered by default.

Diff for: tests/cases/user/npm/index.ts

-1
This file was deleted.

Diff for: tests/cases/user/npm/package.json

-14
This file was deleted.

Diff for: tests/cases/user/npm/test.json

+4
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+
}

Diff for: tests/cases/user/npm/tsconfig.json

+10-15
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)