ui-thing 0.0.11 → 0.0.13

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": "ui-thing",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "CLI used to add Nuxt 3 components to a project",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -5,17 +5,16 @@ import kleur from "kleur";
5
5
  import _ from "lodash";
6
6
  import prompts from "prompts";
7
7
 
8
+ import allComponents from "../comps";
8
9
  import { Component } from "../types";
9
10
  import { compareUIConfig } from "../utils/compareUIConfig";
10
11
  import { addModuleToConfig, getNuxtConfig, getUIConfig, updateConfig } from "../utils/config";
11
- import { fetchComponents } from "../utils/fetchComponents";
12
12
  import { fileExists } from "../utils/fileExists";
13
13
  import { installPackages } from "../utils/installPackages";
14
14
  import { printFancyBoxMessage } from "../utils/printFancyBoxMessage";
15
15
  import { promptUserForComponents } from "../utils/promptForComponents";
16
16
  import { writeFile } from "../utils/writeFile";
17
17
 
18
- let allComponents: Component[] = [];
19
18
  const currentDirectory = process.cwd();
20
19
 
21
20
  const findComponent = (name: string) => {
@@ -43,8 +42,6 @@ export const add = new Command()
43
42
  consola.info("Config file not set. Exiting...");
44
43
  process.exit(0);
45
44
  }
46
- // get components from API
47
- allComponents = await fetchComponents();
48
45
 
49
46
  let componentNames = components;
50
47
  // if no components are passed, prompt the user to select components