lorre-blocks 0.1.0 → 0.1.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # lorre-blocks
2
2
 
3
- CLI for [lorre-blocks](https://github.com/zukazine/lorre-blocks) — a shadcn-style
3
+ CLI for [lorre-blocks](https://github.com/odama-dev/lorre-blocks) — a shadcn-style
4
4
  component library. Instead of installing a package and importing from `node_modules`,
5
5
  this CLI **copies component source directly into your project**, so you own and can
6
6
  edit every line.
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import color from "picocolors";
13
13
  import { promises as fs } from "fs";
14
14
  import path from "path";
15
15
  var CONFIG_FILE = "components.json";
16
- var DEFAULT_REGISTRY = "http://localhost:3000";
16
+ var DEFAULT_REGISTRY = "https://lorre-blocks.vercel.app";
17
17
  var DEFAULT_ALIASES = {
18
18
  components: "@/components",
19
19
  ui: "@/components/ui",
@@ -170,7 +170,6 @@ async function installDependencies(cwd, pm, deps) {
170
170
  const child = spawn(pm, args, {
171
171
  cwd,
172
172
  stdio: "inherit",
173
- // On Windows, package managers are .cmd shims that need a shell.
174
173
  shell: process.platform === "win32"
175
174
  });
176
175
  child.on("error", reject);
@@ -197,6 +196,7 @@ async function resolveBaseDir(cwd) {
197
196
  return path4.resolve(cwd, baseUrl, dir);
198
197
  }
199
198
  } catch {
199
+ continue;
200
200
  }
201
201
  }
202
202
  try {
@@ -232,10 +232,7 @@ function rewriteImports(content, config) {
232
232
  let result = content;
233
233
  for (const [from, to] of replacements) {
234
234
  if (from === to) continue;
235
- const pattern = new RegExp(
236
- `(["'\`])${escapeRegExp(from)}(?=["'\`/])`,
237
- "g"
238
- );
235
+ const pattern = new RegExp(`(["'\`])${escapeRegExp(from)}(?=["'\`/])`, "g");
239
236
  result = result.replace(pattern, `$1${to}`);
240
237
  }
241
238
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lorre-blocks",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Add lorre-blocks components to your project by copying their source in.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,10 +23,10 @@
23
23
  "license": "MIT",
24
24
  "repository": {
25
25
  "type": "git",
26
- "url": "git+https://github.com/zukazine/lorre-blocks.git",
26
+ "url": "git+https://github.com/odama-dev/lorre-blocks.git",
27
27
  "directory": "packages/cli"
28
28
  },
29
- "homepage": "https://github.com/zukazine/lorre-blocks#readme",
29
+ "homepage": "https://github.com/odama-dev/lorre-blocks#readme",
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },