@tanstack/create 0.63.5 → 0.63.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/frameworks/react/add-ons/compiler/package.json +1 -0
  3. package/dist/frameworks/react/examples/events/package.json +1 -1
  4. package/dist/frameworks/react/examples/resume/package.json +1 -1
  5. package/dist/frameworks/react/project/base/package.json +2 -2
  6. package/dist/frameworks/react/project/base/tsconfig.json.ejs +0 -1
  7. package/dist/frameworks/react/project/base/vite.config.ts.ejs +7 -5
  8. package/dist/frameworks/react/project/packages.json +1 -1
  9. package/dist/frameworks/solid/examples/tanchat/assets/ai-streaming-server/package.json +1 -1
  10. package/dist/frameworks/solid/project/base/package.json +7 -5
  11. package/dist/frameworks/solid/project/base/src/App.test.tsx.ejs +10 -0
  12. package/dist/frameworks/solid/project/base/tsconfig.json.ejs +0 -1
  13. package/dist/frameworks/solid/project/base/vite.config.ts.ejs +1 -5
  14. package/dist/frameworks/solid/project/packages.json +1 -1
  15. package/dist/types/custom-add-ons/add-on.d.ts +2 -2
  16. package/dist/types/custom-add-ons/starter.d.ts +2 -2
  17. package/dist/types/options.d.ts +1 -1
  18. package/dist/types/registry.d.ts +1 -1
  19. package/package.json +4 -4
  20. package/src/custom-add-ons/add-on.ts +2 -2
  21. package/src/custom-add-ons/starter.ts +2 -2
  22. package/src/frameworks/react/add-ons/compiler/package.json +1 -0
  23. package/src/frameworks/react/examples/events/package.json +1 -1
  24. package/src/frameworks/react/examples/resume/package.json +1 -1
  25. package/src/frameworks/react/project/base/package.json +2 -2
  26. package/src/frameworks/react/project/base/tsconfig.json.ejs +0 -1
  27. package/src/frameworks/react/project/base/vite.config.ts.ejs +7 -5
  28. package/src/frameworks/react/project/packages.json +1 -1
  29. package/src/frameworks/solid/examples/tanchat/assets/ai-streaming-server/package.json +1 -1
  30. package/src/frameworks/solid/project/base/package.json +7 -5
  31. package/src/frameworks/solid/project/base/src/App.test.tsx.ejs +10 -0
  32. package/src/frameworks/solid/project/base/tsconfig.json.ejs +0 -1
  33. package/src/frameworks/solid/project/base/vite.config.ts.ejs +1 -5
  34. package/src/frameworks/solid/project/packages.json +1 -1
  35. package/src/options.ts +1 -1
  36. package/src/registry.ts +1 -1
  37. package/tsconfig.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @tanstack/create
2
2
 
3
+ ## 0.63.7
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: bump solid base and example to vite 8 ([#437](https://github.com/TanStack/cli/pull/437))
8
+
9
+ ## 0.63.6
10
+
11
+ ### Patch Changes
12
+
13
+ - Auto-generated changeset from semantic commits on main.
14
+
15
+ - chore: update to TS6.0, fix deprecated tsconfig options (#421) (847b396)
16
+
3
17
  ## 0.63.5
4
18
 
5
19
  ### Patch Changes
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
+ "@rolldown/plugin-babel": "^0.2.3",
3
4
  "babel-plugin-react-compiler": "^1.0.0"
4
5
  }
5
6
  }
@@ -18,6 +18,6 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@content-collections/core": "^0.13.1",
21
- "@content-collections/vite": "^0.2.8"
21
+ "@content-collections/vite": "^0.3.0"
22
22
  }
23
23
  }
@@ -22,6 +22,6 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@content-collections/core": "^0.13.1",
25
- "@content-collections/vite": "^0.2.8"
25
+ "@content-collections/vite": "^0.3.0"
26
26
  }
27
27
  }
@@ -30,9 +30,9 @@
30
30
  "@types/react-dom": "^19.2.0",
31
31
  "@vitejs/plugin-react": "^6.0.1",
32
32
  "jsdom": "^28.1.0",
33
- "typescript": "^5.9.2",
33
+ "typescript": "^6.0.2",
34
34
  "vite": "^8.0.0",
35
- "vitest": "^3.0.5"
35
+ "vitest": "^4.1.5"
36
36
  },
