slicejs-cli 2.0.7 → 2.0.8

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/client.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  import { program } from "commander";
3
3
  import inquirer from "inquirer";
4
4
  import initializeProject from "./commands/init/init.js";
@@ -70,6 +70,10 @@ componentCommand
70
70
  choices: categories,
71
71
  }])
72
72
 
73
+ validations.categories = validations.loadConfig().paths.components; // Cargamos las categorías al instanciar
74
+
75
+
76
+
73
77
  if(validations.getCategoryType(answers.category)==='Visual'){
74
78
  const properties = await inquirer.prompt([
75
79
  {
@@ -6,8 +6,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
6
6
 
7
7
  class Validations {
8
8
  constructor() {
9
- this.config = this.loadConfig(); // Cargamos la configuración solo una vez al instanciar
10
- this.categories = this.config?.paths?.components;
9
+
11
10
 
12
11
  }
13
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slicejs-cli",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "Command client for developing web applications with Slice.js framework",
5
5
  "main": "client.js",
6
6
  "scripts": {