mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: npm 7 compat
This commit is contained in:
2
.github/workflows/npm_release_tns_core.yml
vendored
2
.github/workflows/npm_release_tns_core.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup
|
||||
run: npm install
|
||||
run: npm install --legacy-peer-deps
|
||||
|
||||
- name: Generate Version
|
||||
run: |
|
||||
|
||||
2
.github/workflows/npm_release_webpack.yml
vendored
2
.github/workflows/npm_release_webpack.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup
|
||||
run: npm install
|
||||
run: npm install --legacy-peer-deps
|
||||
|
||||
- name: Generate Version
|
||||
working-directory: packages/webpack
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"url": "https://github.com/NativeScript/NativeScript.git"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "npx rimraf hooks node_modules platforms package-lock.json && npm i"
|
||||
"clean": "npx rimraf hooks node_modules platforms package-lock.json && npm i --legacy-peer-deps"
|
||||
},
|
||||
"dependencies": {
|
||||
"nativescript-theme-core": "file:../../node_modules/nativescript-theme-core",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"clean": "git clean -f -X -d --exclude=!.idea/ --exclude=!.vscode/*",
|
||||
"setup": "npm run clean && npm install",
|
||||
"setup": "npm run clean && npm install --legacy-peer-deps",
|
||||
"setup:yarn": "yarn run clean && yarn",
|
||||
"setup:pnpm": "pnpm run clean && pnpm install",
|
||||
"postinstall": "ts-patch install && husky install && nx run core:setup",
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"url": "https://github.com/NativeScript/nativescript-dev-webpack.git"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "npx rimraf -- node_modules package-lock.json && npm i --ignore-scripts",
|
||||
"clean": "npx rimraf -- node_modules package-lock.json && npm i --ignore-scripts --legacy-peer-deps",
|
||||
"tsc": "tsc",
|
||||
"postinstall": "node postinstall.js",
|
||||
"preuninstall": "node preuninstall.js",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"clean": {
|
||||
"builder": "@nrwl/workspace:run-commands",
|
||||
"options": {
|
||||
"commands": ["npx rimraf -- hooks node_modules platforms package-lock.json webpack.config.js", "npm i", "npx rimraf -- package-lock.json"],
|
||||
"commands": ["npx rimraf -- hooks node_modules platforms package-lock.json webpack.config.js", "npm i --legacy-peer-deps", "npx rimraf -- package-lock.json"],
|
||||
"cwd": "apps/automated",
|
||||
"parallel": false
|
||||
}
|
||||
@@ -58,7 +58,7 @@
|
||||
"clean": {
|
||||
"builder": "@nrwl/workspace:run-commands",
|
||||
"options": {
|
||||
"commands": ["npx rimraf -- hooks node_modules platforms package-lock.json webpack.config.js", "npm i", "npx rimraf -- package-lock.json"],
|
||||
"commands": ["npx rimraf -- hooks node_modules platforms package-lock.json webpack.config.js", "npm i --legacy-peer-deps", "npx rimraf -- package-lock.json"],
|
||||
"cwd": "apps/toolbox",
|
||||
"parallel": false
|
||||
}
|
||||
@@ -90,7 +90,7 @@
|
||||
"clean": {
|
||||
"builder": "@nrwl/workspace:run-commands",
|
||||
"options": {
|
||||
"commands": ["npx rimraf -- hooks node_modules platforms package-lock.json webpack.config.js", "npm i", "npx rimraf -- package-lock.json"],
|
||||
"commands": ["npx rimraf -- hooks node_modules platforms package-lock.json webpack.config.js", "npm i --legacy-peer-deps", "npx rimraf -- package-lock.json"],
|
||||
"cwd": "apps/ui",
|
||||
"parallel": false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user