37
37
  "pnpm": {
38
38
  "onlyBuiltDependencies": [
@@ -5,7 +5,6 @@
5
5
  "target": "ES2022",
6
6
  "jsx": "react-jsx",
7
7
  "module": "ESNext",
8
- "baseUrl": ".",
9
8
  "paths": {
10
9
  "#/*": ["./src/*"],
11
10
  "@/*": ["./src/*"]
@@ -8,7 +8,12 @@ import { tanstackRouter } from '@tanstack/router-plugin/vite'
8
8
  <% } else { %>
9
9
  import { tanstackStart } from '@tanstack/react-start/plugin/vite';
10
10
  <% } %>
11
+ <% if (addOnEnabled.compiler) { -%>
12
+ import viteReact, { reactCompilerPreset } from '@vitejs/plugin-react'
13
+ import babel from '@rolldown/plugin-babel'
14
+ <% } else { -%>
11
15
  import viteReact from '@vitejs/plugin-react'
16
+ <% } -%>
12
17
  import tailwindcss from "@tailwindcss/vite"
13
18
  <% for(const integration of integrations.filter(i => i.type === 'vite-plugin')) { %><%- integrationImportContent(integration) %>
14
19
  <% } %>
@@ -22,11 +27,8 @@ const config = defineConfig({
22
27
  }), <% } %><% for(const integration of integrations.filter(i => i.type === 'vite-plugin')) { %><%- integrationImportCode(integration) %>,<% } %>
23
28
  tailwindcss(),
24
29
  <% if (routerOnly) { %>tanstackRouter({ target: 'react', autoCodeSplitting: true }),<% } else { %>tanstackStart(),<% } %>
25
- viteReact(<% if (addOnEnabled.compiler) { %>{
26
- babel: {
27
- plugins: ["babel-plugin-react-compiler"],
28
- },
29
- }<% } %>),
30
+ viteReact(),<% if (addOnEnabled.compiler) { %>
31
+ babel({ presets: [reactCompilerPreset()] }),<% } %>
30
32
  ],
31
33
  })
32
34
 
@@ -4,7 +4,7 @@
4
4
  "@types/react": "^19.2.0",
5
5
  "@types/node": "^22.10.2",
6
6
  "@types/react-dom": "^19.2.0",
7
- "typescript": "^5.7.2"
7
+ "typescript": "^6.0.2"
8
8
  }
9
9
  },
10
10
  "tailwindcss": {
@@ -21,6 +21,6 @@
21
21
  "@types/express": "^5.0.3",
22
22
  "@types/node": "^24.6.0",
23
23
  "tsx": "^4.21.0",
24
- "typescript": "^5.9.2"
24
+ "typescript": "^6.0.2"
25
25
  }
26
26
  }
@@ -14,14 +14,16 @@
14
14
  "@tanstack/solid-router-devtools": "latest",
15
15
  "@tanstack/solid-router-ssr-query": "latest",
16
16
  "@tanstack/solid-start": "latest",
17
- "solid-js": "^1.9.11",
18
- "vite-tsconfig-paths": "^5.1.4"
17
+ "solid-js": "^1.9.12"
19
18
  },
20
19
  "devDependencies": {
20
+ "@solidjs/testing-library": "^0.8.10",
21
21
  "@tanstack/devtools-vite": "latest",
22
- "vite-plugin-solid": "^2.11.10",
23
- "typescript": "^5.9.2",
24
- "vite": "^7.3.1"
22
+ "jsdom": "^28.1.0",
23
+ "vite-plugin-solid": "^2.11.12",
24
+ "typescript": "^6.0.2",
25
+ "vite": "^8.0.0",
26
+ "vitest": "^4.1.5"
25
27
  },
