@happlyui/cli 0.1.3 → 0.1.4
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/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -187362,6 +187362,9 @@ var {
|
|
|
187362
187362
|
Help
|
|
187363
187363
|
} = import__.default;
|
|
187364
187364
|
|
|
187365
|
+
// src/index.ts
|
|
187366
|
+
import { createRequire as createRequire2 } from "module";
|
|
187367
|
+
|
|
187365
187368
|
// src/commands/init.ts
|
|
187366
187369
|
var import_prompts = __toESM(require_prompts3(), 1);
|
|
187367
187370
|
|
|
@@ -189418,8 +189421,10 @@ function pascalCase(str) {
|
|
|
189418
189421
|
|
|
189419
189422
|
// src/index.ts
|
|
189420
189423
|
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
189424
|
+
var require2 = createRequire2(import.meta.url);
|
|
189425
|
+
var { version } = require2("../package.json");
|
|
189421
189426
|
var program2 = new Command;
|
|
189422
|
-
program2.name("happlyui").description("Add HapplyUI components to your project").version(
|
|
189427
|
+
program2.name("happlyui").description("Add HapplyUI components to your project").version(version);
|
|
189423
189428
|
program2.command("init").description("Initialize your project with HapplyUI").option("-c, --cwd <path>", "Working directory", process.cwd()).option("-y, --yes", "Skip prompts and use defaults").option("--defaults", "Use default configuration").option("--base-color <color>", "Base color theme (slate, gray, zinc, neutral, stone)").option("--no-css-variables", "Disable CSS variables for colors").action(init);
|
|
189424
189429
|
program2.command("add").description("Add components to your project").argument("[components...]", "Components to add").option("-c, --cwd <path>", "Working directory", process.cwd()).option("-y, --yes", "Skip prompts").option("-o, --overwrite", "Overwrite existing files").option("-a, --all", "Add all available components").option("-p, --path <path>", "Custom path for components").action(add);
|
|
189425
189430
|
program2.command("list").description("List all available components").option("-c, --cwd <path>", "Working directory", process.cwd()).action(async (options) => {
|