chore: update scripts to use pnpm

This commit is contained in:
Liam DeBeasi
2023-11-03 11:45:21 -04:00
parent f4c3ee8673
commit 647320dd4b
6 changed files with 28 additions and 28 deletions

View File

@ -26,11 +26,11 @@
"scripts": { "scripts": {
"test": "echo 'angular no tests yet'", "test": "echo 'angular no tests yet'",
"build": "ng-packagr -p ng-package.json -c tsconfig.json", "build": "ng-packagr -p ng-package.json -c tsconfig.json",
"build.prod": "npm run clean && npm run build", "build.prod": "pnpm run clean && pnpm run build",
"build.watch": "npm run build -- --watch", "build.watch": "pnpm run build -- --watch",
"clean": "rm -rf ./dist", "clean": "rm -rf ./dist",
"lint": "eslint . --ext .ts && npm run prettier", "lint": "eslint . --ext .ts && pnpm run prettier",
"lint.fix": "eslint . --ext .ts --fix && npm run prettier.fix", "lint.fix": "eslint . --ext .ts --fix && pnpm run prettier.fix",
"prettier": "prettier \"**/*.ts\" --check", "prettier": "prettier \"**/*.ts\" --check",
"prettier.fix": "prettier \"**/*.ts\" --write" "prettier.fix": "prettier \"**/*.ts\" --write"
}, },

View File

@ -24,22 +24,22 @@
}, },
"homepage": "https://ionicframework.com/", "homepage": "https://ionicframework.com/",
"scripts": { "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.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.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": "node scripts/clean.js",
"clean-generated": "node ./scripts/clean-generated.js", "clean-generated": "node ./scripts/clean-generated.js",
"lint": "npm run eslint && npm run prettier -- --write --cache", "lint": "pnpm run eslint && pnpm run prettier -- --write --cache",
"lint.fix": "npm run eslint -- --fix", "lint.fix": "pnpm run eslint -- --fix",
"fmt": "npm run eslint -- --fix && npm run prettier -- --write --cache", "fmt": "pnpm run eslint -- --fix && pnpm run prettier -- --write --cache",
"prettier": "prettier \"**/*.ts\"", "prettier": "prettier \"**/*.ts\"",
"eslint": "eslint . --ext .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'", "test": "echo 'angular no tests yet'",
"tsc": "tsc -p .", "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": { "exports": {
"./css/*": { "./css/*": {

View File

@ -20,14 +20,14 @@
"url": "git+https://github.com/ionic-team/ionic-framework.git" "url": "git+https://github.com/ionic-team/ionic-framework.git"
}, },
"scripts": { "scripts": {
"build": "npm run clean && npm run compile", "build": "pnpm run clean && pnpm run compile",
"build.watch": "npm run compile -- --watch", "build.watch": "pnpm run compile -- --watch",
"clean": "rimraf dist", "clean": "rimraf dist",
"compile": "rollup -c", "compile": "rollup -c",
"eslint": "eslint src", "eslint": "eslint src",
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"", "prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
"lint": "npm run eslint && npm run prettier -- --write --cache", "lint": "pnpm run eslint && pnpm run prettier -- --write --cache",
"lint.fix": "npm run eslint -- --fix && npm run prettier -- --write --cache" "lint.fix": "pnpm run eslint -- --fix && pnpm run prettier -- --write --cache"
}, },
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/types/index.d.ts", "types": "dist/types/index.d.ts",

View File

@ -20,14 +20,14 @@
"url": "git+https://github.com/ionic-team/ionic-framework.git" "url": "git+https://github.com/ionic-team/ionic-framework.git"
}, },
"scripts": { "scripts": {
"build": "npm run clean && npm run copy && npm run compile", "build": "pnpm run clean && pnpm run copy && pnpm run compile",
"build.watch": "npm run compile -- --watch", "build.watch": "pnpm run compile -- --watch",
"clean": "rimraf dist && rimraf routing", "clean": "rimraf dist && rimraf routing",
"compile": "rollup -c", "compile": "rollup -c",
"eslint": "eslint src", "eslint": "eslint src",
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"", "prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
"lint": "npm run eslint && npm run prettier -- --write --cache", "lint": "pnpm run eslint && pnpm run prettier -- --write --cache",
"lint.fix": "npm run eslint -- --fix && npm run prettier -- --write --cache", "lint.fix": "pnpm run eslint -- --fix && pnpm run prettier -- --write --cache",
"copy": "node scripts/copy.js", "copy": "node scripts/copy.js",
"test.spec": "jest --ci", "test.spec": "jest --ci",
"test.treeshake": "node scripts/treeshaking.js dist/index.esm.js" "test.treeshake": "node scripts/treeshaking.js dist/index.esm.js"

View File

@ -6,11 +6,11 @@
"test.spec": "jest", "test.spec": "jest",
"eslint": "eslint src", "eslint": "eslint src",
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"", "prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
"lint": "npm run eslint && npm run prettier -- --write --cache", "lint": "pnpm run eslint && pnpm run prettier -- --write --cache",
"lint.fix": "npm run eslint -- --fix && npm run prettier -- --write --cache", "lint.fix": "pnpm run eslint -- --fix && pnpm run prettier -- --write --cache",
"bundle": "rollup --config rollup.config.js", "bundle": "rollup --config rollup.config.js",
"build": "npm run clean && npm run bundle", "build": "pnpm run clean && pnpm run bundle",
"build.watch": "npm run bundle -- --watch", "build.watch": "pnpm run bundle -- --watch",
"clean": "rimraf dist" "clean": "rimraf dist"
}, },
"main": "./dist/index.js", "main": "./dist/index.js",

View File

@ -5,11 +5,11 @@
"scripts": { "scripts": {
"eslint": "eslint src", "eslint": "eslint src",
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"", "prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
"lint": "npm run eslint && npm run prettier -- --write --cache", "lint": "pnpm run eslint && pnpm run prettier -- --write --cache",
"lint.fix": "npm run eslint -- --fix && npm run prettier -- --write --cache", "lint.fix": "pnpm run eslint -- --fix && pnpm run prettier -- --write --cache",
"test": "jest", "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": "pnpm run clean && pnpm run copy && pnpm run copy.overlays && pnpm run bundle && pnpm run build.vetur && pnpm run build.web-types",
"build.watch": "npm run bundle -- --watch", "build.watch": "pnpm run bundle -- --watch",
"bundle": "rollup --config rollup.config.js", "bundle": "rollup --config rollup.config.js",
"clean": "rimraf dist", "clean": "rimraf dist",
"build.web-types": "node ./scripts/build-web-types.js", "build.web-types": "node ./scripts/build-web-types.js",