26
28
  "pnpm": {
27
29
  "onlyBuiltDependencies": ["esbuild", "lightningcss"]
@@ -0,0 +1,10 @@
1
+ <% if (fileRouter) { ignoreFile() } %>import { describe, expect, test } from "vitest";
2
+ import { render, screen } from "@solidjs/testing-library";
3
+ import App from "./App.<%= jsx %>";
4
+
5
+ describe("App", () => {
6
+ test("renders", () => {
7
+ render(() => <App />);
8
+ expect(screen.getByText("Learn Solid")).toBeDefined();
9
+ });
10
+ });
@@ -22,7 +22,6 @@
22
22
  "noUnusedParameters": true,
23
23
  "noFallthroughCasesInSwitch": true,
24
24
  "noUncheckedSideEffectImports": true<% if (addOnEnabled['solid-ui']) { %>,
25
- "baseUrl": ".",
26
25
  "paths": {
27
26
  "~/*": ["./src/*"]
28
27
  }
@@ -1,6 +1,5 @@
1
1
  import { defineConfig } from "vite";
2
2
  import { devtools } from '@tanstack/devtools-vite'
3
- import viteTsConfigPaths from 'vite-tsconfig-paths'
4
3
  import tailwindcss from "@tailwindcss/vite"
5
4
  <% if (routerOnly) { %>
6
5
  import { tanstackRouter } from '@tanstack/router-plugin/vite'
@@ -12,11 +11,8 @@ import solidPlugin from 'vite-plugin-solid';
12
11
  <% } %>
13
12
 
14
13
  export default defineConfig({
14
+ resolve: { tsconfigPaths: true },
15
15
  plugins: [devtools(), <% for(const integration of integrations.filter(i => i.type === 'vite-plugin')) { %><%- integrationImportCode(integration) %>,<% } %>
16
- // this is the plugin that enables path aliases
17
- viteTsConfigPaths({
18
- projects: ['./tsconfig.json'],
19
- }),
20
16
  tailwindcss(),
21
17
  <% if (routerOnly) { %>tanstackRouter({ target: 'solid', autoCodeSplitting: true }),<% } else { %>tanstackStart(),<% } %>
22
18
  solidPlugin(<% if (!routerOnly) { %>{ ssr: true }<% } %>),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "typescript": {
3
3
  "devDependencies": {
4
- "typescript": "^5.7.2"
4
+ "typescript": "^6.0.2"
5
5
  }
6
6
  },
7
7
  "tailwindcss": {
@@ -1,5 +1,5 @@
1
- import type { PersistedOptions } from '../config-file';
2
- import type { AddOn, AddOnInfo, Environment } from '../types';
1
+ import type { PersistedOptions } from '../config-file.js';
2
+ import type { AddOn, AddOnInfo, Environment } from '../types.js';
3
3
  export declare const ADD_ON_IGNORE_FILES: Array<string>;
4
4
  export declare function camelCase(str: string): string;
5
5
  export declare function templatize(routeCode: string, routeFile: string): {
@@ -1,5 +1,5 @@
1
- import type { PersistedOptions } from '../config-file';
2
- import type { Environment, Starter, StarterInfo } from '../types';
1
+ import type { PersistedOptions } from '../config-file.js';
2
+ import type { Environment, Starter, StarterInfo } from '../types.js';
3
3
  export declare function readOrGenerateStarterInfo(options: PersistedOptions): Promise<StarterInfo>;
4
4
  export declare function updateStarterInfo(environment: Environment): Promise<void>;
5
5
  export declare function compileStarter(environment: Environment): Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { Options, SerializedOptions } from './types';
1
+ import type { Options, SerializedOptions } from './types.js';
2
2
  export declare const createSerializedOptions: (options: Options) => SerializedOptions;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import type { AddOn, Starter } from './types';
2
+ import type { AddOn, Starter } from './types.js';
3
3
  declare const registrySchema: z.ZodObject<{
4
4
  templates: z.ZodOptional<z.ZodArray<z.ZodObject<{
5
5
  name: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/create",
3
- "version": "0.63.5",
3
+ "version": "0.63.7",
4
4
  "description": "TanStack Application Builder Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -36,10 +36,10 @@
36
36
  "@types/ejs": "^3.1.5",
37
37
  "@types/node": "^22.13.4",
38
38
  "@types/parse-gitignore": "^1.0.2",
39
- "@vitest/coverage-v8": "3.1.1",
39
+ "@vitest/coverage-v8": "4.1.5",
40
40
  "eslint": "^9.20.0",
41
- "typescript": "^5.6.3",
42
- "vitest": "^3.0.8",
41
+ "typescript": "^6.0.2",
42
+ "vitest": "^4.1.5",
43
43
  "vitest-fetch-mock": "^0.4.5"
44
44
  },
45
45
  "scripts": {
@@ -12,14 +12,14 @@ import {
12
12
  runCreateApp,
13
13
  } from './shared.js'
14
14
 
15
- import type { PersistedOptions } from '../config-file'
15
+ import type { PersistedOptions } from '../config-file.js'
16
16
  import type {
17
17
  AddOn,
18
18
  AddOnCompiled,
19
19
  AddOnInfo,
20
20
  Environment,
21
21
  Options,
22
- } from '../types'
22
+ } from '../types.js'
23
23
 
24
24
  const ADD_ON_DIR = '.add-on'
25
25
 
@@ -12,14 +12,14 @@ import {
12
12
  runCreateApp,
13
13
  } from './shared.js'
14
14
 
15
- import type { PersistedOptions } from '../config-file'
15
+ import type { PersistedOptions } from '../config-file.js'
16
16
  import type {
17
17
  Environment,
18
18
  Options,
19
19
  Starter,
20
20
  StarterCompiled,
21
21
  StarterInfo,
22
- } from '../types'
22
+ } from '../types.js'
23
23
 
24
24
  const INFO_FILE = 'template-info.json'
25
25
  const LEGACY_INFO_FILE = 'starter-info.json'
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
+ "@rolldown/plugin-babel": "^0.2.3",
3
4
  "babel-plugin-react-compiler": "^1.0.0"
4
5
  }
5
6
  }
@@ -18,6 +18,6 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@content-collections/core": "^0.13.1",
21
- "@content-collections/vite": "^0.2.8"
21
+ "@content-collections/vite": "^0.3.0"
22
22
  }
23
23
  }
@@ -22,6 +22,6 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@content-collections/core": "^0.13.1",
25
- "@content-collections/vite": "^0.2.8"
25
+ "@content-collections/vite": "^0.3.0"
26
26
  }
27
27
  }
@@ -30,9 +30,9 @@
30
30
  "@types/react-dom": "^19.2.0",
31
31
  "@vitejs/plugin-react": "^6.0.1",
32
32
  "jsdom": "^28.1.0",
33
- "typescript": "^5.9.2",
33
+ "typescript": "^6.0.2",
34
34
  "vite": "^8.0.0",
35
- "vitest": "^3.0.5"
35
+ "vitest": "^4.1.5"
36
36
  },
