@configjs/cli 1.0.1 → 1.0.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.
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  CompatibilityValidator,
3
3
  compatibilityRules
4
- } from "./chunk-3IOUJHOM.js";
4
+ } from "./chunk-T4WVSBI6.js";
5
5
  import {
6
6
  logger,
7
7
  pluginRegistry
8
- } from "./chunk-2OIA3HB7.js";
8
+ } from "./chunk-7ZLAP62L.js";
9
9
 
10
10
  // src/cli/commands/check.ts
11
11
  import { readFile } from "fs/promises";
@@ -3569,23 +3569,21 @@ var tailwindcssPlugin = {
3569
3569
  };
3570
3570
  function getViteConfigContentTS() {
3571
3571
  return `import { defineConfig } from 'vite'
3572
+ import react from '@vitejs/plugin-react'
3572
3573
  import tailwindcss from '@tailwindcss/vite'
3573
3574
 
3574
3575
  export default defineConfig({
3575
- plugins: [
3576
- tailwindcss(),
3577
- ],
3576
+ plugins: [react(), tailwindcss()],
3578
3577
  })
3579
3578
  `;
3580
3579
  }
3581
3580
  function getViteConfigContentJS() {
3582
3581
  return `import { defineConfig } from 'vite'
3582
+ import react from '@vitejs/plugin-react'
3583
3583
  import tailwindcss from '@tailwindcss/vite'
3584
3584
 
3585
3585
  export default defineConfig({
3586
- plugins: [
3587
- tailwindcss(),
3588
- ],
3586
+ plugins: [react(), tailwindcss()],
3589
3587
  })
3590
3588
  `;
3591
3589
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-2OIA3HB7.js";
3
+ } from "./chunk-7ZLAP62L.js";
4
4
 
5
5
  // src/core/validator.ts
6
6
  var CompatibilityValidator = class {
@@ -198,16 +198,6 @@ var compatibilityRules = [
198
198
  severity: "warning",
199
199
  allowOverride: true
200
200
  },
201
- // Dépendances - TailwindCSS
202
- {
203
- type: "REQUIRES",
204
- plugin: "tailwindcss",
205
- requires: ["postcss", "autoprefixer"],
206
- reason: "PostCSS et Autoprefixer sont n\xE9cessaires pour TailwindCSS",
207
- severity: "error",
208
- autoInstall: true,
209
- allowOverride: false
210
- },
211
201
  // Recommandations - React Router
212
202
  {
213
203
  type: "RECOMMENDS",
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@
4
4
  import { Command } from "commander";
5
5
 
6
6
  // package.json
7
- var version = "1.0.1";
7
+ var version = "1.0.3";
8
8
 
9
9
  // src/cli.ts
10
10
  var program = new Command();
@@ -12,7 +12,7 @@ program.name("confjs").description("Configure your frontend stack, instantly").v
12
12
  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(
13
13
  async (options) => {
14
14
  try {
15
- const { installReact } = await import("./install-DAMXWEZF.js");
15
+ const { installReact } = await import("./install-ML3FB63K.js");
16
16
  await installReact(options);
17
17
  } catch (error) {
18
18
  console.error("Error:", error);
@@ -22,7 +22,7 @@ program.command("react").description("Configure a React project").option("-y, --
22
22
  );
23
23
  program.command("list").description("List available libraries").option("-c, --category <category>", "Filter by category").action(async (options) => {
24
24
  try {
25
- const { listLibraries } = await import("./list-X7SEPRAM.js");
25
+ const { listLibraries } = await import("./list-CBEUUZUI.js");
26
26
  listLibraries(options);
27
27
  } catch (error) {
28
28
  console.error("Error:", error);
@@ -31,7 +31,7 @@ program.command("list").description("List available libraries").option("-c, --ca
31
31
  });
32
32
  program.command("check").description("Check compatibility without installing").option("-c, --config <file>", "Configuration file to check").action(async (options) => {
33
33
  try {
34
- const { checkCompatibility } = await import("./check-NNP4BHYA.js");
34
+ const { checkCompatibility } = await import("./check-I62WT7NB.js");
35
35
  await checkCompatibility(options);
36
36
  } catch (error) {
37
37
  console.error("Error:", error);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CompatibilityValidator,
3
3
  compatibilityRules
4
- } from "./chunk-3IOUJHOM.js";
4
+ } from "./chunk-T4WVSBI6.js";
5
5
  import {
6
6
  BackupManager,
7
7
  ConfigWriter,
@@ -13,7 +13,7 @@ import {
13
13
  pluginRegistry,
14
14
  readPackageJson,
15
15
  readTsConfig
16
- } from "./chunk-2OIA3HB7.js";
16
+ } from "./chunk-7ZLAP62L.js";
17
17
 
18
18
  // src/core/detector.ts
19
19
  import { resolve, join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pluginRegistry
3
- } from "./chunk-2OIA3HB7.js";
3
+ } from "./chunk-7ZLAP62L.js";
4
4
 
5
5
  // src/cli/commands/list.ts
6
6
  function listLibraries(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@configjs/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "description": "Configure your frontend stack, instantly - Utilitaire CLI d'installation modulaire de bibliothèques frontend",
6
6
  "keywords": [