mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore: update scripts to use pnpm
This commit is contained in:
@ -26,11 +26,11 @@
|
||||
"scripts": {
|
||||
"test": "echo 'angular no tests yet'",
|
||||
"build": "ng-packagr -p ng-package.json -c tsconfig.json",
|
||||
"build.prod": "npm run clean && npm run build",
|
||||
"build.watch": "npm run build -- --watch",
|
||||
"build.prod": "pnpm run clean && pnpm run build",
|
||||
"build.watch": "pnpm run build -- --watch",
|
||||
"clean": "rm -rf ./dist",
|
||||
"lint": "eslint . --ext .ts && npm run prettier",
|
||||
"lint.fix": "eslint . --ext .ts --fix && npm run prettier.fix",
|
||||
"lint": "eslint . --ext .ts && pnpm run prettier",
|
||||
"lint.fix": "eslint . --ext .ts --fix && pnpm run prettier.fix",
|
||||
"prettier": "prettier \"**/*.ts\" --check",
|
||||
"prettier.fix": "prettier \"**/*.ts\" --write"
|
||||
},
|
||||
|
@ -24,22 +24,22 @@
|
||||
},
|
||||
"homepage": "https://ionicframework.com/",
|
||||
"scripts": {
|
||||
"build": "npm run clean && npm run build.ng && npm run build.core && npm run clean-generated",
|
||||
"build": "pnpm run clean && pnpm run build.ng && pnpm run build.core && pnpm run clean-generated",
|
||||
"build.core": "node scripts/build-core.js",
|
||||
"build.link": "npm run build && node scripts/link-copy.js",
|
||||
"build.link": "pnpm run build && node scripts/link-copy.js",
|
||||
"build.ng": "ng-packagr -p ng-package.json -c tsconfig.json",
|
||||
"build.watch": "npm run build.ng -- --watch",
|
||||
"build.watch": "pnpm run build.ng -- --watch",
|
||||
"clean": "node scripts/clean.js",
|
||||
"clean-generated": "node ./scripts/clean-generated.js",
|
||||
"lint": "npm run eslint && npm run prettier -- --write --cache",
|
||||
"lint.fix": "npm run eslint -- --fix",
|
||||
"fmt": "npm run eslint -- --fix && npm run prettier -- --write --cache",
|
||||
"lint": "pnpm run eslint && pnpm run prettier -- --write --cache",
|
||||
"lint.fix": "pnpm run eslint -- --fix",
|
||||
"fmt": "pnpm run eslint -- --fix && pnpm run prettier -- --write --cache",
|
||||
"prettier": "prettier \"**/*.ts\"",
|
||||
"eslint": "eslint . --ext .ts",
|
||||
"prerelease": "npm run validate && np prerelease --yolo --any-branch --tag next",
|
||||
"prerelease": "pnpm run validate && np prerelease --yolo --any-branch --tag next",
|
||||
"test": "echo 'angular no tests yet'",
|
||||
"tsc": "tsc -p .",
|
||||
"validate": "npm i && npm run lint && npm run test && npm run build"
|
||||
"validate": "pnpm i && pnpm run lint && pnpm run test && pnpm run build"
|
||||
},
|
||||
"exports": {
|
||||
"./css/*": {
|
||||
|
@ -20,14 +20,14 @@
|
||||
"url": "git+https://github.com/ionic-team/ionic-framework.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run clean && npm run compile",
|
||||
"build.watch": "npm run compile -- --watch",
|
||||
"build": "pnpm run clean && pnpm run compile",
|
||||
"build.watch": "pnpm run compile -- --watch",
|
||||
"clean": "rimraf dist",
|
||||
"compile": "rollup -c",
|
||||
"eslint": "eslint src",
|
||||
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
|
||||
"lint": "npm run eslint && npm run prettier -- --write --cache",
|
||||
"lint.fix": "npm run eslint -- --fix && npm run prettier -- --write --cache"
|
||||
"lint": "pnpm run eslint && pnpm run prettier -- --write --cache",
|
||||
"lint.fix": "pnpm run eslint -- --fix && pnpm run prettier -- --write --cache"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/types/index.d.ts",
|
||||
|
@ -20,14 +20,14 @@
|
||||
"url": "git+https://github.com/ionic-team/ionic-framework.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run clean && npm run copy && npm run compile",
|
||||
"build.watch": "npm run compile -- --watch",
|
||||
"build": "pnpm run clean && pnpm run copy && pnpm run compile",
|
||||
"build.watch": "pnpm run compile -- --watch",
|
||||
"clean": "rimraf dist && rimraf routing",
|
||||
"compile": "rollup -c",
|
||||
"eslint": "eslint src",
|
||||
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
|
||||
"lint": "npm run eslint && npm run prettier -- --write --cache",
|
||||
"lint.fix": "npm run eslint -- --fix && npm run prettier -- --write --cache",
|
||||
"lint": "pnpm run eslint && pnpm run prettier -- --write --cache",
|
||||
"lint.fix": "pnpm run eslint -- --fix && pnpm run prettier -- --write --cache",
|
||||
"copy": "node scripts/copy.js",
|
||||
"test.spec": "jest --ci",
|
||||
"test.treeshake": "node scripts/treeshaking.js dist/index.esm.js"
|
||||
|
@ -6,11 +6,11 @@
|
||||
"test.spec": "jest",
|
||||
"eslint": "eslint src",
|
||||
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
|
||||
"lint": "npm run eslint && npm run prettier -- --write --cache",
|
||||
"lint.fix": "npm run eslint -- --fix && npm run prettier -- --write --cache",
|
||||
"lint": "pnpm run eslint && pnpm run prettier -- --write --cache",
|
||||
"lint.fix": "pnpm run eslint -- --fix && pnpm run prettier -- --write --cache",
|
||||
"bundle": "rollup --config rollup.config.js",
|
||||
"build": "npm run clean && npm run bundle",
|
||||
"build.watch": "npm run bundle -- --watch",
|
||||
"build": "pnpm run clean && pnpm run bundle",
|
||||
"build.watch": "pnpm run bundle -- --watch",
|
||||
"clean": "rimraf dist"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
|
@ -5,11 +5,11 @@
|
||||
"scripts": {
|
||||
"eslint": "eslint src",
|
||||
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
|
||||
"lint": "npm run eslint && npm run prettier -- --write --cache",
|
||||
"lint.fix": "npm run eslint -- --fix && npm run prettier -- --write --cache",
|
||||
"lint": "pnpm run eslint && pnpm run prettier -- --write --cache",
|
||||
"lint.fix": "pnpm run eslint -- --fix && pnpm run prettier -- --write --cache",
|
||||
"test": "jest",
|
||||
"build": "npm run clean && npm run copy && npm run copy.overlays && npm run bundle && npm run build.vetur && npm run build.web-types",
|
||||
"build.watch": "npm run bundle -- --watch",
|
||||
"build": "pnpm run clean && pnpm run copy && pnpm run copy.overlays && pnpm run bundle && pnpm run build.vetur && pnpm run build.web-types",
|
||||
"build.watch": "pnpm run bundle -- --watch",
|
||||
"bundle": "rollup --config rollup.config.js",
|
||||
"clean": "rimraf dist",
|
||||
"build.web-types": "node ./scripts/build-web-types.js",
|
||||
|
Reference in New Issue
Block a user