@configjs/cli 1.1.6 → 1.1.7

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pluginRegistry
3
- } from "./chunk-V75HW2AM.js";
3
+ } from "./chunk-HKNOLXCV.js";
4
4
  import {
5
5
  logger
6
6
  } from "./chunk-HM2JWJOO.js";
package/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ import "./chunk-QGM4M3NI.js";
5
5
  import { Command } from "commander";
6
6
 
7
7
  // package.json
8
- var version = "1.1.6";
8
+ var version = "1.1.7";
9
9
 
10
10
  // src/cli.ts
11
11
  var program = new Command();
@@ -13,7 +13,7 @@ program.name("confjs").description("Configure your frontend stack, instantly").v
13
13
  program.command("react").description("Configure a React project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
14
14
  async (options) => {
15
15
  try {
16
- const { ReactCommand } = await import("./react-command-C47QFAJ5.js");
16
+ const { ReactCommand } = await import("./react-command-3WUUJZBW.js");
17
17
  const command = new ReactCommand();
18
18
  await command.execute(options);
19
19
  } catch (error) {
@@ -25,7 +25,7 @@ program.command("react").description("Configure a React project").option("-y, --
25
25
  program.command("nextjs").description("Configure a Next.js project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
26
26
  async (options) => {
27
27
  try {
28
- const { NextjsCommand } = await import("./nextjs-command-4G7N6VPP.js");
28
+ const { NextjsCommand } = await import("./nextjs-command-LA245VK4.js");
29
29
  const command = new NextjsCommand();
30
30
  await command.execute(options);
31
31
  } catch (error) {
@@ -37,7 +37,7 @@ program.command("nextjs").description("Configure a Next.js project").option("-y,
37
37
  program.command("vue").description("Configure a Vue.js project").option("-y, --yes", "Accept all defaults").option("-d, --dry-run", "Simulate without writing to disk").option("-s, --silent", "Non-interactive mode").option("--debug", "Enable debug logs").option("-c, --config <file>", "Use configuration file").option("-f, --force", "Force installation (overwrite configs)").option("--no-install", "Generate configs only, skip package installation").action(
38
38
  async (options) => {
39
39
  try {
40
- const { VueCommand } = await import("./vue-command-6I7JVUI2.js");
40
+ const { VueCommand } = await import("./vue-command-WPFTD5JM.js");
41
41
  const command = new VueCommand();
42
42
  await command.execute(options);
43
43
  } catch (error) {
@@ -48,7 +48,7 @@ program.command("vue").description("Configure a Vue.js project").option("-y, --y
48
48
  );
49
49
  program.command("list").description("List available libraries").option("-c, --category <category>", "Filter by category").action(async (options) => {
50
50
  try {
51
- const { listLibraries } = await import("./list-Y7I5NUWT.js");
51
+ const { listLibraries } = await import("./list-GGH3SFER.js");
52
52
  listLibraries(options);
53
53
  } catch (error) {
54
54
  console.error("Error:", error);
@@ -57,7 +57,7 @@ program.command("list").description("List available libraries").option("-c, --ca
57
57
  });
58
58
  program.command("check").description("Check compatibility without installing").option("-c, --config <file>", "Configuration file to check").action(async (options) => {
59
59
  try {
60
- const { checkCompatibility } = await import("./check-AJ4GD66M.js");
60
+ const { checkCompatibility } = await import("./check-QX4VFU73.js");
61
61
  await checkCompatibility(options);
62
62
  } catch (error) {
63
63
  console.error("Error:", error);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pluginRegistry
3
- } from "./chunk-V75HW2AM.js";
3
+ } from "./chunk-HKNOLXCV.js";
4
4
  import "./chunk-MQV3WNMH.js";
5
5
  import "./chunk-HM2JWJOO.js";
6
6
  import "./chunk-QGM4M3NI.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  BaseFrameworkCommand,
3
3
  getFrameworkMetadata
4
- } from "./chunk-JTTIDBSN.js";
5
- import "./chunk-3NRMV3WL.js";
6
- import "./chunk-V75HW2AM.js";
4
+ } from "./chunk-GVI6UQX2.js";
5
+ import "./chunk-NLTJ6GYH.js";
6
+ import "./chunk-HKNOLXCV.js";
7
7
  import {
8
8
  DetectionError,
9
9
  detectContext
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  BaseFrameworkCommand,
3
3
  getFrameworkMetadata
4
- } from "./chunk-JTTIDBSN.js";
5
- import "./chunk-3NRMV3WL.js";
6
- import "./chunk-V75HW2AM.js";
4
+ } from "./chunk-GVI6UQX2.js";
5
+ import "./chunk-NLTJ6GYH.js";
6
+ import "./chunk-HKNOLXCV.js";
7
7
  import {
8
8
  DetectionError,
9
9
  detectContext
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  BaseFrameworkCommand,
3
3
  getFrameworkMetadata
4
- } from "./chunk-JTTIDBSN.js";
5
- import "./chunk-3NRMV3WL.js";
6
- import "./chunk-V75HW2AM.js";
4
+ } from "./chunk-GVI6UQX2.js";
5
+ import "./chunk-NLTJ6GYH.js";
6
+ import "./chunk-HKNOLXCV.js";
7
7
  import {
8
8
  DetectionError,
9
9
  detectContext
@@ -30,38 +30,13 @@ async function createVueProject(options, currentDir, language) {
30
30
  ];
31
31
  await execa("npm", args, {
32
32
  cwd: currentDir,
33
- stdio: "inherit"
33
+ stdio: "inherit",
34
+ env: {
35
+ ...process.env,
36
+ npm_config_yes: "true"
37
+ }
34
38
  });
35
39
  logger.info(t.vue.success);
36
- const optionalDeps = [];
37
- if (options.router) {
38
- optionalDeps.push("vue-router@4");
39
- }
40
- if (options.pinia) {
41
- optionalDeps.push("pinia");
42
- }
43
- if (options.vitest) {
44
- optionalDeps.push("vitest", "@vue/test-utils", "@vitest/ui");
45
- }
46
- if (options.eslint) {
47
- optionalDeps.push(
48
- "eslint",
49
- "eslint-plugin-vue",
50
- "@vue/eslint-config-prettier"
51
- );
52
- }
53
- if (options.prettier) {
54
- optionalDeps.push("prettier", "eslint-config-prettier");
55
- }
56
- if (optionalDeps.length > 0) {
57
- logger.info(
58
- `Installing optional dependencies: ${optionalDeps.join(", ")}`
59
- );
60
- await execa("npm", ["install", ...optionalDeps], {
61
- cwd: projectPath,
62
- stdio: "inherit"
63
- });
64
- }
65
40
  return projectPath;
66
41
  } catch (error) {
67
42
  const errorMessage = error instanceof Error ? error.message : String(error);
@@ -36,41 +36,6 @@ async function promptVueSetup(language) {
36
36
  message: t.vue.typescript,
37
37
  default: true,
38
38
  when: (answers2) => answers2.shouldCreate === true
39
- },
40
- {
41
- type: "confirm",
42
- name: "router",
43
- message: t.vue.router,
44
- default: true,
45
- when: (answers2) => answers2.shouldCreate === true
46
- },
47
- {
48
- type: "confirm",
49
- name: "pinia",
50
- message: t.vue.pinia,
51
- default: true,
52
- when: (answers2) => answers2.shouldCreate === true
53
- },
54
- {
55
- type: "confirm",
56
- name: "vitest",
57
- message: t.vue.vitest,
58
- default: true,
59
- when: (answers2) => answers2.shouldCreate === true
60
- },
61
- {
62
- type: "confirm",
63
- name: "eslint",
64
- message: t.vue.eslint,
65
- default: true,
66
- when: (answers2) => answers2.shouldCreate === true
67
- },
68
- {
69
- type: "confirm",
70
- name: "prettier",
71
- message: t.vue.prettier,
72
- default: true,
73
- when: (answers2) => answers2.shouldCreate === true
74
39
  }
75
40
  ]);
76
41
  if (!answers.shouldCreate) {
@@ -78,12 +43,7 @@ async function promptVueSetup(language) {
78
43
  }
79
44
  return {
80
45
  projectName: answers.projectName.trim(),
81
- typescript: answers.typescript,
82
- router: answers.router,
83
- pinia: answers.pinia,
84
- vitest: answers.vitest,
85
- eslint: answers.eslint,
86
- prettier: answers.prettier
46
+ typescript: answers.typescript
87
47
  };
88
48
  }
89
49
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@configjs/cli",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "description": "Configure your frontend stack, instantly - Utilitaire CLI d'installation modulaire de bibliothèques frontend",
6
6
  "keywords": [