love-ui 1.0.1 → 1.0.2
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.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/packages/love-ui/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var t=require("child_process"),o=process.argv.slice(2);(o.length<2||o[0]!=="add")&&(console.log("Usage: npx loveui add [...packages]"),process.exit(1));var r=o.slice(1);for(let e of r){if(!e.trim())continue;console.log(`Adding ${e} component...`);let n
|
|
2
|
+
"use strict"; var t = require("child_process"), o = process.argv.slice(2); (o.length < 2 || o[0] !== "add") && (console.log("Usage: npx loveui add [...packages]"), process.exit(1)); var r = o.slice(1); for (let e of r) { if (!e.trim()) continue; console.log(`Adding ${e} component...`); let n = `npx -y shadcn@latest add ${(e === "ai" ? new URL("all.json", "https://registry.ai-sdk.dev/") : new URL(`r/${e}.json`, "https://loveui-docs.vercel.app")).toString()}`, s = (0, t.spawnSync)(n, { stdio: "inherit", shell: !0 }); s.error ? (console.error(`Failed to add ${e}:`, s.error.message), process.exit(1)) : s.status !== 0 && (console.error(`Command failed with exit code ${s.status}`), process.exit(1)) }
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{spawnSync as n}from"child_process";var o=process.argv.slice(2);(o.length<2||o[0]!=="add")&&(console.log("Usage: npx loveui add [...packages]"),process.exit(1));var r=o.slice(1);for(let e of r){if(!e.trim())continue;console.log(`Adding ${e} component...`);let t
|
|
2
|
+
import { spawnSync as n } from "child_process"; var o = process.argv.slice(2); (o.length < 2 || o[0] !== "add") && (console.log("Usage: npx loveui add [...packages]"), process.exit(1)); var r = o.slice(1); for (let e of r) { if (!e.trim()) continue; console.log(`Adding ${e} component...`); let t = `npx -y shadcn@latest add ${(e === "ai" ? new URL("all.json", "https://registry.ai-sdk.dev/") : new URL(`r/${e}.json`, "https://loveui-docs.vercel.app")).toString()}`, s = n(t, { stdio: "inherit", shell: !0 }); s.error ? (console.error(`Failed to add ${e}:`, s.error.message), process.exit(1)) : s.status !== 0 && (console.error(`Command failed with exit code ${s.status}`), process.exit(1)) }
|
package/package.json
CHANGED