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:
Nathan Shively-Sanders 2021-02-18 17:06:58 -08:00 committed by GitHub
parent e961916217
commit 0eef927713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 146 additions and 1861 deletions

1
.gitignore vendored
View File

@ -85,6 +85,7 @@ tests/baselines/reference/dt
.failed-tests
TEST-results.xml
package-lock.json
tests/cases/user/npm/npm
tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
import x = require('npm');

View File

@ -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"
}
}

View File

@ -0,0 +1,4 @@
{
"cloneUrl": "https://github.com/npm/cli.git",
"types": ["node"]
}

View File

@ -1,23 +1,18 @@
{
"compilerOptions": {
"moduleResolution": "node",
"module": "commonjs",
"resolveJsonModule": true,
"target": "es2019",
"noImplicitAny": false,
"noImplicitThis": false,
"maxNodeModuleJsDepth": 0,
"noImplicitThis": true,
"strict": true,
"maxNodeModuleJsDepth": 0,
"noEmit": true,
"allowJs": true,
"checkJs": true,
"types": [
"node"
],
"lib": [
"esnext",
"dom",
"scripthost"
]
"types": ["node"],
"lib": ["esnext"]
},
"include": [
"node_modules/npm",
"index.ts"
]
}
"include": ["npm/lib"]
}