@vueless/storybook 1.2.1-beta.1 → 1.2.1-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.
@@ -3,6 +3,7 @@
3
3
  import path from "node:path";
4
4
  import { cwd } from "node:process";
5
5
  import { styleText } from "node:util";
6
+ import { fileURLToPath } from "node:url";
6
7
  import { readFile, writeFile } from "node:fs/promises";
7
8
  import { cpSync, renameSync, existsSync } from "node:fs";
8
9
 
@@ -16,7 +17,7 @@ import { detectTypeScript } from "vueless/utils/node/helper.js";
16
17
  * @return {Promise<void>} A promise that resolves once the initialization process is complete.
17
18
  */
18
19
  export async function storybookInit() {
19
- const __dirname = path.dirname(new URL(import.meta.url).pathname);
20
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
20
21
  const sourceTs = path.join(__dirname, "..", "..", ".storybook-ts");
21
22
  const sourceJs = path.join(__dirname, "..", "..", ".storybook-js");
22
23
  const target = path.join(cwd(), ".storybook");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueless/storybook",
3
- "version": "1.2.1-beta.1",
3
+ "version": "1.2.1-beta.3",
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",
@@ -11,7 +11,7 @@
11
11
  "access": "public"
12
12
  },
13
13
  "bin": {
14
- "copy": "./bin/index.js"
14
+ "vueless-storybook": "./bin/index.js"
15
15
  },
16
16
  "scripts": {
17
17
  "ts:check": "vue-tsc --build --force",