37
37
  "pnpm": {
38
38
  "onlyBuiltDependencies": [
@@ -5,7 +5,6 @@
5
5
  "target": "ES2022",
6
6
  "jsx": "react-jsx",
7
7
  "module": "ESNext",
8
- "baseUrl": ".",
9
8
  "paths": {
10
9
  "#/*": ["./src/*"],
11
10
  "@/*": ["./src/*"]
@@ -8,7 +8,12 @@ import { tanstackRouter } from '@tanstack/router-plugin/vite'
8
8
  <% } else { %>
9
9
  import { tanstackStart } from '@tanstack/react-start/plugin/vite';
10
10
  <% } %>
11
+ <% if (addOnEnabled.compiler) { -%>
12
+ import viteReact, { reactCompilerPreset } from '@vitejs/plugin-react'
13
+ import babel from '@rolldown/plugin-babel'
14
+ <% } else { -%>
11
15
  import viteReact from '@vitejs/plugin-react'
16
+ <% } -%>
12
17
  import tailwindcss from "@tailwindcss/vite"
13
18
  <% for(const integration of integrations.filter(i => i.type === 'vite-plugin')) { %><%- integrationImportContent(integration) %>
14
19
  <% } %>
@@ -22,11 +27,8 @@ const config = defineConfig({
22
27
  }), <% } %><% for(const integration of integrations.filter(i => i.type === 'vite-plugin')) { %><%- integrationImportCode(integration) %>,<% } %>
23
28
  tailwindcss(),
24
29
  <% if (routerOnly) { %>tanstackRouter({ target: 'react', autoCodeSplitting: true }),<% } else { %>tanstackStart(),<% } %>
25
- viteReact(<% if (addOnEnabled.compiler) { %>{
26
- babel: {
27
- plugins: ["babel-plugin-react-compiler"],
28
- },
29
- }<% } %>),
30
+ viteReact(),<% if (addOnEnabled.compiler) { %>
31
+ babel({ presets: [reactCompilerPreset()] }),<% } %>
30
32
  ],
31
33
  })
32
34
 
@@ -4,7 +4,7 @@
4
4
  "@types/react": "^19.2.0",
5
5
  "@types/node": "^22.10.2",
6
6
  "@types/react-dom": "^19.2.0",
7
- "typescript": "^5.7.2"
7
+ "typescript": "^6.0.2"
8
8
  }
9
9
  },
10
10
  "tailwindcss": {
@@ -21,6 +21,6 @@
21
21
  "@types/express": "^5.0.3",
22
22
  "@types/node": "^24.6.0",
23
23
  "tsx": "^4.21.0",
24
- "typescript": "^5.9.2"
24
+ "typescript": "^6.0.2"
25
25
  }
26
26
  }
@@ -14,14 +14,16 @@
14
14
  "@tanstack/solid-router-devtools": "latest",
15
15
  "@tanstack/solid-router-ssr-query": "latest",
16
16
  "@tanstack/solid-start": "latest",
