create-vite-extra 2.3.0 → 2.4.0

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 (93) hide show
  1. package/LICENSE +124 -0
  2. package/package.json +2 -2
  3. package/template-deno-lit/deno.json +2 -2
  4. package/template-deno-lit-ts/deno.json +2 -2
  5. package/template-deno-preact/deno.json +1 -1
  6. package/template-deno-preact/src/app.jsx +1 -1
  7. package/template-deno-preact/src/main.jsx +1 -1
  8. package/template-deno-preact-ts/deno.json +1 -1
  9. package/template-deno-preact-ts/src/app.tsx +1 -1
  10. package/template-deno-preact-ts/src/main.tsx +1 -1
  11. package/template-deno-react/deno.json +3 -3
  12. package/template-deno-react/src/App.jsx +1 -1
  13. package/template-deno-react/src/main.jsx +3 -3
  14. package/template-deno-react-ts/deno.json +3 -3
  15. package/template-deno-react-ts/src/App.tsx +1 -1
  16. package/template-deno-react-ts/src/main.tsx +1 -1
  17. package/template-deno-solid/deno.json +1 -1
  18. package/template-deno-solid/src/App.jsx +1 -1
  19. package/template-deno-solid/src/main.jsx +1 -2
  20. package/template-deno-solid-ts/deno.json +1 -1
  21. package/template-deno-solid-ts/src/App.tsx +1 -1
  22. package/template-deno-solid-ts/src/main.tsx +1 -2
  23. package/template-deno-svelte/deno.json +3 -3
  24. package/template-deno-svelte/src/lib/Counter.svelte +2 -2
  25. package/template-deno-svelte/src/main.js +2 -1
  26. package/template-deno-svelte-ts/deno.json +3 -3
  27. package/template-deno-svelte-ts/src/lib/Counter.svelte +2 -2
  28. package/template-deno-svelte-ts/src/main.ts +3 -2
  29. package/template-deno-vanilla/deno.json +1 -1
  30. package/template-deno-vanilla-ts/deno.json +1 -1
  31. package/template-deno-vue/deno.json +1 -1
  32. package/template-deno-vue/src/main.js +1 -1
  33. package/template-deno-vue-ts/deno.json +1 -1
  34. package/template-deno-vue-ts/src/main.ts +1 -1
  35. package/template-library/package.json +1 -1
  36. package/template-library-ts/package.json +2 -2
  37. package/template-library-ts/tsconfig.json +3 -2
  38. package/template-ssr-preact/package.json +1 -1
  39. package/template-ssr-preact/src/app.jsx +1 -1
  40. package/template-ssr-preact-ts/package-lock.json +2923 -0
  41. package/template-ssr-preact-ts/package.json +3 -3
  42. package/template-ssr-preact-ts/src/app.tsx +1 -1
  43. package/template-ssr-preact-ts/tsconfig.json +3 -2
  44. package/template-ssr-preact-ts/tsconfig.node.json +16 -3
  45. package/template-ssr-react/package-lock.json +2629 -0
  46. package/template-ssr-react/package.json +2 -2
  47. package/template-ssr-react/src/App.jsx +1 -1
  48. package/template-ssr-react-streaming/package.json +2 -2
  49. package/template-ssr-react-streaming/src/App.jsx +1 -1
  50. package/template-ssr-react-streaming-ts/package.json +4 -4
  51. package/template-ssr-react-streaming-ts/src/App.tsx +1 -1
  52. package/template-ssr-react-streaming-ts/tsconfig.json +4 -3
  53. package/template-ssr-react-streaming-ts/tsconfig.node.json +16 -3
  54. package/template-ssr-react-ts/package.json +4 -4
  55. package/template-ssr-react-ts/src/App.tsx +1 -1
  56. package/template-ssr-react-ts/tsconfig.json +4 -3
  57. package/template-ssr-react-ts/tsconfig.node.json +16 -3
  58. package/template-ssr-solid/package.json +1 -1
  59. package/template-ssr-solid/src/App.jsx +1 -1
  60. package/template-ssr-solid-ts/package.json +2 -2
  61. package/template-ssr-solid-ts/src/App.tsx +1 -1
  62. package/template-ssr-solid-ts/tsconfig.json +4 -3
  63. package/template-ssr-solid-ts/tsconfig.node.json +16 -3
  64. package/template-ssr-svelte/jsconfig.json +2 -3
  65. package/template-ssr-svelte/package-lock.json +2125 -0
  66. package/template-ssr-svelte/package.json +3 -3
  67. package/template-ssr-svelte/server.js +1 -1
  68. package/template-ssr-svelte/src/entry-client.js +2 -2
  69. package/template-ssr-svelte/src/entry-server.js +2 -2
  70. package/template-ssr-svelte/src/lib/Counter.svelte +2 -2
  71. package/template-ssr-svelte/vite.config.js +1 -7
  72. package/template-ssr-svelte-ts/package-lock.json +89 -120
  73. package/template-ssr-svelte-ts/package.json +8 -7
  74. package/template-ssr-svelte-ts/server.js +1 -1
  75. package/template-ssr-svelte-ts/src/entry-client.ts +3 -3
  76. package/template-ssr-svelte-ts/src/entry-server.ts +2 -2
  77. package/template-ssr-svelte-ts/src/lib/Counter.svelte +2 -2
  78. package/template-ssr-svelte-ts/tsconfig.json +2 -1
  79. package/template-ssr-svelte-ts/tsconfig.node.json +4 -1
  80. package/template-ssr-svelte-ts/vite.config.ts +1 -7
  81. package/template-ssr-transform/package.json +1 -1
  82. package/template-ssr-vanilla/package.json +1 -1
  83. package/template-ssr-vanilla-ts/package.json +3 -3
  84. package/template-ssr-vanilla-ts/tsconfig.json +3 -2
  85. package/template-ssr-vue/package.json +1 -1
  86. package/template-ssr-vue-streaming/package.json +1 -1
  87. package/template-ssr-vue-streaming-ts/package.json +3 -3
  88. package/template-ssr-vue-streaming-ts/tsconfig.json +5 -4
  89. package/template-ssr-vue-streaming-ts/tsconfig.node.json +16 -2
  90. package/template-ssr-vue-ts/package-lock.json +2346 -0
  91. package/template-ssr-vue-ts/package.json +5 -4
  92. package/template-ssr-vue-ts/tsconfig.json +5 -4
  93. package/template-ssr-vue-ts/tsconfig.node.json +16 -2
