Skip to content

Commit

Permalink
chore: use pnpx to replace npx (#4391)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Jan 18, 2025
1 parent 279dfb2 commit ba996d3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: pnpm run lint

- name: Check Changeset
run: npx disallow-major-changeset@latest
run: pnpx disallow-major-changeset

- name: Check Dependency Version
run: pnpm run check-dependency-version
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@
"build:doc": "cd website && pnpm run build",
"change": "changeset",
"changeset": "changeset",
"check-dependency-version": "npx check-dependency-version-consistency .",
"check-spell": "npx cspell && npx heading-case",
"check-dependency-version": "pnpx check-dependency-version-consistency .",
"check-spell": "pnpx cspell && heading-case",
"dev:doc": "cd website && pnpm run dev",
"e2e": "cd ./e2e && pnpm test",
"e2e:rspack": "cd ./e2e && pnpm test:rspack",
"e2e:webpack": "cd ./e2e && pnpm test:webpack",
"format": "prettier --write . && npx heading-case --write",
"format": "prettier --write . && heading-case --write",
"lint": "biome check . --diagnostic-level=warn && pnpm run check-spell",
"prebundle": "nx run-many -t prebundle",
"prepare": "pnpm run build && simple-git-hooks",
"sort-package-json": "npx sort-package-json \"./package.json\" \"packages/*/package.json\" \"packages/compat/*/package.json\"",
"sort-package-json": "pnpx sort-package-json \"./package.json\" \"packages/*/package.json\" \"packages/compat/*/package.json\"",
"test": "pnpm run ut",
"ut": "vitest run",
"ut:watch": "vitest"
},
"simple-git-hooks": {
"pre-commit": "npx nano-staged"
"pre-commit": "pnpm exec nano-staged"
},
"nano-staged": {
"*.{md,mdx,json,css,less,scss}": "prettier --write",
Expand All @@ -45,6 +45,7 @@
"@scripts/test-helper": "workspace:*",
"cross-env": "^7.0.3",
"cspell-ban-words": "^0.0.4",
"heading-case": "^0.1.3",
"nano-staged": "^0.8.0",
"nx": "^20.3.1",
"prettier": "^3.4.2",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

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

1 comment on commit ba996d3

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ran ecosystem CI: Open

suite result
modernjs ❌ failure
plugins ✅ success
rspress ✅ success
rslib ✅ success
examples ✅ success

Please sign in to comment.