v-uixy 1.0.0 → 1.1.1

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/bin/v-uixy.js CHANGED
@@ -11,7 +11,7 @@ const program = new Command();
11
11
  program
12
12
  .name("v-uixy")
13
13
  .description("A UI components CLI for Nuxt + Tailwind")
14
- .version("0.1.0");
14
+ .version("1.1.0");
15
15
 
16
16
  program.command("add <component>").description("Add a component").action(add);
17
17
 
package/commands/add.js CHANGED
@@ -2,10 +2,11 @@ import fs from "fs-extra";
2
2
  import path from "path";
3
3
  import chalk from "chalk";
4
4
  import { execa } from "execa";
5
+ import { fileURLToPath } from "url";
5
6
 
6
7
  const projectRoot = process.cwd();
7
8
  const templatesRoot = path.resolve(
8
- path.dirname(new URL(import.meta.url).pathname),
9
+ path.dirname(fileURLToPath(import.meta.url)),
9
10
  "../templates"
10
11
  );
11
12
 
@@ -96,7 +97,6 @@ async function updateIndex(newComponents) {
96
97
  const existing = await getExistingIndexComponents();
97
98
  const existingSet = new Set(existing);
98
99
 
99
- // Preserve existing order; append new components in the order provided
100
100
  const merged = [...existing];
101
101
  for (const name of newComponents) {
102
102
  if (!existingSet.has(name)) {
package/commands/list.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import fs from "fs-extra";
2
2
  import path from "path";
3
3
  import chalk from "chalk";
4
+ import { fileURLToPath } from "url";
4
5
 
5
6
  const projectRoot = process.cwd();
6
7
  const componentsDir = path.join(projectRoot, "components/ui");
7
8
  const templatesRoot = path.resolve(
8
- path.dirname(new URL(import.meta.url).pathname),
9
+ path.dirname(fileURLToPath(import.meta.url)),
9
10
  "../templates"
10
11
  );
11
12
 
@@ -2,10 +2,11 @@ import fs from "fs-extra";
2
2
  import path from "path";
3
3
  import chalk from "chalk";
4
4
  import inquirer from "inquirer";
5
+ import { fileURLToPath } from "url";
5
6
 
6
7
  const projectRoot = process.cwd();
7
8
  const templatesRoot = path.resolve(
8
- path.dirname(new URL(import.meta.url).pathname),
9
+ path.dirname(fileURLToPath(import.meta.url)),
9
10
  "../templates"
10
11
  );
11
12
  const componentsDir = path.join(projectRoot, "components/ui");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "v-uixy",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "Alan Haber",