@happlyui/cli 0.3.0 → 0.3.1
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 +8 -8
- package/package.json +12 -3
package/dist/index.js
CHANGED
|
@@ -190197,7 +190197,7 @@ async function init(options) {
|
|
|
190197
190197
|
packageManager: projectInfo.packageManager
|
|
190198
190198
|
});
|
|
190199
190199
|
installSpinner.succeed("Dependencies installed");
|
|
190200
|
-
} catch
|
|
190200
|
+
} catch {
|
|
190201
190201
|
installSpinner.fail("Failed to install dependencies");
|
|
190202
190202
|
logger.warn("Please install manually: clsx tailwind-merge class-variance-authority");
|
|
190203
190203
|
}
|
|
@@ -190318,9 +190318,9 @@ async function add(components, options) {
|
|
|
190318
190318
|
try {
|
|
190319
190319
|
components = await getAvailableComponents(config);
|
|
190320
190320
|
spinner2.succeed(`Found ${components.length} components`);
|
|
190321
|
-
} catch (
|
|
190321
|
+
} catch (_error) {
|
|
190322
190322
|
spinner2.fail("Failed to fetch components list");
|
|
190323
|
-
throw
|
|
190323
|
+
throw _error;
|
|
190324
190324
|
}
|
|
190325
190325
|
}
|
|
190326
190326
|
if (components.length === 0) {
|
|
@@ -190343,9 +190343,9 @@ async function add(components, options) {
|
|
|
190343
190343
|
return;
|
|
190344
190344
|
}
|
|
190345
190345
|
components = selected;
|
|
190346
|
-
} catch (
|
|
190346
|
+
} catch (_error) {
|
|
190347
190347
|
spinner2.fail("Failed to fetch components");
|
|
190348
|
-
throw
|
|
190348
|
+
throw _error;
|
|
190349
190349
|
}
|
|
190350
190350
|
}
|
|
190351
190351
|
logger.break();
|
|
@@ -190415,7 +190415,7 @@ async function add(components, options) {
|
|
|
190415
190415
|
packageManager: projectInfo.packageManager
|
|
190416
190416
|
});
|
|
190417
190417
|
depsSpinner.succeed(`Installed: ${dependencies.join(", ")}`);
|
|
190418
|
-
} catch
|
|
190418
|
+
} catch {
|
|
190419
190419
|
depsSpinner.fail("Failed to install dependencies");
|
|
190420
190420
|
logger.warn(`Please install manually: ${dependencies.join(" ")}`);
|
|
190421
190421
|
}
|
|
@@ -190428,7 +190428,7 @@ async function add(components, options) {
|
|
|
190428
190428
|
dev: true
|
|
190429
190429
|
});
|
|
190430
190430
|
devDepsSpinner.succeed(`Installed dev: ${devDependencies.join(", ")}`);
|
|
190431
|
-
} catch
|
|
190431
|
+
} catch {
|
|
190432
190432
|
devDepsSpinner.fail("Failed to install dev dependencies");
|
|
190433
190433
|
logger.warn(`Please install manually: ${devDependencies.join(" ")}`);
|
|
190434
190434
|
}
|
|
@@ -190437,7 +190437,7 @@ async function add(components, options) {
|
|
|
190437
190437
|
try {
|
|
190438
190438
|
await updateTailwindConfig(cwd, config, projectInfo.tailwindVersion);
|
|
190439
190439
|
spinner.succeed("Tailwind configuration updated");
|
|
190440
|
-
} catch
|
|
190440
|
+
} catch {
|
|
190441
190441
|
spinner.fail("Failed to update Tailwind configuration");
|
|
190442
190442
|
logger.warn("Please ensure your tailwind.config.ts includes Happly UI tokens.");
|
|
190443
190443
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happlyui/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Add HapplyUI components to your project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"happlyui": "./dist/index.js"
|
|
8
8
|
},
|
|
9
|
-
"files": [
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
10
12
|
"scripts": {
|
|
11
13
|
"build": "bun build ./src/index.ts --outdir ./dist --target node --format esm",
|
|
12
14
|
"dev": "bun run ./src/index.ts",
|
|
@@ -27,7 +29,14 @@
|
|
|
27
29
|
"@types/fs-extra": "^11.0.4",
|
|
28
30
|
"typescript": "^5.7.0"
|
|
29
31
|
},
|
|
30
|
-
"keywords": [
|
|
32
|
+
"keywords": [
|
|
33
|
+
"happly",
|
|
34
|
+
"ui",
|
|
35
|
+
"components",
|
|
36
|
+
"react",
|
|
37
|
+
"tailwindcss",
|
|
38
|
+
"design-system"
|
|
39
|
+
],
|
|
31
40
|
"author": "Happly",
|
|
32
41
|
"license": "MIT",
|
|
33
42
|
"repository": {
|