From 647320dd4beb2e80013e452fcd2d645e2a204006 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Fri, 3 Nov 2023 11:45:21 -0400 Subject: [PATCH] chore: update scripts to use pnpm --- packages/angular-server/package.json | 8 ++++---- packages/angular/package.json | 16 ++++++++-------- packages/react-router/package.json | 8 ++++---- packages/react/package.json | 8 ++++---- packages/vue-router/package.json | 8 ++++---- packages/vue/package.json | 8 ++++---- 6 files changed, 28 insertions(+), 28 deletions(-) diff --git a/packages/angular-server/package.json b/packages/angular-server/package.json index a50594830c..f76c53788a 100644 --- a/packages/angular-server/package.json +++ b/packages/angular-server/package.json @@ -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" }, diff --git a/packages/angular/package.json b/packages/angular/package.json index 4adacbe257..70693ab1c1 100644 --- a/packages/angular/package.json +++ b/packages/angular/package.json @@ -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/*": { diff --git a/packages/react-router/package.json b/packages/react-router/package.json index c91faca791..10d3733838 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -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", diff --git a/packages/react/package.json b/packages/react/package.json index 2e8d4eb76f..c3eb931081 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -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" diff --git a/packages/vue-router/package.json b/packages/vue-router/package.json index d7e2e09567..c8efa32034 100644 --- a/packages/vue-router/package.json +++ b/packages/vue-router/package.json @@ -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", diff --git a/packages/vue/package.json b/packages/vue/package.json index 03b4a456ab..c84b7c5f73 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -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",