@@ -20,8 +20,8 @@
20
20
  "devDependencies": {
21
21
  "@types/react": "^18.3.11",
22
22
  "@types/react-dom": "^18.3.1",
23
- "@vitejs/plugin-react": "^4.3.2",
23
+ "@vitejs/plugin-react": "^4.3.3",
24
24
  "cross-env": "^7.0.3",
25
- "vite": "^5.4.8"
25
+ "vite": "^5.4.9"
26
26
  }
27
27
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { useState } from 'react'
2
3
  import reactLogo from './assets/react.svg'
3
- import './App.css'
4
4
 
5
5
  function App() {
6
6
  const [count, setCount] = useState(0)
@@ -18,8 +18,8 @@
18
18
  "sirv": "^3.0.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@vitejs/plugin-react": "^4.3.2",
21
+ "@vitejs/plugin-react": "^4.3.3",
22
22
  "cross-env": "^7.0.3",
23
- "vite": "^5.4.8"
23
+ "vite": "^5.4.9"
24
24
  }
25
25
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { Suspense, lazy } from 'react'
2
3
  import reactLogo from './assets/react.svg'
3
- import './App.css'
4
4
 
5
5
  // Works also with SSR as expected
6
6
  const Card = lazy(() => import('./Card'))
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/express": "^5.0.0",
22
- "@types/node": "^22.7.5",
22
+ "@types/node": "^22.7.7",
23
23
  "@types/react": "^18.3.11",
24
24
  "@types/react-dom": "^18.3.1",
