@vueless/storybook 1.8.0 → 1.8.2-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueless/storybook",
3
- "version": "1.8.0",
3
+ "version": "1.8.2-beta.0",
4
4
  "description": "Simplifies Storybook configuration for Vueless UI library.",
5
5
  "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
6
6
  "homepage": "https://vueless.com",
@@ -23,17 +23,17 @@
23
23
  "release:major": "release-it major --ci"
24
24
  },
25
25
  "dependencies": {
26
- "@storybook/addon-docs": "^10.6.0",
27
- "@storybook/addon-links": "^10.6.0",
28
- "@storybook/addon-themes": "^10.6.0",
29
- "@storybook/vue3-vite": "^10.6.0",
26
+ "@storybook/addon-docs": "^10.6.1",
27
+ "@storybook/addon-links": "^10.6.1",
28
+ "@storybook/addon-themes": "^10.6.1",
29
+ "@storybook/vue3-vite": "^10.6.1",
30
30
  "@vueless/storybook-dark-mode": "^10.0.8",
31
31
  "chokidar": "^5.0.0",
32
32
  "esbuild": "^0.28.0",
33
33
  "globby": "^16.2.0",
34
34
  "mkdirp": "^3.0.1",
35
35
  "prettier2": "npm:prettier@2.8.8",
36
- "storybook": "^10.6.0",
36
+ "storybook": "^10.6.1",
37
37
  "vue-docgen-api": "^4.79.2"
38
38
  },
39
39
  "devDependencies": {
@@ -47,7 +47,7 @@
47
47
  "eslint-config-prettier": "^10.1.8",
48
48
  "eslint-plugin-node": "^11.1.0",
49
49
  "eslint-plugin-prettier": "^5.5.5",
50
- "eslint-plugin-storybook": "^10.6.0",
50
+ "eslint-plugin-storybook": "^10.6.1",
51
51
  "globals": "^17.5.0",
52
52
  "prettier": "^3.8.3",
53
53
  "release-it": "^20.0.1",
package/webTypes/index.js CHANGED
@@ -5,5 +5,5 @@ import build from "./lib/build.js";
5
5
  export async function buildWebTypes(vuelessConfig, srcDir) {
6
6
  const config = await extractConfig();
7
7
 
8
- build(config, vuelessConfig, srcDir);
8
+ await build(config, vuelessConfig, srcDir);
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { readFile } from "node:fs/promises";
3
+ import { readFile, writeFile } from "node:fs/promises";
4
4
  import { mkdirp } from "mkdirp";
5
5
  import chokidar from "chokidar";
6
6
  import { globbySync } from "globby";
@@ -32,7 +32,7 @@ export default async function build(config, vuelessConfig, srcDir) {
32
32
 
33
33
  function getSources(components, cwd) {
34
34
  const watcher = chokidar.watch(components, { cwd });
35
- const allComponentFiles = globbySync(components, { cwd });
35
+ const allComponentFiles = globbySync(components, { cwd, ignore: ["**/tests/**"] });
36
36
 
37
37
  return { watcher, componentFiles: allComponentFiles };
38
38
  }
@@ -66,7 +66,6 @@ async function writeDownWebTypesFile(config, definitions, destFilePath) {
66
66
  const destFolder = path.dirname(destFilePath);
67
67
 
68
68
  await mkdirp(destFolder);
69
- let writeStream = fs.createWriteStream(destFilePath);
70
69
 
71
70
  const contents = {
72
71
  framework: "vue",
@@ -98,8 +97,7 @@ async function writeDownWebTypesFile(config, definitions, destFilePath) {
98
97
  if (!html.attributes?.length) html.attributes = undefined;
99
98
  if (!html["vue-filters"]?.length) html["vue-filters"] = undefined;
100
99
 
101
- writeStream.write(JSON.stringify(contents, null, 2));
102
- writeStream.close();
100
+ await writeFile(destFilePath, JSON.stringify(contents, null, 2));
103
101
  }
104
102
 
105
103
  function ensureRelative(path) {