@scalar/nuxt 0.1.5 → 0.2.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.
- package/README.md +12 -0
- package/dist/module.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -107,3 +107,15 @@ export default defineNuxtConfig({
|
|
|
107
107
|
},
|
|
108
108
|
})
|
|
109
109
|
```
|
|
110
|
+
|
|
111
|
+
## Troubleshooting
|
|
112
|
+
|
|
113
|
+
If you come across any `**** not default export` errors, its likely you are using `pnpm`.
|
|
114
|
+
A temporary fix for this would be to enable [shamefully-hoist](https://pnpm.io/npmrc#shamefully-hoist) until
|
|
115
|
+
we sort out what is causing the package issues.
|
|
116
|
+
|
|
117
|
+
To do this, just create a `.npmrc` file in your project root and fill it with:
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
shamefully-hoist=true
|
|
121
|
+
```
|
package/dist/module.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ type ModuleOptions = {
|
|
|
15
15
|
* For multiple references, pass an array of config objects into
|
|
16
16
|
* configurations. These configurations will extend over the base config
|
|
17
17
|
*/
|
|
18
|
-
configurations: Configuration[];
|
|
18
|
+
configurations: Omit<Configuration, 'devtools'>[];
|
|
19
19
|
} & Configuration;
|
|
20
20
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
21
21
|
|
package/dist/module.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ type ModuleOptions = {
|
|
|
15
15
|
* For multiple references, pass an array of config objects into
|
|
16
16
|
* configurations. These configurations will extend over the base config
|
|
17
17
|
*/
|
|
18
|
-
configurations: Configuration[];
|
|
18
|
+
configurations: Omit<Configuration, 'devtools'>[];
|
|
19
19
|
} & Configuration;
|
|
20
20
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
21
21
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -27,7 +27,6 @@ const module = defineNuxtModule({
|
|
|
27
27
|
_nuxt.options.vite.optimizeDeps.include.push(
|
|
28
28
|
"debug",
|
|
29
29
|
"extend",
|
|
30
|
-
"prismjs",
|
|
31
30
|
"stringify-object",
|
|
32
31
|
"rehype-highlight"
|
|
33
32
|
);
|
|
@@ -76,7 +75,7 @@ const module = defineNuxtModule({
|
|
|
76
75
|
category: "server",
|
|
77
76
|
view: {
|
|
78
77
|
type: "iframe",
|
|
79
|
-
src: _options.pathRouting
|
|
78
|
+
src: _options.pathRouting?.basePath ?? "/docs"
|
|
80
79
|
}
|
|
81
80
|
});
|
|
82
81
|
});
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"testing",
|
|
21
21
|
"vue"
|
|
22
22
|
],
|
|
23
|
-
"version": "0.
|
|
23
|
+
"version": "0.2.0",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=18"
|
|
26
26
|
},
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@nuxt/kit": "^3.11.2",
|
|
42
|
-
"@scalar/api-
|
|
43
|
-
"@scalar/api-
|
|
42
|
+
"@scalar/api-reference": "1.24.0",
|
|
43
|
+
"@scalar/api-client": "1.3.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@nuxt/devtools": "^1.1.5",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"changelogen": "^0.5.5",
|
|
53
53
|
"eslint": "^8.56.0",
|
|
54
54
|
"nuxt": "^3.11.2",
|
|
55
|
-
"vitest": "^1.
|
|
55
|
+
"vitest": "^1.6.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "nuxt-module-build build",
|