Skip to content

Commit 88f4f4e

Browse files
authored
chore(deps): upgrade to vite-plus 0.1.12 and vite 8 (#2129)
1 parent 68d95cd commit 88f4f4e

File tree

14 files changed

+1274
-1428
lines changed

14 files changed

+1274
-1428
lines changed

.github/workflows/autofix.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
run: pnpm install
3232

3333
- name: 🎨 Check for non-RTL/non-a11y CSS classes
34-
run: pnpm lint:css
34+
run: pnpm vp run lint:css
3535

3636
- name: 🌐 Compare translations
37-
run: pnpm i18n:check
37+
run: pnpm vp run i18n:check
3838

3939
- name: 🌍 Update lunaria data
40-
run: pnpm build:lunaria
40+
run: pnpm vp run build:lunaria
4141

4242
- name: 🔠 Fix lint errors
43-
run: pnpm lint:fix
43+
run: pnpm vp run lint:fix
4444

4545
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # 635ffb0c9798bd160680f18fd73371e355b85f27

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: pnpm install --filter . --ignore-scripts
4040

4141
- name: 🔠 Lint project
42-
run: pnpm lint
42+
run: pnpm vp run lint
4343

4444
types:
4545
name: 💪 Type check
@@ -59,7 +59,7 @@ jobs:
5959
run: pnpm install
6060

6161
- name: 💪 Type check
62-
run: pnpm test:types
62+
run: pnpm vp run test:types
6363

6464
unit:
6565
name: 🧪 Unit tests
@@ -79,7 +79,7 @@ jobs:
7979
run: pnpm install
8080

8181
- name: 🧪 Unit tests
82-
run: pnpm test:unit run --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
82+
run: pnpm vp test --project unit --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
8383

8484
- name: ⬆︎ Upload test results to Codecov
8585
if: ${{ !cancelled() }}
@@ -105,10 +105,10 @@ jobs:
105105
run: pnpm install
106106

107107
- name: 🌐 Install browser
108-
run: pnpm playwright install chromium-headless-shell
108+
run: pnpm vp exec playwright install chromium-headless-shell
109109

110110
- name: 🧪 Component tests
111-
run: pnpm test:nuxt run --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
111+
run: pnpm vp test --project nuxt --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
112112

113113
- name: ⬆︎ Upload coverage reports to Codecov
114114
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
@@ -142,12 +142,12 @@ jobs:
142142
run: pnpm install
143143

144144
- name: 🏗️ Build project
145-
run: pnpm build:test
145+
run: pnpm vp run build:test
146146
env:
147147
VALIDATE_HTML: true
148148

149149
- name: 🖥️ Test project (browser)
150-
run: pnpm test:browser:prebuilt
150+
run: pnpm vp run test:browser:prebuilt
151151

152152
a11y:
153153
name: ♿ Accessibility audit
@@ -170,10 +170,10 @@ jobs:
170170
run: pnpm install
171171

172172
- name: 🏗️ Build project
173-
run: pnpm build:test
173+
run: pnpm vp run build:test
174174

175175
- name: ♿ Accessibility audit (Lighthouse - ${{ matrix.mode }} mode)
176-
run: pnpm test:a11y:prebuilt
176+
run: pnpm vp run test:a11y:prebuilt
177177
env:
178178
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
179179
LIGHTHOUSE_COLOR_MODE: ${{ matrix.mode }}
@@ -196,10 +196,10 @@ jobs:
196196
run: pnpm install
197197

198198
- name: 🧹 Check for unused code
199-
run: pnpm knip
199+
run: pnpm vp run knip
200200

201201
- name: 🧹 Check for unused production code
202-
run: pnpm knip --production --exclude dependencies
202+
run: pnpm vp run knip --production --exclude dependencies
203203

204204
i18n:
205205
name: 🌐 i18n validation
@@ -219,9 +219,9 @@ jobs:
219219
run: pnpm install --filter . --ignore-scripts
220220

221221
- name: 🌐 Check for missing or dynamic i18n keys
222-
run: pnpm i18n:report
222+
run: pnpm vp run i18n:report
223223

224224
- name: 🌐 Check i18n schema is up to date
225225
run: |
226-
pnpm i18n:schema
226+
pnpm vp run i18n:schema
227227
git diff --exit-code i18n/schema.json

.github/workflows/release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: 📦 Install dependencies
6666
if: steps.check.outputs.skip == 'false'
67-
run: pnpm install --filter . --ignore-scripts
67+
run: pnpm vp install --filter . --ignore-scripts
6868

6969
- name: 📝 Generate release notes
7070
if: steps.check.outputs.skip == 'false'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ public/blog/avatar
5252
storybook-static
5353

5454
.nvmrc
55+
.agents
56+
.vscode/mcp.json
57+
AGENTS.md

.oxfmtrc.json

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

.oxlintrc.json

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

cli/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22
"name": "npmx-connector",
33
"version": "0.0.1",
44
"description": "Local connector for npmx.dev - enables authenticated npm operations from the web UI",
5+
"homepage": "https://npmx.dev",
6+
"bugs": {
7+
"url": "https://github.com/npmx-dev/npmx.dev/issues"
8+
},
59
"license": "MIT",
6-
"type": "module",
710
"repository": {
811
"type": "git",
912
"url": "git+https://github.com/npmx-dev/npmx.dev.git",
1013
"directory": "cli"
1114
},
12-
"bugs": {
13-
"url": "https://github.com/npmx-dev/npmx.dev/issues"
14-
},
15-
"homepage": "https://npmx.dev",
1615
"bin": {
1716
"npmx-connector": "./dist/cli.mjs"
1817
},
19-
"exports": {
20-
".": "./dist/index.mjs"
21-
},
2218
"files": [
2319
"dist"
2420
],
21+
"type": "module",
22+
"exports": {
23+
".": "./dist/index.mjs"
24+
},
2525
"scripts": {
2626
"build": "tsdown",
2727
"dev": "NPMX_CLI_DEV=true node src/cli.ts",

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "npmx-docs",
33
"private": true,
44
"description": "npmx public docs site",
5+
"bugs": {
6+
"url": "https://github.com/npmx-dev/npmx.dev/issues"
7+
},
58
"license": "MIT",
69
"repository": {
710
"type": "git",
811
"url": "git+https://github.com/npmx-dev/npmx.dev.git",
912
"directory": "docs"
1013
},
11-
"bugs": {
12-
"url": "https://github.com/npmx-dev/npmx.dev/issues"
13-
},
1414
"scripts": {
1515
"dev": "nuxt dev",
1616
"build": "nuxt build",

knip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const config: KnipConfig = {
66
entry: [
77
'i18n/**/*.ts',
88
'lunaria.config.ts',
9+
'lunaria/lunaria.ts',
910
'pwa-assets.config.ts',
1011
'.lighthouserc.cjs',
1112
'lighthouse-setup.cjs',
@@ -22,7 +23,6 @@ const config: KnipConfig = {
2223
],
2324
ignoreDependencies: [
2425
'@iconify-json/*',
25-
'@voidzero-dev/vite-plus-core',
2626
'puppeteer',
2727
/** Needs to be explicitly installed, even though it is not imported, to avoid type errors. */
2828
'unplugin-vue-router',

0 commit comments

Comments
 (0)