@nuxt/schema
Advanced tools
Comparing version 3.4.3 to 3.5.0
{ | ||
"name": "@nuxt/schema", | ||
"version": "3.4.3", | ||
"version": "3.5.0", | ||
"repository": "nuxt/nuxt", | ||
@@ -14,2 +14,6 @@ "license": "MIT", | ||
}, | ||
"./builder-env": { | ||
"types": "./dist/builder-env.d.ts", | ||
"import": "./dist/builder-env.mjs" | ||
}, | ||
"./package.json": "./package.json" | ||
@@ -19,3 +23,4 @@ }, | ||
"dist", | ||
"schema" | ||
"schema", | ||
"env.d.ts" | ||
], | ||
@@ -25,14 +30,14 @@ "devDependencies": { | ||
"@unhead/schema": "^1.1.26", | ||
"@vitejs/plugin-vue": "^4.2.1", | ||
"@vitejs/plugin-vue": "^4.2.3", | ||
"@vitejs/plugin-vue-jsx": "^3.0.1", | ||
"h3": "^1.6.4", | ||
"h3": "^1.6.6", | ||
"ignore": "^5.2.4", | ||
"nitropack": "^2.3.3", | ||
"nitropack": "^2.4.0", | ||
"unbuild": "latest", | ||
"unctx": "^2.3.0", | ||
"vite": "~4.3.3", | ||
"vue": "3.2.47", | ||
"vite": "~4.3.6", | ||
"vue": "3.3.2", | ||
"vue-bundle-renderer": "^1.0.3", | ||
"vue-router": "^4.1.6", | ||
"webpack": "^5.81.0" | ||
"vue-router": "^4.2.0", | ||
"webpack": "^5.82.1" | ||
}, | ||
@@ -43,6 +48,6 @@ "dependencies": { | ||
"pathe": "^1.1.0", | ||
"pkg-types": "^1.0.2", | ||
"pkg-types": "^1.0.3", | ||
"postcss-import-resolver": "^2.0.0", | ||
"std-env": "^3.3.2", | ||
"ufo": "^1.1.1", | ||
"std-env": "^3.3.3", | ||
"ufo": "^1.1.2", | ||
"unimport": "^3.0.6", | ||
@@ -49,0 +54,0 @@ "untyped": "^1.3.2" |
@@ -79,2 +79,9 @@ import type { ComponentsOptions } from '../src/types/components' | ||
compilerOptions: CompilerOptions, | ||
/** | ||
* Include Vue compiler in runtime bundle. | ||
* | ||
* @default false | ||
*/ | ||
runtimeCompiler: boolean, | ||
}, | ||
@@ -493,2 +500,11 @@ | ||
/** | ||
* The directory where Nuxt will store the generated files when running `nuxt analyze`. | ||
* | ||
* If a relative path is specified, it will be relative to your `rootDir`. | ||
* | ||
* @default "/<rootDir>/.nuxt/analyze" | ||
*/ | ||
analyzeDir: string, | ||
/** | ||
* Whether Nuxt is running in development mode. | ||
@@ -690,3 +706,3 @@ * | ||
* | ||
* @default ["**\/*.stories.{js,ts,jsx,tsx}","**\/*.{spec,test}.{js,ts,jsx,tsx}","**\/*.d.ts",".output",".git","**\/-*.*"] | ||
* @default ["**\/*.stories.{js,ts,jsx,tsx}","**\/*.{spec,test}.{js,ts,jsx,tsx}","**\/*.d.ts",".output",".git","/<rootDir>/.nuxt/analyze","**\/-*.*"] | ||
*/ | ||
@@ -867,9 +883,2 @@ ignore: Array<string>, | ||
/** | ||
* Include Vue compiler in runtime bundle. | ||
* | ||
* @default false | ||
*/ | ||
runtimeVueCompiler: boolean, | ||
/** | ||
* Tree shakes contents of client-only components from server bundle. | ||
@@ -924,3 +933,3 @@ * | ||
* | ||
* @default false | ||
* @default true | ||
*/ | ||
@@ -1014,2 +1023,9 @@ renderJsonPayloads: boolean, | ||
/** | ||
* Enable the new experimental typed router using [unplugin-vue-router](https://github.com/posva/unplugin-vue-router). | ||
* | ||
* @default false | ||
*/ | ||
typedPages: boolean, | ||
/** | ||
* Set an alternative watcher that will be used as the watching service for Nuxt. | ||
@@ -1219,2 +1235,11 @@ * | ||
/** | ||
* Which builder types to include for your project. | ||
* | ||
* By default Nuxt infers this based on your `builder` option (defaulting to 'vite') but you can either turn off builder environment types (with `false`) to handle this fully yourself, or opt for a 'shared' option. | ||
* The 'shared' option is advised for module authors, who will want to support multiple possible builders. | ||
* | ||
*/ | ||
builder: 'vite' | 'webpack' | 'shared' | false | undefined, | ||
/** | ||
* Include parent workspace in the Nuxt project. Mostly useful for themes and module authors. | ||
@@ -1221,0 +1246,0 @@ * |
@@ -74,4 +74,29 @@ { | ||
"vue": { | ||
"compilerOptions": {} | ||
"compilerOptions": {}, | ||
"runtimeCompiler": false | ||
}, | ||
"experimental": { | ||
"asyncEntry": false, | ||
"reactivityTransform": false, | ||
"externalVue": true, | ||
"treeshakeClientOnly": true, | ||
"emitRouteChunkError": "automatic", | ||
"restoreState": false, | ||
"inlineSSRStyles": true, | ||
"noScripts": false, | ||
"renderJsonPayloads": true, | ||
"noVueServer": false, | ||
"payloadExtraction": {}, | ||
"clientFallback": false, | ||
"crossOriginPrefetch": false, | ||
"viewTransition": false, | ||
"writeEarlyHints": false, | ||
"componentIslands": false, | ||
"configSchema": true, | ||
"polyfillVueUseHead": false, | ||
"respectNoSSRHeader": false, | ||
"localLayerAliases": true, | ||
"typedPages": false, | ||
"watcher": "chokidar" | ||
}, | ||
"app": { | ||
@@ -170,3 +195,4 @@ "baseURL": "/", | ||
"#app": [ | ||
"definePayloadReviver" | ||
"definePayloadReviver", | ||
"definePageMeta" | ||
] | ||
@@ -181,3 +207,4 @@ }, | ||
"#app": [ | ||
"definePayloadReducer" | ||
"definePayloadReducer", | ||
"definePageMeta" | ||
] | ||
@@ -210,2 +237,3 @@ } | ||
"serverDir": "/<rootDir>/server", | ||
"analyzeDir": "/<rootDir>/.nuxt/analyze", | ||
"test": false, | ||
@@ -239,2 +267,3 @@ "debug": false, | ||
".git", | ||
"/<rootDir>/.nuxt/analyze", | ||
"**/-*.*" | ||
@@ -268,26 +297,2 @@ ], | ||
}, | ||
"experimental": { | ||
"asyncEntry": false, | ||
"reactivityTransform": false, | ||
"externalVue": true, | ||
"runtimeVueCompiler": false, | ||
"treeshakeClientOnly": true, | ||
"emitRouteChunkError": "automatic", | ||
"restoreState": false, | ||
"inlineSSRStyles": true, | ||
"noScripts": false, | ||
"renderJsonPayloads": false, | ||
"noVueServer": false, | ||
"payloadExtraction": {}, | ||
"clientFallback": false, | ||
"crossOriginPrefetch": false, | ||
"viewTransition": false, | ||
"writeEarlyHints": false, | ||
"componentIslands": false, | ||
"configSchema": true, | ||
"polyfillVueUseHead": false, | ||
"respectNoSSRHeader": false, | ||
"localLayerAliases": true, | ||
"watcher": "chokidar" | ||
}, | ||
"generate": { | ||
@@ -329,2 +334,3 @@ "routes": [], | ||
"strict": true, | ||
"builder": null, | ||
"includeWorkspace": false, | ||
@@ -331,0 +337,0 @@ "typeCheck": false, |
@@ -52,2 +52,9 @@ | ||
## `runtimeCompiler` | ||
- **Type**: `boolean` | ||
- **Default**: `false` | ||
> Include Vue compiler in runtime bundle. | ||
# `app` | ||
@@ -330,2 +337,12 @@ | ||
# `analyzeDir` | ||
- **Type**: `string` | ||
- **Default**: `"/<rootDir>/.nuxt/analyze"` | ||
> The directory where Nuxt will store the generated files when running `nuxt analyze`. | ||
If a relative path is specified, it will be relative to your `rootDir`. | ||
# `dev` | ||
@@ -457,3 +474,3 @@ - **Type**: `boolean` | ||
- **Type**: `array` | ||
- **Default**: `["**/*.stories.{js,ts,jsx,tsx}","**/*.{spec,test}.{js,ts,jsx,tsx}","**/*.d.ts",".output",".git","**/-*.*"]` | ||
- **Default**: `["**/*.stories.{js,ts,jsx,tsx}","**/*.{spec,test}.{js,ts,jsx,tsx}","**/*.d.ts",".output",".git","/<rootDir>/.nuxt/analyze","**/-*.*"]` | ||
@@ -575,9 +592,2 @@ > More customizable than `ignorePrefix`: all files matching glob patterns specified inside the `ignore` array will be ignored in building. | ||
## `runtimeVueCompiler` | ||
- **Type**: `boolean` | ||
- **Default**: `false` | ||
> Include Vue compiler in runtime bundle. | ||
## `treeshakeClientOnly` | ||
@@ -631,3 +641,3 @@ - **Type**: `boolean` | ||
- **Type**: `boolean` | ||
- **Default**: `false` | ||
- **Default**: `true` | ||
@@ -717,2 +727,9 @@ > Render JSON payloads with support for revivifying complex types. | ||
## `typedPages` | ||
- **Type**: `boolean` | ||
- **Default**: `false` | ||
> Enable the new experimental typed router using [unplugin-vue-router](https://github.com/posva/unplugin-vue-router). | ||
## `watcher` | ||
@@ -888,2 +905,13 @@ - **Type**: `'chokidar' | 'parcel'` | ||
## `builder` | ||
- **Type**: `'vite' | 'webpack' | 'shared' | false | undefined` | ||
- **Default**: `null` | ||
> Which builder types to include for your project. | ||
By default Nuxt infers this based on your `builder` option (defaulting to 'vite') but you can either turn off builder environment types (with `false`) to handle this fully yourself, or opt for a 'shared' option. | ||
The 'shared' option is advised for module authors, who will want to support multiple possible builders. | ||
## `includeWorkspace` | ||
@@ -890,0 +918,0 @@ - **Type**: `boolean` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
333969
11
9321
Updatedpkg-types@^1.0.3
Updatedstd-env@^3.3.3
Updatedufo@^1.1.2