25
- "@vitejs/plugin-react": "^4.3.2",
25
+ "@vitejs/plugin-react": "^4.3.3",
26
26
  "cross-env": "^7.0.3",
27
- "typescript": "^5.6.3",
28
- "vite": "^5.4.8"
27
+ "typescript": "~5.6.3",
28
+ "vite": "^5.4.9"
29
29
  }
30
30
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { Suspense, lazy } from 'react'
2
3
  import reactLogo from './assets/react.svg'
3
- import './App.css'
4
4
 
5
5
  // Works also with SSR as expected
6
6
  const Card = lazy(() => import('./Card'))
@@ -2,15 +2,15 @@
2
2
  "compilerOptions": {
3
3
  "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
5
  "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
7
  "skipLibCheck": true,
8
8
 
9
9
  /* Bundler mode */
10
10
  "moduleResolution": "Bundler",
11
11
  "allowImportingTsExtensions": true,
12
- "resolveJsonModule": true,
13
12
  "isolatedModules": true,
13
+ "moduleDetection": "force",
14
14
  "noEmit": true,
15
15
  "jsx": "react-jsx",
16
16
 
@@ -18,7 +18,8 @@
18
18
  "strict": true,
19
19
  "noUnusedLocals": true,
20
20
  "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noUncheckedSideEffectImports": true
22
23
  },
23
24
  "include": ["src"],
24
25
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,11 +1,24 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
- "skipLibCheck": true,
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5
+ "target": "ES2022",
6
+ "lib": ["ES2023"],
5
7
  "module": "ESNext",
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
6
11
  "moduleResolution": "Bundler",
7
- "allowSyntheticDefaultImports": true,
8
- "jsx": "preserve"
12
+ "allowImportingTsExtensions": true,
13
+ "isolatedModules": true,
14
+ "moduleDetection": "force",
15
+
16
+ /* Linting */
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedSideEffectImports": true
9
22
  },
10
23
  "include": ["vite.config.ts"]
11
24
  }
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/express": "^5.0.0",
22
- "@types/node": "^22.7.5",
22
+ "@types/node": "^22.7.7",
23
23
  "@types/react": "^18.3.11",
24
24
  "@types/react-dom": "^18.3.1",
25
- "@vitejs/plugin-react": "^4.3.2",
25
+ "@vitejs/plugin-react": "^4.3.3",
26
26
  "cross-env": "^7.0.3",
27
- "typescript": "^5.6.3",
28
- "vite": "^5.4.8"
27
+ "typescript": "~5.6.3",
28
+ "vite": "^5.4.9"
29
29
  }
30
30
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { useState } from 'react'
2
3
  import reactLogo from './assets/react.svg'
3
- import './App.css'
4
4
 
5
5
  function App() {
6
6
  const [count, setCount] = useState(0)
@@ -2,15 +2,15 @@
2
2
  "compilerOptions": {
3
3
  "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
5
  "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
7
  "skipLibCheck": true,
8
8
 
9
9
  /* Bundler mode */
10
10
  "moduleResolution": "Bundler",
11
11
  "allowImportingTsExtensions": true,
12
- "resolveJsonModule": true,
13
12
  "isolatedModules": true,
13
+ "moduleDetection": "force",
14
14
  "noEmit": true,
15
15
  "jsx": "react-jsx",
16
16
 
@@ -18,7 +18,8 @@
18
18
  "strict": true,
19
19
  "noUnusedLocals": true,
20
20
  "noUnusedParameters": true,
21
- "noFallthroughCasesInSwitch": true
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noUncheckedSideEffectImports": true
22
23
  },
23
24
  "include": ["src"],
24
25
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,11 +1,24 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
- "skipLibCheck": true,
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5
+ "target": "ES2022",
6
+ "lib": ["ES2023"],
5
7
  "module": "ESNext",
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
6
11
  "moduleResolution": "Bundler",
7
- "allowSyntheticDefaultImports": true,
8
- "jsx": "preserve"
12
+ "allowImportingTsExtensions": true,
13
+ "isolatedModules": true,
14
+ "moduleDetection": "force",
15
+
16
+ /* Linting */
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedSideEffectImports": true
9
22
  },