17
- "solid-js": "^1.9.11",
18
- "vite-tsconfig-paths": "^5.1.4"
17
+ "solid-js": "^1.9.12"
19
18
  },
20
19
  "devDependencies": {
20
+ "@solidjs/testing-library": "^0.8.10",
21
21
  "@tanstack/devtools-vite": "latest",
22
- "vite-plugin-solid": "^2.11.10",
23
- "typescript": "^5.9.2",
24
- "vite": "^7.3.1"
22
+ "jsdom": "^28.1.0",
23
+ "vite-plugin-solid": "^2.11.12",
24
+ "typescript": "^6.0.2",
25
+ "vite": "^8.0.0",
26
+ "vitest": "^4.1.5"
25
27
  },
26
28
  "pnpm": {
27
29
  "onlyBuiltDependencies": ["esbuild", "lightningcss"]
@@ -0,0 +1,10 @@
1
+ <% if (fileRouter) { ignoreFile() } %>import { describe, expect, test } from "vitest";
2
+ import { render, screen } from "@solidjs/testing-library";
3
+ import App from "./App.<%= jsx %>";
4
+
5
+ describe("App", () => {
6
+ test("renders", () => {
7
+ render(() => <App />);
8
+ expect(screen.getByText("Learn Solid")).toBeDefined();
9
+ });
10
+ });
@@ -22,7 +22,6 @@
22
22
  "noUnusedParameters": true,
23
23
  "noFallthroughCasesInSwitch": true,
24
24
  "noUncheckedSideEffectImports": true<% if (addOnEnabled['solid-ui']) { %>,
25
- "baseUrl": ".",
26
25
  "paths": {
27
26
  "~/*": ["./src/*"]
28
27
  }
@@ -1,6 +1,5 @@
1
1
  import { defineConfig } from "vite";
2
2
  import { devtools } from '@tanstack/devtools-vite'
3
- import viteTsConfigPaths from 'vite-tsconfig-paths'
4
3
  import tailwindcss from "@tailwindcss/vite"
5
4
  <% if (routerOnly) { %>
6
5
  import { tanstackRouter } from '@tanstack/router-plugin/vite'
@@ -12,11 +11,8 @@ import solidPlugin from 'vite-plugin-solid';
12
11
  <% } %>
13
12
 
14
13
  export default defineConfig({
14
+ resolve: { tsconfigPaths: true },
15
15
  plugins: [devtools(), <% for(const integration of integrations.filter(i => i.type === 'vite-plugin')) { %><%- integrationImportCode(integration) %>,<% } %>
16
- // this is the plugin that enables path aliases
17
- viteTsConfigPaths({
18
- projects: ['./tsconfig.json'],
19
- }),
20
16
  tailwindcss(),
21
17
  <% if (routerOnly) { %>tanstackRouter({ target: 'solid', autoCodeSplitting: true }),<% } else { %>tanstackStart(),<% } %>
22
18
  solidPlugin(<% if (!routerOnly) { %>{ ssr: true }<% } %>),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "typescript": {
3
3
  "devDependencies": {
4
- "typescript": "^5.7.2"
4
+ "typescript": "^6.0.2"
5
5
  }
6
6
  },
7
7
  "tailwindcss": {
package/src/options.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Options, SerializedOptions } from './types'
1
+ import type { Options, SerializedOptions } from './types.js'
2
2
 
3
3
  export const createSerializedOptions = (options: Options) => {
4
4
  const serializedOptions: SerializedOptions = {
package/src/registry.ts CHANGED
@@ -3,7 +3,7 @@ import { loadRemoteAddOn } from './custom-add-ons/add-on.js'
3
3
  import { loadStarter } from './custom-add-ons/starter.js'
4
4
  import { handleSpecialURL } from './utils.js'
5
5
 
6
- import type { AddOn, Starter } from './types'
6
+ import type { AddOn, Starter } from './types.js'
7
7
 
8
8
  const registrySchema = z.object({
9
9
  templates: z
package/tsconfig.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ES2020",
4
- "module": "ES2020",
4
+ "module": "NodeNext",
5
5
  "outDir": "./dist",
6
6
  "rootDir": "./src",
7
7
  "strict": true,
8
8
  "esModuleInterop": true,
9
9
  "skipLibCheck": true,
10
10
  "forceConsistentCasingInFileNames": true,
11
- "moduleResolution": "node",
11
+ "moduleResolution": "NodeNext",
12
12
  "declaration": true,
13
13
  "declarationDir": "./dist/types"
14
14
  },