Skip to content

Commit c964436

Browse files
authored
chore: use workspace (#625)
1 parent 6f74f79 commit c964436

File tree

141 files changed

+9115
-42759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+9115
-42759
lines changed

.github/renovate.json5

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:base", "schedule:weekly", "group:allNonMajor"],
4+
"labels": ["dependencies"],
5+
"rangeStrategy": "bump",
6+
"packageRules": [
7+
{
8+
"depTypeList": ["peerDependencies"],
9+
"enabled": false
10+
},
11+
{
12+
"matchPaths": [
13+
"samples/**"
14+
],
15+
"matchUpdateTypes": [
16+
"minor",
17+
"patch"
18+
],
19+
"groupName": "all non-major examples dependencies",
20+
"groupSlug": "all-minor-patch-examples"
21+
}
22+
]
23+
}

.github/workflows/ci.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
os: [macos-14, windows-latest]
16-
node-version: [20.x]
15+
os: [macos-latest, windows-latest]
16+
node-version: [22.x]
1717

1818
steps:
1919
- uses: actions/checkout@v3
@@ -35,15 +35,10 @@ jobs:
3535
pnpm test
3636
3737
- name: test-e2e
38-
run: |
39-
pnpm -C samples/e2e i
40-
pnpm -C samples/monorepo-vitest-workspace i
41-
pnpm -C samples/browser i
42-
npm -C samples/imba i
43-
pnpm test-e2e --retry 2
38+
run: pnpm test-e2e --retry 2
4439

4540
- uses: actions/upload-artifact@v4
4641
if: always()
4742
with:
48-
name: test-results-${{ matrix.runs-on }}
49-
path: test-results-${{ matrix.runs-on }}
43+
name: 'test-results-${{ matrix.os }}'
44+
path: 'test-results/${{ matrix.os }}'

.vscode-test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from '@vscode/test-cli'
22

33
export default defineConfig({
4-
files: 'test/**/*.test.ts',
4+
files: 'test/unit/**/*.test.ts',
55
mocha: {
66
ui: 'bdd',
77
preload: 'tsx/cjs',

.vscodeignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ node_modeuls/**
1212
samples/**
1313
dist/extension.js.map
1414
test/**
15-
test-e2e/**
1615
patches/**
1716
pnpm-lock.yaml
1817
*.vsix

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export default antfu(
99
'**/coverage',
1010
'**/*.snap',
1111
'**/bench.json',
12-
'**/testdata',
1312
'**/fixtures',
1413
'**/samples',
1514
'test',

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "explorer",
44
"displayName": "Vitest",
55
"version": "1.20.3",
6-
"packageManager": "pnpm@8.15.3",
6+
"packageManager": "pnpm@10.11.1",
77
"description": "A Vite-native testing framework. It's fast!",
88
"author": "Vitest Team",
99
"license": "MIT",
@@ -251,36 +251,37 @@
251251
"dev": "EXTENSION_NODE_ENV=dev tsup --watch --sourcemap",
252252
"test": "vscode-test",
253253
"test:watch": "vscode-test --watch-files src/**/*.ts --watch-files test/**/*.test.ts",
254-
"test-e2e": "vitest --root test-e2e",
254+
"test-e2e": "vitest --root test/e2e",
255255
"ecosystem-ci:build": "pnpm build",
256256
"ecosystem-ci:test": "tsx ./scripts/ecosystem-ci.mts",
257-
"typecheck": "tsc -b ./ ./test ./test-e2e",
257+
"typecheck": "tsc -b ./ --noEmit",
258258
"lint": "eslint --cache .",
259259
"lint:fix": "eslint --cache --fix ."
260260
},
261261
"devDependencies": {
262-
"@antfu/eslint-config": "^2.23.2",
262+
"@antfu/eslint-config": "^4.14.1",
263263
"@playwright/test": "^1.42.1",
264+
"@types/chai": "^5.2.2",
264265
"@types/micromatch": "^4.0.6",
265266
"@types/mocha": "^10.0.6",
266-
"@types/node": "^20.12.8",
267+
"@types/node": "^24.0.0",
267268
"@types/prompts": "^2.4.9",
268269
"@types/semver": "^7.3.9",
269270
"@types/vscode": "^1.77.0",
270271
"@types/which": "^3.0.3",
271272
"@types/ws": "^8.5.10",
272-
"@vitest/runner": "^2.1.2",
273-
"@vitest/utils": "^2.1.2",
273+
"@vitest/runner": "catalog:",
274+
"@vitest/utils": "catalog:",
274275
"@vscode/test-cli": "^0.0.6",
275276
"@vscode/test-electron": "^2.3.9",
276277
"@vscode/vsce": "^3.1.0",
277278
"@vue/reactivity": "^3.2.33",
278279
"acorn": "^8.12.0",
279280
"acorn-walk": "^8.3.3",
280281
"birpc": "^0.2.19",
281-
"bumpp": "^9.3.0",
282+
"bumpp": "^10.1.1",
282283
"chai": "^5.1.0",
283-
"changelogithub": "^0.13.3",
284+
"changelogithub": "^13.15.0",
284285
"eslint": "^9.7.0",
285286
"execa": "^8.0.1",
286287
"find-up": "^7.0.0",
@@ -296,7 +297,7 @@
296297
"tsup": "^8.0.1",
297298
"tsx": "^4.7.1",
298299
"typescript": "^5.6.2",
299-
"vitest": "^2.1.2",
300+
"vitest": "catalog:",
300301
"which": "^4.0.0",
301302
"ws": "^8.16.0"
302303
},

0 commit comments

Comments
 (0)