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 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=`npx -y shadcn@latest add ${(e==="ai"?new URL("all.json","https://registry.ai-sdk.dev/"):new URL(`r/${e}.json`,"https://www.love-ui.com")).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))}
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=`npx -y shadcn@latest add ${(e==="ai"?new URL("all.json","https://registry.ai-sdk.dev/"):new URL(`r/${e}.json`,"https://www.love-ui.com")).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))}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "love-ui",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "bin": {
5
5
  "loveui": "dist/index.js",
6
6
  "love-ui": "dist/index.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loveui",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "private": true,
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",