stera-ui 0.2.0 → 0.2.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.
@@ -302,6 +302,13 @@ async function installDependencies(deps, cwd) {
302
302
  spinner.succeed(`Installed with ${pm}`);
303
303
  } catch (error) {
304
304
  spinner.fail(`Install failed`);
305
+ if (error instanceof Error && "stdout" in error && typeof error.stdout === "string" && error.stdout.includes("ERR_PNPM_ADDING_TO_ROOT")) {
306
+ throw new Error(
307
+ `Cannot install dependencies at a pnpm workspace root.
308
+ Run stera-ui init from within a specific workspace package instead,
309
+ or use "pnpm add -w <package>" manually to install at the root.`
310
+ );
311
+ }
305
312
  throw error;
306
313
  }
307
314
  }
package/dist/cli.js CHANGED
@@ -286,6 +286,13 @@ async function installDependencies(deps, cwd) {
286
286
  spinner.succeed(`Installed with ${pm}`);
287
287
  } catch (error) {
288
288
  spinner.fail(`Install failed`);
289
+ if (error instanceof Error && "stdout" in error && typeof error.stdout === "string" && error.stdout.includes("ERR_PNPM_ADDING_TO_ROOT")) {
290
+ throw new Error(
291
+ `Cannot install dependencies at a pnpm workspace root.
292
+ Run stera-ui init from within a specific workspace package instead,
293
+ or use "pnpm add -w <package>" manually to install at the root.`
294
+ );
295
+ }
289
296
  throw error;
290
297
  }
291
298
  }
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  resolveOutputPath,
32
32
  transformImports,
33
33
  writeComponentFiles
34
- } from "./chunk-MFUZBXO6.js";
34
+ } from "./chunk-KIEC5SPW.js";
35
35
  export {
36
36
  CHECK,
37
37
  CONFIG_FILE,
@@ -8,13 +8,13 @@ declare const registryItemFileSchema: z.ZodObject<{
8
8
  content: z.ZodOptional<z.ZodString>;
9
9
  target: z.ZodOptional<z.ZodString>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
12
11
  path: string;
12
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
13
13
  content?: string | undefined;
14
14
  target?: string | undefined;
15
15
  }, {
16
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
17
16
  path: string;
17
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
18
18
  content?: string | undefined;
19
19
  target?: string | undefined;
20
20
  }>;
@@ -30,33 +30,33 @@ declare const registryItemSchema: z.ZodObject<{
30
30
  content: z.ZodOptional<z.ZodString>;
31
31
  target: z.ZodOptional<z.ZodString>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
34
33
  path: string;
34
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
35
35
  content?: string | undefined;
36
36
  target?: string | undefined;
37
37
  }, {
38
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
39
38
  path: string;
39
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
40
40
  content?: string | undefined;
41
41
  target?: string | undefined;
42
42
  }>, "many">;
43
43
  }, "strip", z.ZodTypeAny, {
44
- name: string;
45
44
  type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
45
+ name: string;
46
46
  files: {
47
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
48
47
  path: string;
48
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
49
49
  content?: string | undefined;
50
50
  target?: string | undefined;
51
51
  }[];
52
52
  dependencies?: string[] | undefined;
53
53
  registryDependencies?: string[] | undefined;
54
54
  }, {
55
- name: string;
56
55
  type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
56
+ name: string;
57
57
  files: {
58
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
59
58
  path: string;
59
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
60
60
  content?: string | undefined;
61
61
  target?: string | undefined;
62
62
  }[];
@@ -77,33 +77,33 @@ declare const registryIndexSchema: z.ZodObject<{
77
77
  content: z.ZodOptional<z.ZodString>;
78
78
  target: z.ZodOptional<z.ZodString>;
79
79
  }, "strip", z.ZodTypeAny, {
80
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
81
80
  path: string;
81
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
82
82
  content?: string | undefined;
83
83
  target?: string | undefined;
84
84
  }, {
85
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
86
85
  path: string;
86
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
87
87
  content?: string | undefined;
88
88
  target?: string | undefined;
89
89
  }>, "many">;
90
90
  }, "strip", z.ZodTypeAny, {
91
- name: string;
92
91
  type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
92
+ name: string;
93
93
  files: {
94
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
95
94
  path: string;
95
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
96
96
  content?: string | undefined;
97
97
  target?: string | undefined;
98
98
  }[];
99
99
  dependencies?: string[] | undefined;
100
100
  registryDependencies?: string[] | undefined;
101
101
  }, {
102
- name: string;
103
102
  type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
103
+ name: string;
104
104
  files: {
105
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
106
105
  path: string;
106
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
107
107
  content?: string | undefined;
108
108
  target?: string | undefined;
109
109
  }[];
@@ -113,11 +113,11 @@ declare const registryIndexSchema: z.ZodObject<{
113
113
  }, "strip", z.ZodTypeAny, {
114
114
  name: string;
115
115
  items: {
116
- name: string;
117
116
  type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
117
+ name: string;
118
118
  files: {
119
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
120
119
  path: string;
120
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
121
121
  content?: string | undefined;
122
122
  target?: string | undefined;
123
123
  }[];
@@ -127,11 +127,11 @@ declare const registryIndexSchema: z.ZodObject<{
127
127
  }, {
128
128
  name: string;
129
129
  items: {
130
- name: string;
131
130
  type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
131
+ name: string;
132
132
  files: {
133
- type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
134
133
  path: string;
134
+ type: "registry:ui" | "registry:component" | "registry:hook" | "registry:lib" | "registry:style";
135
135
  content?: string | undefined;
136
136
  target?: string | undefined;
137
137
  }[];
@@ -17,7 +17,7 @@ import {
17
17
  resolveOutputPath,
18
18
  transformImports,
19
19
  writeComponentFiles
20
- } from "../chunk-MFUZBXO6.js";
20
+ } from "../chunk-KIEC5SPW.js";
21
21
  export {
22
22
  CHECK,
23
23
  CONFIG_FILE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stera-ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "Add Stera UI components to your project.",
6
6
  "license": "MIT",