Skip to content

Commit aff7bf6

Browse files
authored
chore(deps): enable pnpm dedupe check (#185)
### TL;DR Update dependencies and add pnpm dedupe check to CI workflow. ### What changed? - Added `pnpm dedupe --check` step to CI workflow to ensure there are no duplicate dependencies - Updated `oxlint` from v1.15.0 to v1.16.0 - Updated `@types/node` from v24.4.0 to v24.5.2 - Updated `rolldown` from v1.0.0-beta.38 to v1.0.0-beta.39 - Added `oxc-project/setup-node` action to CI workflow ### How to test? 1. Run `pnpm dedupe --check` locally to verify no duplicate dependencies exist 2. Run the CI workflow to ensure the new check passes 3. Verify the project builds and tests pass with the updated dependencies ### Why make this change? Keeping dependencies up-to-date helps maintain security and access to the latest features. Adding the dedupe check to CI helps prevent duplicate dependencies from being introduced, which can cause inconsistent behavior and increase bundle size.
1 parent 4217c4c commit aff7bf6

7 files changed

Lines changed: 225 additions & 574 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ on:
99
pull_request:
1010
types: [opened, synchronize]
1111
paths-ignore:
12-
- "**/*.md"
12+
- '**/*.md'
1313
push:
1414
branches:
1515
- main
1616
paths-ignore:
17-
- "**/*.md"
17+
- '**/*.md'
1818

1919
concurrency:
2020
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@@ -50,7 +50,7 @@ jobs:
5050

5151
- run: cargo check --all-targets --all-features
5252
env:
53-
RUSTFLAGS: "-D warnings --cfg tokio_unstable" # also update .cargo/config.toml
53+
RUSTFLAGS: '-D warnings --cfg tokio_unstable' # also update .cargo/config.toml
5454

5555
- run: cargo test
5656

@@ -77,6 +77,11 @@ jobs:
7777
with:
7878
files: .
7979

80+
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
81+
82+
- name: Deduplicate dependencies
83+
run: pnpm dedupe --check
84+
8085
run:
8186
name: Run task
8287
runs-on: ubuntu-latest

dprint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
},
1010
"toml": {
1111
},
12+
"yaml": {
13+
"quotes": "preferSingle"
14+
},
1215
"excludes": [
1316
"pnpm-lock.yaml",
1417
"packages/cli/binding/index.d.ts",

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vite-plus-monorepo",
33
"private": true,
4-
"packageManager": "pnpm@10.16.1",
4+
"packageManager": "pnpm@10.17.0",
55
"type": "module",
66
"scripts": {
77
"bootstrap-cli": "pnpm --filter=@voidzero-dev/vite-plus build && pnpm --filter=@voidzero-dev/global build && pnpm copy-bindings && pnpm install-global-cli",
@@ -35,10 +35,5 @@
3535
"*.rs": [
3636
"cargo fmt --"
3737
]
38-
},
39-
"pnpm": {
40-
"overrides": {
41-
"vite": "npm:rolldown-vite@7.1.10"
42-
}
4338
}
4439
}

packages/global/templates/monorepo/_yarnrc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# used for install vite-plus
22
npmScopes:
33
voidzero-dev:
4-
npmRegistryServer: "https://npm.pkg.github.com"
5-
npmAuthToken: "${GITHUB_TOKEN}"
4+
npmRegistryServer: 'https://npm.pkg.github.com'
5+
npmAuthToken: '${GITHUB_TOKEN}'
66

77
catalog:
8-
"@types/node": ^24.5.0
9-
"@voidzero-dev/vite-plus": latest
8+
'@types/node': ^24.5.0
9+
'@voidzero-dev/vite-plus': latest
1010
bumpp: ^10.1.0
1111
happy-dom: ^18.0.1
1212
vite: npm:@voidzero-dev/vite-plus

packages/global/templates/monorepo/pnpm-workspace.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ packages:
44
- tools/*
55

66
catalog:
7-
"@types/node": ^24.5.0
8-
"@voidzero-dev/vite-plus": latest
7+
'@types/node': ^24.5.0
8+
'@voidzero-dev/vite-plus': latest
99
bumpp: ^10.1.0
1010
happy-dom: ^18.0.1
1111
vite: npm:@voidzero-dev/vite-plus@latest

0 commit comments

Comments
 (0)