Skip to content

Commit

Permalink
chore: remove npm-run-all2 and sort-package-json
Browse files Browse the repository at this point in the history
ref - #3981 (comment)

Regarding sort-package-json, it was added in 972c100, but it is sorting scripts too which I don't like. If someone prefers to sort other keys, they can just run it via npx and revert scripts section back
  • Loading branch information
brc-dd committed Jun 24, 2024
1 parent aa73c00 commit 8538e22
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 138 deletions.
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"private": true,
"type": "module",
"scripts": {
"build": "vitepress build",
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview",
"lunaria:build": "lunaria build",
"lunaria:open": "open-cli .vitepress/dist/_translations/index.html",
"preview": "vitepress preview"
"lunaria:open": "open-cli .vitepress/dist/_translations/index.html"
},
"devDependencies": {
"@lunariajs/core": "^0.1.1",
Expand Down
23 changes: 10 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,20 @@
"lib"
],
"scripts": {
"dev": "rimraf dist && run-s dev:shared dev:start",
"dev:start": "run-p dev:client dev:node dev:watch",
"dev:client": "tsc --sourcemap -w -p src/client",
"dev": "rimraf dist && pnpm dev:shared && pnpm dev:start",
"dev:start": "pnpm --stream '/^dev:(client|node|watch)$/'",
"dev:client": "tsc --sourcemap -w --preserveWatchOutput -p src/client",
"dev:node": "DEV=true pnpm build:node -w",
"dev:shared": "node scripts/copyShared",
"dev:watch": "node scripts/watchAndCopy",
"build": "run-s build:prepare build:client build:node",
"build": "pnpm build:prepare && pnpm build:client && pnpm build:node",
"build:prepare": "rimraf dist && node scripts/copyShared",
"build:client": "vue-tsc --noEmit -p src/client && tsc -p src/client && node scripts/copyClient",
"build:node": "tsc -p src/node --noEmit && rollup --config rollup.config.ts --configPlugin esbuild",
"test": "run-p --aggregate-output test:unit test:e2e test:init",
"test": "pnpm --aggregate-output --reporter=append-only '/^test:(unit|e2e|init)$/'",
"test:unit": "vitest run -r __tests__/unit",
"test:unit:watch": "vitest -r __tests__/unit",
"test:e2e": "run-s test:e2e-dev test:e2e-build",
"test:e2e": "pnpm test:e2e-dev && pnpm test:e2e-build",
"test:e2e:site:dev": "pnpm -F=tests-e2e site:dev",
"test:e2e:site:build": "pnpm -F=tests-e2e site:build",
"test:e2e:site:preview": "pnpm -F=tests-e2e site:preview",
Expand All @@ -77,26 +77,25 @@
"test:e2e-build:watch": "VITE_TEST_BUILD=1 pnpm test:e2e-dev:watch",
"test:init": "pnpm -F=tests-init test",
"test:init:watch": "pnpm -F=tests-init watch",
"docs": "run-p dev docs:dev",
"docs": "pnpm --stream '/^(docs:)?dev$/'",
"docs:dev": "wait-on -d 100 dist/node/cli.js && pnpm -F=docs dev",
"docs:debug": "NODE_OPTIONS='--inspect-brk' pnpm docs:dev",
"docs:build": "run-s build docs:build:only",
"docs:build": "pnpm build && pnpm docs:build:only",
"docs:build:only": "pnpm -F=docs build",
"docs:preview": "pnpm -F=docs preview",
"docs:lunaria:build": "pnpm -F=docs lunaria:build",
"docs:lunaria:open": "pnpm -F=docs lunaria:open",
"format": "prettier --check --write .",
"format:fail": "prettier --check .",
"check": "run-s format:fail build test",
"check": "pnpm format:fail && pnpm build && pnpm test",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"release": "node scripts/release.js"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "prettier --write --ignore-unknown",
"package.json": "sort-package-json"
"*": "prettier --write --ignore-unknown"
},
"dependencies": {
"@docsearch/css": "^3.6.0",
Expand Down Expand Up @@ -166,7 +165,6 @@
"micromatch": "^4.0.7",
"minimist": "^1.2.8",
"nanoid": "^5.0.7",
"npm-run-all2": "^6.2.0",
"ora": "^8.0.1",
"p-map": "^7.0.2",
"path-to-regexp": "^6.2.2",
Expand All @@ -186,7 +184,6 @@
"simple-git-hooks": "^2.11.1",
"sirv": "^2.0.4",
"sitemap": "^8.0.0",
"sort-package-json": "^2.10.0",
"supports-color": "^9.4.0",
"typescript": "^5.5.2",
"vitest": "^1.6.0",
Expand Down
122 changes: 0 additions & 122 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8538e22

Please sign in to comment.