diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 04c098330c..50a7573fd3 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -115,7 +115,6 @@ export default extendConfig( include: ['mermaid > @braintree/sanitize-url'], }, resolve: { - tsconfigPaths: true, alias: [ { find: '@local-assets', replacement: resolve(__dirname, 'theme/assets') }, { find: '@layouts', replacement: resolve(__dirname, 'theme/layouts') }, diff --git a/docs/.vitepress/tsconfig.json b/docs/.vitepress/tsconfig.json index 4d275c3300..01c18825fc 100644 --- a/docs/.vitepress/tsconfig.json +++ b/docs/.vitepress/tsconfig.json @@ -5,12 +5,9 @@ "lib": ["ES2024", "DOM", "DOM.Iterable"], "moduleResolution": "bundler", "resolveJsonModule": true, - "noEmit": false, - "emitDeclarationOnly": true, - "outDir": "dist", + "noEmit": true, "allowImportingTsExtensions": true, "strict": true, - "declaration": true, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, diff --git a/docs/_data/team.ts b/docs/_data/team.ts index 6509bd63ed..bb0b21d914 100644 --- a/docs/_data/team.ts +++ b/docs/_data/team.ts @@ -1,119 +1,119 @@ -import type { DefaultTheme } from "vitepress"; +import type { DefaultTheme } from 'vitepress'; export const core: DefaultTheme.TeamMember[] = [ { - avatar: "https://github.com/fengmk2.png", - name: "MK", + avatar: 'https://github.com/fengmk2.png', + name: 'MK', links: [ - { icon: "github", link: "https://github.com/fengmk2" }, - { icon: "x", link: "https://x.com/fengmk2" }, + { icon: 'github', link: 'https://github.com/fengmk2' }, + { icon: 'x', link: 'https://x.com/fengmk2' }, ], }, { - avatar: "https://github.com/branchseer.png", - name: "Wang Chi", + avatar: 'https://github.com/branchseer.png', + name: 'Wang Chi', links: [ - { icon: "github", link: "https://github.com/branchseer" }, - { icon: "x", link: "https://x.com/branchseer" }, + { icon: 'github', link: 'https://github.com/branchseer' }, + { icon: 'x', link: 'https://x.com/branchseer' }, ], }, { - avatar: "https://github.com/Brooooooklyn.png", - name: "Long Yinan", + avatar: 'https://github.com/Brooooooklyn.png', + name: 'Long Yinan', links: [ - { icon: "github", link: "https://github.com/Brooooooklyn" }, - { icon: "x", link: "https://x.com/Brooooook_lyn" }, + { icon: 'github', link: 'https://github.com/Brooooooklyn' }, + { icon: 'x', link: 'https://x.com/Brooooook_lyn' }, ], }, { - avatar: "https://github.com/cpojer.png", - name: "Christoph Nakazawa", + avatar: 'https://github.com/cpojer.png', + name: 'Christoph Nakazawa', links: [ - { icon: "github", link: "https://github.com/cpojer" }, - { icon: "x", link: "https://x.com/cpojer" }, - { icon: "bluesky", link: "https://bsky.app/profile/christoph.nkzw.tech" }, + { icon: 'github', link: 'https://github.com/cpojer' }, + { icon: 'x', link: 'https://x.com/cpojer' }, + { icon: 'bluesky', link: 'https://bsky.app/profile/christoph.nkzw.tech' }, ], }, { - avatar: "https://github.com/TheAlexLichter.png", - name: "Alexander Lichter", + avatar: 'https://github.com/TheAlexLichter.png', + name: 'Alexander Lichter', links: [ - { icon: "github", link: "https://github.com/TheAlexLichter" }, - { icon: "x", link: "https://x.com/TheAlexLichter" }, - { icon: "bluesky", link: "https://bsky.app/profile/thealexlichter.com" }, + { icon: 'github', link: 'https://github.com/TheAlexLichter' }, + { icon: 'x', link: 'https://x.com/TheAlexLichter' }, + { icon: 'bluesky', link: 'https://bsky.app/profile/thealexlichter.com' }, ], }, { - avatar: "https://github.com/camc314.png", - name: "Cameron Clark", + avatar: 'https://github.com/camc314.png', + name: 'Cameron Clark', links: [ - { icon: "github", link: "https://github.com/camc314" }, - { icon: "x", link: "https://x.com/cameron_C2" }, + { icon: 'github', link: 'https://github.com/camc314' }, + { icon: 'x', link: 'https://x.com/cameron_C2' }, ], }, { - avatar: "https://github.com/leaysgur.png", - name: "Yuji Sugiura", + avatar: 'https://github.com/leaysgur.png', + name: 'Yuji Sugiura', links: [ - { icon: "github", link: "https://github.com/leaysgur" }, - { icon: "x", link: "https://x.com/leaysgur" }, + { icon: 'github', link: 'https://github.com/leaysgur' }, + { icon: 'x', link: 'https://x.com/leaysgur' }, ], }, { - avatar: "https://github.com/mdong1909.png", - name: "Michael Dong", + avatar: 'https://github.com/mdong1909.png', + name: 'Michael Dong', links: [ - { icon: "github", link: "https://github.com/mdong1909" }, - { icon: "x", link: "https://x.com/mdong1909" }, - { icon: "linkedin", link: "https://www.linkedin.com/in/michael-d-612b5b50/" }, + { icon: 'github', link: 'https://github.com/mdong1909' }, + { icon: 'x', link: 'https://x.com/mdong1909' }, + { icon: 'linkedin', link: 'https://www.linkedin.com/in/michael-d-612b5b50/' }, ], }, { - avatar: "https://github.com/kazupon.png", - name: "kazupon", + avatar: 'https://github.com/kazupon.png', + name: 'kazupon', links: [ - { icon: "github", link: "https://github.com/kazupon" }, - { icon: "x", link: "https://x.com/kazupon" }, - { icon: "bluesky", link: "https://bsky.app/profile/kazupon.dev" }, + { icon: 'github', link: 'https://github.com/kazupon' }, + { icon: 'x', link: 'https://x.com/kazupon' }, + { icon: 'bluesky', link: 'https://bsky.app/profile/kazupon.dev' }, ], }, { - avatar: "https://github.com/ubugeeei.png", - name: "ubugeeei", + avatar: 'https://github.com/ubugeeei.png', + name: 'ubugeeei', links: [ - { icon: "github", link: "https://github.com/ubugeeei" }, - { icon: "x", link: "https://x.com/ubugeeei" }, + { icon: 'github', link: 'https://github.com/ubugeeei' }, + { icon: 'x', link: 'https://x.com/ubugeeei' }, ], }, { - avatar: "https://github.com/nekomoyi.png", - name: "nekomoyi", - links: [{ icon: "github", link: "https://github.com/nekomoyi" }], + avatar: 'https://github.com/nekomoyi.png', + name: 'nekomoyi', + links: [{ icon: 'github', link: 'https://github.com/nekomoyi' }], }, { - avatar: "https://github.com/HaasStefan.png", - name: "Stefan Haas", + avatar: 'https://github.com/HaasStefan.png', + name: 'Stefan Haas', links: [ - { icon: "github", link: "https://github.com/HaasStefan" }, - { icon: "x", link: "https://x.com/StefanvHaas" }, - { icon: "linkedin", link: "https://www.linkedin.com/in/stefan-haas-angular" }, + { icon: 'github', link: 'https://github.com/HaasStefan' }, + { icon: 'x', link: 'https://x.com/StefanvHaas' }, + { icon: 'linkedin', link: 'https://www.linkedin.com/in/stefan-haas-angular' }, ], }, { - avatar: "https://github.com/naokihaba.png", - name: "naokihaba", + avatar: 'https://github.com/naokihaba.png', + name: 'naokihaba', links: [ - { icon: "github", link: "https://github.com/naokihaba" }, - { icon: "x", link: "https://x.com/naokihaba" }, - { icon: "bluesky", link: "https://bsky.app/profile/naokihaba.com" }, + { icon: 'github', link: 'https://github.com/naokihaba' }, + { icon: 'x', link: 'https://x.com/naokihaba' }, + { icon: 'bluesky', link: 'https://bsky.app/profile/naokihaba.com' }, ], }, { - avatar: "https://github.com/jong-kyung.png", - name: "JongKyung Lee", + avatar: 'https://github.com/jong-kyung.png', + name: 'JongKyung Lee', links: [ - { icon: "github", link: "https://github.com/jong-kyung" }, - { icon: "linkedin", link: "https://www.linkedin.com/in/jong-kyung" }, + { icon: 'github', link: 'https://github.com/jong-kyung' }, + { icon: 'linkedin', link: 'https://www.linkedin.com/in/jong-kyung' }, ], }, ]; diff --git a/docs/config/index.md b/docs/config/index.md index a3dc05f092..34f4d171cd 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -28,4 +28,4 @@ Vite+ extends the basic Vite configuration with these additions: - [`test`](/config/test) for Vitest - [`run`](/config/run) for Vite Task - [`pack`](/config/pack) for tsdown -- [`staged`](/config/staged) for staged-file checks \ No newline at end of file +- [`staged`](/config/staged) for staged-file checks diff --git a/docs/config/run.md b/docs/config/run.md index 4d79e0c78b..c10114782d 100644 --- a/docs/config/run.md +++ b/docs/config/run.md @@ -214,6 +214,7 @@ tasks: { ``` The `base` field is required and controls how the glob pattern is resolved: + - `"package"`: relative to the package directory - `"workspace"`: relative to the workspace root diff --git a/docs/guide/create.md b/docs/guide/create.md index 315922b01f..d9ff2c6d91 100644 --- a/docs/guide/create.md +++ b/docs/guide/create.md @@ -174,12 +174,12 @@ The manifest lives at `createConfig.templates` in `@org/create`'s `package.json` Each entry supports: -| Field | Required | Notes | -| ------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | yes | Kebab-case identifier. Used by `vp create @org:` for direct selection. Must be unique within the array. | -| `description` | yes | One-line description shown in the picker. | +| Field | Required | Notes | +| ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `name` | yes | Kebab-case identifier. Used by `vp create @org:` for direct selection. Must be unique within the array. | +| `description` | yes | One-line description shown in the picker. | | `template` | yes | An npm specifier (`@org/template-foo`, optionally `@version`), a GitHub URL (`github:user/repo`), a `vite:*` builtin, a local workspace package name, or a relative path (`./templates/foo`) that resolves against the `@org/create` root. | -| `monorepo` | no | If `true`, marks this entry as a monorepo-creating template. Hidden from the picker when `vp create` runs inside an existing monorepo, mirroring the built-in `vite:monorepo` filter. | +| `monorepo` | no | If `true`, marks this entry as a monorepo-creating template. Hidden from the picker when `vp create` runs inside an existing monorepo, mirroring the built-in `vite:monorepo` filter. | An invalid manifest is a hard error, not a silent fall-through — a maintainer who shipped a manifest should hear about the offending field, e.g. `@your-org/create: createConfig.templates[2].template must be a non-empty string`. diff --git a/docs/guide/troubleshooting.md b/docs/guide/troubleshooting.md index 1e130fd87d..e15d5ef84a 100644 --- a/docs/guide/troubleshooting.md +++ b/docs/guide/troubleshooting.md @@ -22,7 +22,6 @@ If you are migrating an existing project and it still depends on older Vite or V The Oxlint type checker path powered by `tsgolint` does not support `baseUrl`, so Vite+ skips `typeAware` and `typeCheck` when that setting is present. - ## `vp lint` / `vp fmt` may fail to read `vite.config.ts` `vp lint`, `vp fmt`, and the Oxc VS Code extension all read the `lint` / `fmt` blocks from `vite.config.ts`. Today that support has important limitations. diff --git a/docs/package.json b/docs/package.json index 844713a36a..b31a5ec0af 100644 --- a/docs/package.json +++ b/docs/package.json @@ -24,4 +24,4 @@ "vitepress": "2.0.0-alpha.15" }, "packageManager": "pnpm@10.33.2" -} \ No newline at end of file +} diff --git a/vite.config.ts b/vite.config.ts index 5b208c4458..73d6ccca86 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -47,7 +47,6 @@ export default defineConfig({ '**/snap-tests/**', '**/snap-tests-global/**', '**/snap-tests-todo/**', - 'docs/**', 'packages/*/binding/**', 'packages/core/rollupLicensePlugin.ts', 'packages/core/vite-rolldown.config.ts', @@ -70,8 +69,6 @@ export default defineConfig({ 'packages/cli/snap-tests/check-*/**', 'packages/cli/snap-tests/fmt-ignore-patterns/src/ignored', 'packages/cli/snap-tests-global/migration-lint-staged-ts-config', - 'docs/**', - '!docs/.vitepress/**', 'ecosystem-ci/*/**', 'packages/test/**.cjs', 'packages/test/**.cts',