@configjs/cli 1.0.8 → 1.0.9
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.
|
@@ -5220,17 +5220,6 @@ var shadcnUiPlugin = {
|
|
|
5220
5220
|
const projectRoot = ctx.projectRoot;
|
|
5221
5221
|
const srcDir = join14(projectRoot, ctx.srcDir);
|
|
5222
5222
|
try {
|
|
5223
|
-
const tailwindInstalled = ctx.dependencies["tailwindcss"] !== void 0 || ctx.devDependencies["tailwindcss"] !== void 0;
|
|
5224
|
-
if (!tailwindInstalled) {
|
|
5225
|
-
logger.warn(
|
|
5226
|
-
"TailwindCSS is required for Shadcn/ui. Please install TailwindCSS first."
|
|
5227
|
-
);
|
|
5228
|
-
return {
|
|
5229
|
-
files,
|
|
5230
|
-
success: false,
|
|
5231
|
-
message: "TailwindCSS is required for Shadcn/ui. Please install TailwindCSS first."
|
|
5232
|
-
};
|
|
5233
|
-
}
|
|
5234
5223
|
const componentsJsonPath = join14(projectRoot, "components.json");
|
|
5235
5224
|
const componentsJsonExists = await checkPathExists(componentsJsonPath);
|
|
5236
5225
|
if (componentsJsonExists) {
|
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.0.
|
|
8
|
+
var version = "1.0.9";
|
|
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 { installReact } = await import("./install-
|
|
16
|
+
const { installReact } = await import("./install-KLUYWYWL.js");
|
|
17
17
|
await installReact(options);
|
|
18
18
|
} catch (error) {
|
|
19
19
|
console.error("Error:", error);
|
|
@@ -23,7 +23,7 @@ program.command("react").description("Configure a React project").option("-y, --
|
|
|
23
23
|
);
|
|
24
24
|
program.command("list").description("List available libraries").option("-c, --category <category>", "Filter by category").action(async (options) => {
|
|
25
25
|
try {
|
|
26
|
-
const { listLibraries } = await import("./list-
|
|
26
|
+
const { listLibraries } = await import("./list-2GPU5MKJ.js");
|
|
27
27
|
listLibraries(options);
|
|
28
28
|
} catch (error) {
|
|
29
29
|
console.error("Error:", error);
|
|
@@ -32,7 +32,7 @@ program.command("list").description("List available libraries").option("-c, --ca
|
|
|
32
32
|
});
|
|
33
33
|
program.command("check").description("Check compatibility without installing").option("-c, --config <file>", "Configuration file to check").action(async (options) => {
|
|
34
34
|
try {
|
|
35
|
-
const { checkCompatibility } = await import("./check-
|
|
35
|
+
const { checkCompatibility } = await import("./check-RUPVHNAE.js");
|
|
36
36
|
await checkCompatibility(options);
|
|
37
37
|
} catch (error) {
|
|
38
38
|
console.error("Error:", error);
|