@vueless/storybook 0.0.75-beta.1 → 0.0.75-beta.3
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.
|
@@ -5,7 +5,7 @@ import Vue from "@vitejs/plugin-vue";
|
|
|
5
5
|
import { Vueless, TailwindCSS } from "vueless/plugin-vite";
|
|
6
6
|
|
|
7
7
|
export default defineConfig({
|
|
8
|
-
plugins: [Vue(), TailwindCSS(), Vueless({ mode: "storybook",
|
|
8
|
+
plugins: [Vue(), TailwindCSS(), Vueless({ mode: "storybook", debug: false })],
|
|
9
9
|
optimizeDeps: {
|
|
10
10
|
include: [
|
|
11
11
|
"cva",
|
package/package.json
CHANGED
package/webTypes/lib/build.js
CHANGED
|
@@ -135,7 +135,11 @@ function getType(prop) {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
async function extractInformation(absolutePath, config, vuelessConfig) {
|
|
138
|
-
const doc = await parse(absolutePath,
|
|
138
|
+
const doc = await parse(config.cwd + "/" + absolutePath, {
|
|
139
|
+
/* Allow to parse vueless components from node_modules. */
|
|
140
|
+
validExtends: (filePath) => filePath.includes("node_modules/vueless/"),
|
|
141
|
+
...config.apiOptions,
|
|
142
|
+
});
|
|
139
143
|
const name = doc.name || doc.displayName;
|
|
140
144
|
let description = doc.description?.trim() ?? "";
|
|
141
145
|
|
package/webTypes/lib/config.js
CHANGED
|
@@ -15,7 +15,7 @@ export async function extractConfig() {
|
|
|
15
15
|
|
|
16
16
|
const components = config?.isVuelessEnv
|
|
17
17
|
? ["src/**/*.vue"]
|
|
18
|
-
: ["node_modules/vueless/**/*.vue", "src/components/**/*.vue"];
|
|
18
|
+
: ["node_modules/vueless/**/*.vue", "src/components/**/*.vue", ".vueless/components/**/*.vue"];
|
|
19
19
|
|
|
20
20
|
return {
|
|
21
21
|
cwd: cwd(),
|