10
23
  "include": ["vite.config.ts"]
11
24
  }
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "cross-env": "^7.0.3",
21
- "vite": "^5.4.8",
21
+ "vite": "^5.4.9",
22
22
  "vite-plugin-solid": "^2.10.2"
23
23
  }
24
24
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { createSignal } from 'solid-js'
2
3
  import solidLogo from './assets/solid.svg'
3
- import './App.css'
4
4
 
5
5
  function App() {
6
6
  const [count, setCount] = createSignal(0)
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/express": "^5.0.0",
21
- "@types/node": "^22.7.5",
21
+ "@types/node": "^22.7.7",
22
22
  "cross-env": "^7.0.3",
23
- "vite": "^5.4.8",
23
+ "vite": "^5.4.9",
24
24
  "vite-plugin-solid": "^2.10.2"
25
25
  }
26
26
  }
@@ -1,6 +1,6 @@
1
+ import './App.css'
1
2
  import { createSignal } from 'solid-js'
2
3
  import solidLogo from './assets/solid.svg'
3
- import './App.css'
4
4
 
5
5
  function App() {
6
6
  const [count, setCount] = createSignal(0)
@@ -2,15 +2,15 @@
2
2
  "compilerOptions": {
3
3
  "target": "ES2020",
4
4
  "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
5
  "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
7
  "skipLibCheck": true,
8
8
 
9
9
  /* Bundler mode */
10
10
  "moduleResolution": "Bundler",
11
11
  "allowImportingTsExtensions": true,
12
- "resolveJsonModule": true,
13
12
  "isolatedModules": true,
13
+ "moduleDetection": "force",
14
14
  "noEmit": true,
15
15
  "jsx": "preserve",
16
16
  "jsxImportSource": "solid-js",
@@ -19,7 +19,8 @@
19
19
  "strict": true,
20
20
  "noUnusedLocals": true,
21
21
  "noUnusedParameters": true,
22
- "noFallthroughCasesInSwitch": true
22
+ "noFallthroughCasesInSwitch": true,
23
+ "noUncheckedSideEffectImports": true
23
24
  },
24
25
  "include": ["src"],
25
26
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1,11 +1,24 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
- "skipLibCheck": true,
4
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5
+ "target": "ES2022",
6
+ "lib": ["ES2023"],
5
7
  "module": "ESNext",
8
+ "skipLibCheck": true,
9
+
10
+ /* Bundler mode */
6
11
  "moduleResolution": "Bundler",
7
- "allowSyntheticDefaultImports": true,
8
- "jsx": "preserve"
12
+ "allowImportingTsExtensions": true,
13
+ "isolatedModules": true,
14
+ "moduleDetection": "force",
15
+
16
+ /* Linting */
17
+ "strict": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noFallthroughCasesInSwitch": true,
21
+ "noUncheckedSideEffectImports": true
9
22
  },
10
23
  "include": ["vite.config.ts"]
11
24
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "moduleResolution": "Node",
3
+ "moduleResolution": "Bundler",
4
4
  "target": "ESNext",
5
5
  "module": "ESNext",
6
6
  /**
@@ -8,7 +8,7 @@
8
8
  * a value or a type, so tell TypeScript to enforce using
9
9
  * `import type` instead of `import` for Types.
10
10
  */
11
- "importsNotUsedAsValues": "error",
11
+ "verbatimModuleSyntax": true,
12
12
  "isolatedModules": true,
13
13
  "resolveJsonModule": true,
14
14
  /**
@@ -18,7 +18,6 @@
18
18
  "sourceMap": true,
19
19
  "esModuleInterop": true,
20
20
  "skipLibCheck": true,
21
- "forceConsistentCasingInFileNames": true,
22
21
  /**
23
22
  * Typecheck JS in `.svelte` and `.js` files by default.
24
23
  * Disable this if you'd like to use dynamic types.