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
This commit is contained in:
parent
e961916217
commit
0eef927713
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -85,6 +85,7 @@ tests/baselines/reference/dt
|
||||||
.failed-tests
|
.failed-tests
|
||||||
TEST-results.xml
|
TEST-results.xml
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
tests/cases/user/npm/npm
|
||||||
tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
|
tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
|
||||||
tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
|
tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
|
||||||
tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter
|
tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1 +0,0 @@
|
||||||
import x = require('npm');
|
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"name": "npm-test",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"description": "",
|
|
||||||
"main": "index.js",
|
|
||||||
"author": "",
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"dependencies": {
|
|
||||||
"npm": "^5.7.1"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/node": "latest"
|
|
||||||
}
|
|
||||||
}
|
|
4
tests/cases/user/npm/test.json
Normal file
4
tests/cases/user/npm/test.json
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"cloneUrl": "https://github.com/npm/cli.git",
|
||||||
|
"types": ["node"]
|
||||||
|
}
|
|
@ -1,23 +1,18 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"module": "commonjs",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"target": "es2019",
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"noImplicitThis": false,
|
"noImplicitThis": true,
|
||||||
"maxNodeModuleJsDepth": 0,
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
"maxNodeModuleJsDepth": 0,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
"types": [
|
"types": ["node"],
|
||||||
"node"
|
"lib": ["esnext"]
|
||||||
],
|
|
||||||
"lib": [
|
|
||||||
"esnext",
|
|
||||||
"dom",
|
|
||||||
"scripthost"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["npm/lib"]
|
||||||
"node_modules/npm",
|
|
||||||
"index.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue