Skip to content

Commit 4ce73ea

Browse files
committed
chore(deps): bump vite-plus to v0.2.2
Pin `vite-plus`, `vite` (alias to `@voidzero-dev/vite-plus-core`) and `vitest` to the v0.2.2 commit build across deps, overrides and catalogs. - Migrate the cli build from `tsdown` to `vp pack` (new cli/vite.config.ts) - Add `rolldown` 1.1.4 as a devDependency - Fix vue(no-dupe-keys) lint errors by aliasing imports that collided with prop names of the same name in Input/Base.vue (noCorrect, noPasswordManager) and Tooltip/Base.vue (offset)
1 parent e731a54 commit 4ce73ea

10 files changed

Lines changed: 978 additions & 1520 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ jobs:
2121
name: 🤖 Autofix code
2222
runs-on: ubuntu-24.04-arm
2323

24+
# The steps below run four `vp run` tasks in parallel, and vp's native
25+
# toolchain (rolldown/oxc) sizes its thread pools to the CPU count per
26+
# process. At full width the concurrent processes exhaust the runner's
27+
# thread/process limit, so spawning fails with EAGAIN ("Failed to spawn
28+
# process: Resource temporarily unavailable"). Cap the pools to keep the
29+
# total under the limit.
30+
env:
31+
RAYON_NUM_THREADS: 2
32+
ROLLDOWN_MAX_BLOCKING_THREADS: 2
33+
2434
steps:
2535
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2636
with:

app/components/Input/Base.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<script setup lang="ts">
2-
import { noCorrect, noPasswordManager } from '~/utils/input'
2+
import {
3+
noCorrect as noCorrectAttrs,
4+
noPasswordManager as noPasswordManagerAttrs,
5+
} from '~/utils/input'
36
47
const model = defineModel<string>({ default: '' })
58
@@ -44,8 +47,8 @@ defineExpose({
4447
})
4548
4649
const inputAttrs = computed(() => ({
47-
...(props.noCorrect ? noCorrect : {}),
48-
...(props.noPasswordManager ? noPasswordManager : {}),
50+
...(props.noCorrect ? noCorrectAttrs : {}),
51+
...(props.noPasswordManager ? noPasswordManagerAttrs : {}),
4952
}))
5053
</script>
5154

app/components/Tooltip/Base.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import type { HTMLAttributes } from 'vue'
33
import type { Placement, Strategy } from '@floating-ui/vue'
4-
import { autoUpdate, flip, offset, shift, useFloating } from '@floating-ui/vue'
4+
import { autoUpdate, flip, offset as offsetMiddleware, shift, useFloating } from '@floating-ui/vue'
55
66
const props = withDefaults(
77
defineProps<{
@@ -40,7 +40,7 @@ const { floatingStyles } = useFloating(triggerRef, tooltipRef, {
4040
placement,
4141
whileElementsMounted: autoUpdate,
4242
strategy: props.strategy,
43-
middleware: [offset(props.offset), flip(), shift({ padding: 8 })],
43+
middleware: [offsetMiddleware(props.offset), flip(), shift({ padding: 8 })],
4444
})
4545
</script>
4646

cli/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
".": "./dist/index.mjs"
2424
},
2525
"scripts": {
26-
"build": "tsdown",
26+
"build": "vp pack",
2727
"dev": "NPMX_CLI_DEV=true node src/cli.ts",
2828
"dev:debug": "DEBUG=npmx-connector NPMX_CLI_DEV=true node src/cli.ts",
2929
"dev:mock": "NPMX_CLI_DEV=true node src/mock-server.ts",
@@ -42,7 +42,6 @@
4242
"devDependencies": {
4343
"@types/node": "24.12.2",
4444
"@types/validate-npm-package-name": "4.0.2",
45-
"tsdown": "0.21.7",
4645
"typescript": "6.0.2"
4746
},
4847
"engines": {

cli/tsdown.config.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

cli/vite.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineConfig } from 'vite-plus'
2+
3+
export default defineConfig({
4+
pack: {
5+
entry: ['src/index.ts', 'src/cli.ts'],
6+
format: 'esm',
7+
dts: true,
8+
outDir: 'dist',
9+
deps: {
10+
neverBundle: ['@lydell/node-pty'],
11+
},
12+
},
13+
})

knip.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ const config: KnipConfig = {
3333
'vite-plugin-pwa',
3434
'@vueuse/shared',
3535

36+
/** Optional peer dependency of @nuxt/vite-builder for the rolldown-powered build */
37+
'rolldown',
38+
3639
/** Oxlint plugins don't get picked up yet */
3740
'@e18e/eslint-plugin',
3841
'eslint-plugin-regexp',

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"validate-npm-package-name": "8.0.0",
111111
"virtua": "0.49.0",
112112
"vite-plugin-pwa": "1.3.0",
113-
"vite-plus": "0.1.20",
113+
"vite-plus": "catalog:vite-plus",
114114
"vue": "3.5.39",
115115
"vue-data-ui": "3.22.0",
116116
"vue-router": "5.0.4"
@@ -128,7 +128,8 @@
128128
"@types/sanitize-html": "2.16.1",
129129
"@types/semver": "7.7.1",
130130
"@types/validate-npm-package-name": "4.0.2",
131-
"@vitest/coverage-v8": "4.1.6",
131+
"@vitest/browser-playwright": "catalog:vite-plus",
132+
"@vitest/coverage-v8": "catalog:vite-plus",
132133
"@vue/test-utils": "2.4.6",
133134
"axe-core": "4.11.2",
134135
"changelogen": "0.6.2",
@@ -142,12 +143,15 @@
142143
"markdown-it-anchor": "9.2.0",
143144
"msw": "catalog:msw",
144145
"msw-storybook-addon": "catalog:storybook",
146+
"playwright": "1.60.0",
147+
"rolldown": "1.1.4",
145148
"schema-dts": "2.0.0",
146149
"storybook": "catalog:storybook",
147150
"storybook-i18n": "catalog:storybook",
148151
"typescript": "6.0.2",
149152
"unplugin-vue-markdown": "32.0.0",
150-
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.20",
153+
"vite": "catalog:vite-plus",
154+
"vitest": "catalog:vite-plus",
151155
"vue-i18n-extract": "2.0.7",
152156
"vue-tsc": "3.2.6"
153157
},

pnpm-lock.yaml

Lines changed: 919 additions & 1498 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ catalogs:
2828
'storybook': '^10.3.1'
2929
'storybook-i18n': '^10.1.1'
3030

31+
vite-plus:
32+
'vite': 'npm:@voidzero-dev/vite-plus-core@0.2.2'
33+
'vite-plus': '0.2.2'
34+
'vitest': '4.1.9'
35+
'@vitest/browser-playwright': '4.1.9'
36+
'@vitest/coverage-v8': '4.1.9'
37+
3138
dedupePeers: true
3239

3340
ignoreDepScripts: true
@@ -38,8 +45,8 @@ overrides:
3845
'@types/node': 24.12.0
3946
nuxt-og-image: ^6.6.0
4047
sharp: 0.34.5
41-
vite: npm:@voidzero-dev/vite-plus-core@0.1.20
42-
vitest: npm:@voidzero-dev/vite-plus-test@0.1.20
48+
vite: 'catalog:vite-plus'
49+
vitest: 'catalog:vite-plus'
4350
vue-router: 5.0.4
4451

4552
packageExtensions:
@@ -58,3 +65,11 @@ patchedDependencies:
5865
savePrefix: ''
5966

6067
shellEmulator: true
68+
69+
peerDependencyRules:
70+
allowAny:
71+
- vite
72+
- vitest
73+
allowedVersions:
74+
vite: '*'
75+
vitest: '*'

0 commit comments

Comments
 (0)