@nuxt/docs-nightly 4.0.0-29191220.404cf550 → 4.0.0-29191554.69345c32

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.
@@ -992,6 +992,7 @@ Nuxt now generates separate TypeScript configurations for different contexts to
992
992
  * `.nuxt/tsconfig.app.json` - For your app code (Vue components, composables, etc.)
993
993
  * `.nuxt/tsconfig.server.json` - For your server-side code (Nitro/server directory)
994
994
  * `.nuxt/tsconfig.node.json` - For your build-time code (modules, `nuxt.config.ts`, etc.)
995
+ * `.nuxt/tsconfig.shared.json` - For code shared between app and server contexts (like types and non-environment specific utilities)
995
996
  * `.nuxt/tsconfig.json` - Legacy configuration for backward compatibility
996
997
 
997
998
  2. **Backward compatibility**: Existing projects that extend `.nuxt/tsconfig.json` will continue to work as before.
@@ -1027,6 +1028,7 @@ However, to take advantage of improved type checking, you can opt in to the new
1027
1028
  "references": [
1028
1029
  { "path": "./.nuxt/tsconfig.app.json" },
1029
1030
  { "path": "./.nuxt/tsconfig.server.json" },
1031
+ { "path": "./.nuxt/tsconfig.shared.json" },
1030
1032
  { "path": "./.nuxt/tsconfig.node.json" }
1031
1033
  ]
1032
1034
  }
@@ -92,6 +92,7 @@ When you run `nuxt dev` or `nuxt build`, Nuxt will generate multiple `tsconfig.j
92
92
  - **`.nuxt/tsconfig.app.json`** - Configuration for your application code
93
93
  - **`.nuxt/tsconfig.node.json`** - Configuration for your `nuxt.config` and modules
94
94
  - **`.nuxt/tsconfig.server.json`** - Configuration for server-side code (when applicable)
95
+ - **`.nuxt/tsconfig.shared.json`** - For code shared between app and server contexts (like types and non-environment specific utilities)
95
96
  - **`.nuxt/tsconfig.json`** - Legacy configuration for backward compatibility
96
97
 
97
98
  Each of these files is configured to reference the appropriate dependencies and provide optimal type-checking for their specific context.
@@ -5,7 +5,7 @@ head.title: "tsconfig.json"
5
5
  navigation.icon: i-lucide-file
6
6
  ---
7
7
 
8
- Nuxt [automatically generates](/docs/guide/concepts/typescript) multiple TypeScript configuration files (`.nuxt/tsconfig.app.json`, `.nuxt/tsconfig.server.json`, `.nuxt/tsconfig.node.json`) with the resolved aliases you are using in your Nuxt project, as well as with other sensible defaults.
8
+ Nuxt [automatically generates](/docs/guide/concepts/typescript) multiple TypeScript configuration files (`.nuxt/tsconfig.app.json`, `.nuxt/tsconfig.server.json`, `.nuxt/tsconfig.node.json` and `.nuxt/tsconfig.shared.json`) with the resolved aliases you are using in your Nuxt project, as well as with other sensible defaults.
9
9
 
10
10
  You can benefit from this by creating a `tsconfig.json` in the root of your project with the following content:
11
11
 
@@ -19,6 +19,9 @@ You can benefit from this by creating a `tsconfig.json` in the root of your proj
19
19
  {
20
20
  "path": "./.nuxt/tsconfig.server.json"
21
21
  },
22
+ {
23
+ "path": "./.nuxt/tsconfig.shared.json"
24
+ },
22
25
  {
23
26
  "path": "./.nuxt/tsconfig.node.json"
24
27
  }
@@ -164,6 +164,9 @@ Nuxt can type-check your app using [`vue-tsc`](https://github.com/vuejs/language
164
164
  {
165
165
  "path": "./.nuxt/tsconfig.server.json"
166
166
  },
167
+ {
168
+ "path": "./.nuxt/tsconfig.shared.json"
169
+ },
167
170
  {
168
171
  "path": "./.nuxt/tsconfig.node.json"
169
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "4.0.0-29191220.404cf550",
3
+ "version": "4.0.0-29191554.69345c32",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",