diff --git a/docs/guide/testing-types.md b/docs/guide/testing-types.md index ffd0d81e7956..e0a8574cb46f 100644 --- a/docs/guide/testing-types.md +++ b/docs/guide/testing-types.md @@ -4,6 +4,12 @@ title: Testing Types | Guide # Testing Types +::: tip Sample Project + +[GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/typecheck) - [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/typecheck?initialPath=__vitest__/) + +::: + Vitest allows you to write tests for your types, using `expectTypeOf` or `assertType` syntaxes. By default all tests inside `*.test-d.ts` files are considered type tests, but you can change it with [`typecheck.include`](/config/#typecheck-include) config option. Under the hood Vitest calls `tsc` or `vue-tsc`, depending on your config, and parses results. Vitest will also print out type errors in your source code, if it finds any. You can disable it with [`typecheck.ignoreSourceErrors`](/config/#typecheck-ignoresourceerrors) config option. diff --git a/docs/guide/workspace.md b/docs/guide/workspace.md index 131c2013e8e2..885353ad40cd 100644 --- a/docs/guide/workspace.md +++ b/docs/guide/workspace.md @@ -4,6 +4,12 @@ title: Workspace | Guide # Workspace +::: tip Sample Project + +[GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/workspace) - [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/workspace?initialPath=__vitest__/) + +::: + Vitest provides built-in support for monorepos through a workspace configuration file. You can create a workspace to define your project's setups. ## Defining a Workspace diff --git a/examples/README.md b/examples/README.md index 70b36494a6bd..07a53801e566 100644 --- a/examples/README.md +++ b/examples/README.md @@ -5,6 +5,7 @@ | `graphql` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/graphql) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/graphql?initialPath=__vitest__/) | | `image-snapshot` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/image-snapshot) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/image-snapshot?initialPath=__vitest__/) | | `lit` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/lit) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/lit?initialPath=__vitest__/) | +| `marko` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/marko) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/marko?initialPath=__vitest__/) | | `mocks` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/mocks) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/mocks?initialPath=__vitest__/) | | `nextjs` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/nextjs) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/nextjs?initialPath=__vitest__/) | | `playwright` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/playwright) | | @@ -18,7 +19,8 @@ | `solid` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/solid) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/solid?initialPath=__vitest__/) | | `svelte` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/svelte) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/svelte?initialPath=__vitest__/) | | `sveltekit` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/sveltekit) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/sveltekit?initialPath=__vitest__/) | -| `marko` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/marko) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/marko?initialPath=__vitest__/) | +| `typecheck` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/typecheck) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/typecheck?initialPath=__vitest__/) | | `vitesse` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/vitesse) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/vitesse?initialPath=__vitest__/) | | `vue-jsx` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/vue-jsx) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/vue-jsx?initialPath=__vitest__/) | | `vue` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/vue) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/vue?initialPath=__vitest__/) | +| `workspace` | [GitHub](https://github.com/vitest-dev/vitest/tree/main/examples/workspace) | [Play Online](https://stackblitz.com/fork/github/vitest-dev/vitest/tree/main/examples/workspace?initialPath=__vitest__/) | diff --git a/examples/typecheck/package.json b/examples/typecheck/package.json new file mode 100644 index 000000000000..c47e21c63778 --- /dev/null +++ b/examples/typecheck/package.json @@ -0,0 +1,22 @@ +{ + "name": "@vitest/example-typecheck", + "type": "module", + "private": true, + "license": "MIT", + "main": "index.js", + "scripts": { + "test": "vitest", + "test:ui": "vitest --ui", + "test:run": "vitest run" + }, + "devDependencies": { + "@types/node": "^20.11.5", + "@vitest/ui": "latest", + "typescript": "^5.2.2", + "vite": "latest", + "vitest": "latest" + }, + "stackblitz": { + "startCommand": "npm run test:ui" + } +} diff --git a/examples/typecheck/test/normal.test.ts b/examples/typecheck/test/normal.test.ts new file mode 100644 index 000000000000..5e7ab4dc0934 --- /dev/null +++ b/examples/typecheck/test/normal.test.ts @@ -0,0 +1,5 @@ +import { expect, test } from 'vitest' + +test('normal', () => { + expect(1 + 1).toBe(2) +}) diff --git a/examples/typecheck/test/type.test-d.ts b/examples/typecheck/test/type.test-d.ts new file mode 100644 index 000000000000..37cd35f4f58a --- /dev/null +++ b/examples/typecheck/test/type.test-d.ts @@ -0,0 +1,6 @@ +import { expect, expectTypeOf, test } from 'vitest' + +test('type', () => { + expectTypeOf(1).toEqualTypeOf(2) + expect(1).toBe(2) // not executed +}) diff --git a/examples/typecheck/tsconfig.json b/examples/typecheck/tsconfig.json new file mode 100644 index 000000000000..c27a77299457 --- /dev/null +++ b/examples/typecheck/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "es2020", + "module": "ESNext", + "moduleResolution": "Bundler", + "strict": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "verbatimModuleSyntax": true + }, + "include": ["src", "test"], + "exclude": ["node_modules"] +} diff --git a/examples/typecheck/vite.config.ts b/examples/typecheck/vite.config.ts new file mode 100644 index 000000000000..45812bebfbe4 --- /dev/null +++ b/examples/typecheck/vite.config.ts @@ -0,0 +1,15 @@ +/// + +// Configure Vitest (https://vitest.dev/config/) + +import { defineConfig } from 'vite' + +export default defineConfig({ + test: { + /* for example, use global to avoid globals imports (describe, test, expect): */ + // globals: true, + typecheck: { + enabled: true, + }, + }, +}) diff --git a/examples/workspace/package.json b/examples/workspace/package.json new file mode 100644 index 000000000000..4538f2c2894b --- /dev/null +++ b/examples/workspace/package.json @@ -0,0 +1,19 @@ +{ + "name": "@vitest/example-workspace", + "type": "module", + "private": true, + "license": "MIT", + "scripts": { + "test": "vitest", + "test:ui": "vitest --ui", + "test:run": "vitest run" + }, + "devDependencies": { + "@vitest/ui": "latest", + "vite": "latest", + "vitest": "latest" + }, + "stackblitz": { + "startCommand": "npm run test:ui" + } +} diff --git a/examples/workspace/packages/lib1/package.json b/examples/workspace/packages/lib1/package.json new file mode 100644 index 000000000000..05d694593839 --- /dev/null +++ b/examples/workspace/packages/lib1/package.json @@ -0,0 +1,6 @@ +{ + "name": "@vitest/example-workspace-lib1", + "type": "module", + "private": true, + "license": "MIT" +} diff --git a/examples/workspace/packages/lib1/test/double.test.ts b/examples/workspace/packages/lib1/test/double.test.ts new file mode 100644 index 000000000000..e220b0c8327b --- /dev/null +++ b/examples/workspace/packages/lib1/test/double.test.ts @@ -0,0 +1,5 @@ +import { expect, test } from 'vitest' + +test('double', () => { + expect(2 * 2).toBe(4) +}) diff --git a/examples/workspace/packages/lib1/tsconfig.json b/examples/workspace/packages/lib1/tsconfig.json new file mode 100644 index 000000000000..c27a77299457 --- /dev/null +++ b/examples/workspace/packages/lib1/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "es2020", + "module": "ESNext", + "moduleResolution": "Bundler", + "strict": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "verbatimModuleSyntax": true + }, + "include": ["src", "test"], + "exclude": ["node_modules"] +} diff --git a/examples/workspace/packages/lib1/vite.config.ts b/examples/workspace/packages/lib1/vite.config.ts new file mode 100644 index 000000000000..f797ea2206c3 --- /dev/null +++ b/examples/workspace/packages/lib1/vite.config.ts @@ -0,0 +1,5 @@ +import { defineProject } from 'vitest/config' + +export default defineProject({ + test: {}, +}) diff --git a/examples/workspace/packages/lib2/package.json b/examples/workspace/packages/lib2/package.json new file mode 100644 index 000000000000..bf8308ff2076 --- /dev/null +++ b/examples/workspace/packages/lib2/package.json @@ -0,0 +1,6 @@ +{ + "name": "@vitest/example-workspace-lib2", + "type": "module", + "private": true, + "license": "MIT" +} diff --git a/examples/workspace/packages/lib2/test/square.test.ts b/examples/workspace/packages/lib2/test/square.test.ts new file mode 100644 index 000000000000..49e92f00f85c --- /dev/null +++ b/examples/workspace/packages/lib2/test/square.test.ts @@ -0,0 +1,5 @@ +import { expect, test } from 'vitest' + +test('square', () => { + expect(2 ** 2).toBe(4) +}) diff --git a/examples/workspace/packages/lib2/tsconfig.json b/examples/workspace/packages/lib2/tsconfig.json new file mode 100644 index 000000000000..c27a77299457 --- /dev/null +++ b/examples/workspace/packages/lib2/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "es2020", + "module": "ESNext", + "moduleResolution": "Bundler", + "strict": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "verbatimModuleSyntax": true + }, + "include": ["src", "test"], + "exclude": ["node_modules"] +} diff --git a/examples/workspace/packages/lib2/vite.config.ts b/examples/workspace/packages/lib2/vite.config.ts new file mode 100644 index 000000000000..f797ea2206c3 --- /dev/null +++ b/examples/workspace/packages/lib2/vite.config.ts @@ -0,0 +1,5 @@ +import { defineProject } from 'vitest/config' + +export default defineProject({ + test: {}, +}) diff --git a/examples/workspace/tsconfig.json b/examples/workspace/tsconfig.json new file mode 100644 index 000000000000..1d25015762c3 --- /dev/null +++ b/examples/workspace/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "es2020", + "module": "node16", + "strict": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "verbatimModuleSyntax": true + }, + "include": ["src", "test"], + "exclude": ["node_modules"] +} diff --git a/examples/workspace/vitest.workspace.ts b/examples/workspace/vitest.workspace.ts new file mode 100644 index 000000000000..b18a56c5a4c8 --- /dev/null +++ b/examples/workspace/vitest.workspace.ts @@ -0,0 +1,5 @@ +import { defineWorkspace } from 'vitest/config' + +export default defineWorkspace([ + 'packages/*', +]) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9888a317f4b2..ccd0441f97ce 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,7 +103,7 @@ importers: version: 5.2.2 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:packages/vitest @@ -149,7 +149,7 @@ importers: version: 0.25.2(rollup@2.79.1)(vue@3.3.8) vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vite-plugin-pwa: specifier: ^0.16.7 version: 0.16.7(vite@5.0.2)(workbox-build@7.0.0)(workbox-window@7.0.0) @@ -167,7 +167,7 @@ importers: version: link:../../packages/ui vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -191,7 +191,7 @@ importers: version: 3.9.0 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -210,7 +210,7 @@ importers: version: link:../../packages/ui vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -225,7 +225,7 @@ importers: version: 4.5.1(jest@27.5.1) vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -247,7 +247,7 @@ importers: version: 22.1.0 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -277,7 +277,7 @@ importers: version: 5.32.0 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -305,7 +305,7 @@ importers: version: 11.6.16 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -363,7 +363,7 @@ importers: version: 1.41.0 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -437,7 +437,7 @@ importers: version: 17.0.2(react@17.0.2) vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -501,7 +501,7 @@ importers: version: 22.1.0 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -589,7 +589,7 @@ importers: version: 5.2.2 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -635,7 +635,7 @@ importers: version: 5.2.2 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -678,7 +678,7 @@ importers: version: 2.0.0(typescript@5.2.2) vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -696,7 +696,7 @@ importers: version: 22.1.0 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vite-plugin-ruby: specifier: ^3.2.2 version: 3.2.2(vite@5.0.2) @@ -724,7 +724,7 @@ importers: version: 22.1.0 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vite-plugin-solid: specifier: ^2.7.2 version: 2.7.2(solid-js@1.8.3)(vite@5.0.2) @@ -751,7 +751,7 @@ importers: version: 4.1.1 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -784,7 +784,25 @@ importers: version: 5.2.2 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) + vitest: + specifier: workspace:* + version: link:../../packages/vitest + + examples/typecheck: + devDependencies: + '@types/node': + specifier: ^20.11.5 + version: 20.11.5 + '@vitest/ui': + specifier: latest + version: link:../../packages/ui + typescript: + specifier: ^5.2.2 + version: 5.2.2 + vite: + specifier: ^5.0.0 + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -812,7 +830,7 @@ importers: version: 0.25.2(rollup@4.4.0)(vue@3.3.8) vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -834,7 +852,7 @@ importers: version: 22.1.0 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -855,7 +873,7 @@ importers: version: 22.1.0 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -863,6 +881,18 @@ importers: specifier: latest version: 3.3.8(typescript@5.2.2) + examples/workspace: + devDependencies: + '@vitest/ui': + specifier: latest + version: link:../../packages/ui + vite: + specifier: ^5.0.0 + version: 5.0.2(@types/node@20.11.5) + vitest: + specifier: workspace:* + version: link:../../packages/vitest + packages/browser: dependencies: '@vitest/utils': @@ -1197,7 +1227,7 @@ importers: version: 0.25.2(rollup@4.4.0)(vue@3.3.8) vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vite-plugin-pages: specifier: ^0.31.0 version: 0.31.0(vite@5.0.2) @@ -1249,7 +1279,7 @@ importers: version: 1.0.0 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) devDependencies: '@jridgewell/trace-mapping': specifier: ^0.3.21 @@ -1322,7 +1352,7 @@ importers: version: 0.8.2 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vite-node: specifier: workspace:* version: link:../vite-node @@ -1460,7 +1490,7 @@ importers: version: link:../../packages/browser vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -1550,7 +1580,7 @@ importers: devDependencies: vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -1562,7 +1592,7 @@ importers: version: 8.0.1 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -1637,7 +1667,7 @@ importers: version: 0.3.3 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -1721,7 +1751,7 @@ importers: version: 12.10.3 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -1764,7 +1794,7 @@ importers: devDependencies: vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -1871,7 +1901,7 @@ importers: version: 7.1.1 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -1922,7 +1952,7 @@ importers: version: 7.0.1 vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vite-node: specifier: workspace:* version: link:../../packages/vite-node @@ -2013,7 +2043,7 @@ importers: version: link:../../packages/browser vite: specifier: ^5.0.0 - version: 5.0.2(@types/node@20.11.5)(less@4.1.3) + version: 5.0.2(@types/node@20.11.5) vitest: specifier: workspace:* version: link:../../packages/vitest @@ -6108,7 +6138,7 @@ packages: magic-string: 0.26.7 react-docgen-typescript: 2.2.2(typescript@5.2.2) typescript: 5.2.2 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) dev: true /@jridgewell/gen-mapping@0.3.2: @@ -6279,7 +6309,7 @@ packages: htmlparser2: 9.0.0 resolve: 1.22.8 resolve.exports: 2.0.2 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) dev: true /@mdx-js/mdx@1.6.22: @@ -7743,7 +7773,7 @@ packages: react-docgen: 6.0.0-alpha.3 slash: 3.0.0 sveltedoc-parser: 4.2.1 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - '@babel/core' - react @@ -8828,7 +8858,7 @@ packages: svelte: 3.59.1 tiny-glob: 0.2.9 undici: 5.22.1 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - supports-color dev: true @@ -8844,7 +8874,7 @@ packages: '@sveltejs/vite-plugin-svelte': 2.4.6(svelte@3.59.1)(vite@5.0.2) debug: 4.3.4(supports-color@8.1.1) svelte: 3.59.1 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - supports-color dev: true @@ -8860,7 +8890,7 @@ packages: '@sveltejs/vite-plugin-svelte': 3.0.1(svelte@4.1.1)(vite@5.0.2) debug: 4.3.4(supports-color@8.1.1) svelte: 4.1.1 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - supports-color dev: true @@ -8879,7 +8909,7 @@ packages: magic-string: 0.30.5 svelte: 3.59.1 svelte-hmr: 0.15.3(svelte@3.59.1) - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) vitefu: 0.2.4(vite@5.0.2) transitivePeerDependencies: - supports-color @@ -8899,7 +8929,7 @@ packages: magic-string: 0.30.5 svelte: 4.1.1 svelte-hmr: 0.15.3(svelte@4.1.1) - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) vitefu: 0.2.5(vite@5.0.2) transitivePeerDependencies: - supports-color @@ -9970,7 +10000,7 @@ packages: '@unocss/core': 0.57.4 '@unocss/reset': 0.57.4 '@unocss/vite': 0.57.4(rollup@2.79.1)(vite@5.0.2) - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - rollup dev: true @@ -9986,7 +10016,7 @@ packages: '@unocss/core': 0.57.4 '@unocss/reset': 0.57.4 '@unocss/vite': 0.57.4(rollup@4.4.0)(vite@5.0.2) - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - rollup dev: true @@ -10201,7 +10231,7 @@ packages: chokidar: 3.5.3 fast-glob: 3.3.2 magic-string: 0.30.5 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - rollup dev: true @@ -10221,7 +10251,7 @@ packages: chokidar: 3.5.3 fast-glob: 3.3.2 magic-string: 0.30.5 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - rollup dev: true @@ -10253,7 +10283,7 @@ packages: peerDependencies: vite: ^5.0.0 dependencies: - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) dev: true /@vitejs/plugin-react@1.3.2: @@ -10283,7 +10313,7 @@ packages: '@babel/plugin-transform-react-jsx-source': 7.22.5(@babel/core@7.23.3) '@types/babel__core': 7.20.3 react-refresh: 0.14.0 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - supports-color dev: true @@ -10314,7 +10344,7 @@ packages: '@babel/core': 7.23.3 '@babel/plugin-transform-typescript': 7.22.15(@babel/core@7.23.3) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.23.3) - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) vue: 3.3.8(typescript@5.2.2) transitivePeerDependencies: - supports-color @@ -10330,7 +10360,7 @@ packages: '@babel/core': 7.23.3 '@babel/plugin-transform-typescript': 7.23.4(@babel/core@7.23.3) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.23.3) - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) vue: 3.3.8(typescript@5.2.2) transitivePeerDependencies: - supports-color @@ -10343,7 +10373,7 @@ packages: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) vue: 3.3.8(typescript@5.2.2) dev: true @@ -10354,7 +10384,7 @@ packages: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) vue: 3.3.8(typescript@5.2.2) dev: true @@ -10365,7 +10395,7 @@ packages: vite: ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) vue: 3.4.5(typescript@5.2.2) dev: true @@ -13476,6 +13506,7 @@ packages: resolution: {integrity: sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==} dependencies: is-what: 3.14.1 + dev: true /copy-concurrently@1.0.5: resolution: {integrity: sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==} @@ -14065,6 +14096,7 @@ packages: dependencies: ms: 2.1.3 supports-color: 8.1.1 + dev: true /debug@4.3.4(supports-color@8.1.1): resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} @@ -14740,6 +14772,7 @@ packages: hasBin: true dependencies: prr: 1.0.1 + dev: true /error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} @@ -17179,6 +17212,7 @@ packages: /graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + dev: true /grapheme-splitter@1.0.4: resolution: {integrity: sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==} @@ -17743,6 +17777,7 @@ packages: engines: {node: '>=0.10.0'} dependencies: safer-buffer: 2.1.2 + dev: true /icss-utils@4.1.1: resolution: {integrity: sha512-4aFq7wvWyMHKgxsH8QQtGpvbASCf+eM3wPRLI6R+MgAnTCZ6STYsRvttLvRWK0Nfif5piF394St3HeJDaljGPA==} @@ -17778,6 +17813,7 @@ packages: engines: {node: '>=0.10.0'} hasBin: true requiresBuild: true + dev: true optional: true /import-fresh@3.3.0: @@ -18378,6 +18414,7 @@ packages: /is-what@3.14.1: resolution: {integrity: sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA==} + dev: true /is-what@4.1.8: resolution: {integrity: sha512-yq8gMao5upkPoGEU9LsB2P+K3Kt8Q3fQFCGyNCWOAnJAMzEXVV9drYb0TXr42TTliLLhKIBvulgAXgtLLnwzGA==} @@ -19646,6 +19683,7 @@ packages: source-map: 0.6.1 transitivePeerDependencies: - supports-color + dev: true /leven@3.1.0: resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} @@ -20047,6 +20085,7 @@ packages: dependencies: pify: 4.0.1 semver: 5.7.2 + dev: true /make-dir@3.1.0: resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} @@ -20336,6 +20375,7 @@ packages: resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==} engines: {node: '>=4'} hasBin: true + dev: true /mime@2.6.0: resolution: {integrity: sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==} @@ -20568,6 +20608,7 @@ packages: /ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + dev: true /msw-storybook-addon@1.6.3(msw@0.49.2)(react-dom@17.0.2)(react@17.0.2): resolution: {integrity: sha512-Ps80WdRmXsmenoTwfrgKMNpQD8INUUFyUFyZOecx8QjuqSlL++UYrLaGyACXN2goOn+/VS6rb0ZapbjrasPClg==} @@ -20739,6 +20780,7 @@ packages: sax: 1.2.4 transitivePeerDependencies: - supports-color + dev: true optional: true /negotiator@0.6.3: @@ -21508,6 +21550,7 @@ packages: /parse-node-version@1.0.1: resolution: {integrity: sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==} engines: {node: '>= 0.10'} + dev: true /parse5@6.0.1: resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} @@ -21719,6 +21762,7 @@ packages: /pify@4.0.1: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} engines: {node: '>=6'} + dev: true /pinkie-promise@2.0.1: resolution: {integrity: sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==} @@ -22169,6 +22213,7 @@ packages: /prr@1.0.1: resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} requiresBuild: true + dev: true /psl@1.9.0: resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} @@ -23428,6 +23473,7 @@ packages: /safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + dev: true /sander@0.5.1: resolution: {integrity: sha512-3lVqBir7WuKDHGrKRDn/1Ye3kwpXaDOMsiRP1wd6wpZW56gJhsbp5RqQpA6JG/P+pkXizygnr1dKR8vzWaVsfA==} @@ -23460,6 +23506,7 @@ packages: /sax@1.2.4: resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==} requiresBuild: true + dev: true optional: true /saxes@5.0.1: @@ -23561,6 +23608,7 @@ packages: /semver@5.7.2: resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} hasBin: true + dev: true /semver@6.3.1: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} @@ -25713,7 +25761,7 @@ packages: '@unocss/transformer-directives': 0.57.4 '@unocss/transformer-variant-group': 0.57.4 '@unocss/vite': 0.57.4(rollup@2.79.1)(vite@5.0.2) - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - postcss - rollup @@ -25752,7 +25800,7 @@ packages: '@unocss/transformer-directives': 0.57.4 '@unocss/transformer-variant-group': 0.57.4 '@unocss/vite': 0.57.4(rollup@4.4.0)(vite@5.0.2) - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - postcss - rollup @@ -26132,7 +26180,7 @@ packages: json5: 2.2.3 local-pkg: 0.4.3 picocolors: 1.0.0 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) yaml: 2.3.1 transitivePeerDependencies: - supports-color @@ -26149,7 +26197,7 @@ packages: debug: 4.3.4(supports-color@8.1.1) fast-glob: 3.3.2 pretty-bytes: 6.1.1 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) workbox-build: 7.0.0 workbox-window: 7.0.0 transitivePeerDependencies: @@ -26163,7 +26211,7 @@ packages: dependencies: debug: 4.3.4(supports-color@8.1.1) fast-glob: 3.3.2 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) transitivePeerDependencies: - supports-color dev: true @@ -26181,13 +26229,13 @@ packages: merge-anything: 5.1.7 solid-js: 1.8.3 solid-refresh: 0.5.3(solid-js@1.8.3) - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) vitefu: 0.2.4(vite@5.0.2) transitivePeerDependencies: - supports-color dev: true - /vite@5.0.2(@types/node@20.11.5)(less@4.1.3): + /vite@5.0.2(@types/node@20.11.5): resolution: {integrity: sha512-6CCq1CAJCNM1ya2ZZA7+jS2KgnhbzvxakmlIjN24cF/PXhRMzpM/z8QgsVJA/Dm5fWUWnVEsmtBoMhmerPxT0g==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -26217,12 +26265,48 @@ packages: dependencies: '@types/node': 20.11.5 esbuild: 0.19.5 - less: 4.1.3 postcss: 8.4.31 rollup: 4.4.0 optionalDependencies: fsevents: 2.3.3 + /vite@5.0.2(@types/node@20.11.5)(less@4.1.3): + resolution: {integrity: sha512-6CCq1CAJCNM1ya2ZZA7+jS2KgnhbzvxakmlIjN24cF/PXhRMzpM/z8QgsVJA/Dm5fWUWnVEsmtBoMhmerPxT0g==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + '@types/node': 20.11.5 + esbuild: 0.19.11 + less: 4.1.3 + postcss: 8.4.32 + rollup: 4.4.0 + optionalDependencies: + fsevents: 2.3.3 + dev: true + /vite@5.0.2(@types/node@20.9.5): resolution: {integrity: sha512-6CCq1CAJCNM1ya2ZZA7+jS2KgnhbzvxakmlIjN24cF/PXhRMzpM/z8QgsVJA/Dm5fWUWnVEsmtBoMhmerPxT0g==} engines: {node: ^18.0.0 || >=20.0.0} @@ -26252,8 +26336,8 @@ packages: optional: true dependencies: '@types/node': 20.9.5 - esbuild: 0.19.5 - postcss: 8.4.31 + esbuild: 0.19.11 + postcss: 8.4.32 rollup: 4.4.0 optionalDependencies: fsevents: 2.3.3 @@ -26267,7 +26351,7 @@ packages: vite: optional: true dependencies: - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) dev: true /vitefu@0.2.5(vite@5.0.2): @@ -26278,7 +26362,7 @@ packages: vite: optional: true dependencies: - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) dev: true /vitepress@1.0.0-rc.35(@types/node@20.11.5)(postcss@8.4.32)(search-insights@2.9.0)(typescript@5.2.2): @@ -26307,7 +26391,7 @@ packages: shikiji: 0.9.17 shikiji-core: 0.9.17 shikiji-transformers: 0.9.17 - vite: 5.0.2(@types/node@20.11.5)(less@4.1.3) + vite: 5.0.2(@types/node@20.11.5) vue: 3.4.5(typescript@5.2.2) transitivePeerDependencies: - '@algolia/client-search'