stera-ui 0.8.0 → 0.8.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/{add-WUTTJN25.js → add-DBC33IWM.js} +1 -15
- package/dist/{chunk-V4TMOT6I.js → chunk-RQ7T7RF5.js} +1 -1
- package/dist/{chunk-5NLD52O5.js → chunk-UKHKFX2A.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{init-QYYCGWYV.js → init-EQHYR7MG.js} +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
migrateLegacyStyles,
|
|
8
8
|
writeComponentFiles,
|
|
9
9
|
writeStyles
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UKHKFX2A.js";
|
|
11
11
|
import {
|
|
12
12
|
ComponentNotFoundError,
|
|
13
13
|
createSpinner,
|
|
@@ -171,12 +171,6 @@ async function add(components, options) {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
const requested = new Set(components);
|
|
175
|
-
console.log("\n Installing components\n");
|
|
176
|
-
for (const item of resolved) {
|
|
177
|
-
const tag = requested.has(item.name) ? "" : dim(" (dependency)");
|
|
178
|
-
console.log(` \u2192 ${item.name}${tag}`);
|
|
179
|
-
}
|
|
180
174
|
const allNpmDeps = [];
|
|
181
175
|
for (const item of resolved) {
|
|
182
176
|
if (item.dependencies) {
|
|
@@ -184,13 +178,6 @@ async function add(components, options) {
|
|
|
184
178
|
}
|
|
185
179
|
}
|
|
186
180
|
const uniqueNpmDeps = [...new Set(allNpmDeps)].sort();
|
|
187
|
-
if (uniqueNpmDeps.length > 0) {
|
|
188
|
-
console.log("\n npm packages\n");
|
|
189
|
-
for (const dep of uniqueNpmDeps) {
|
|
190
|
-
console.log(` \u2192 ${dep}`);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
console.log("");
|
|
194
181
|
const { written, skipped } = await writeComponentFiles(
|
|
195
182
|
resolved,
|
|
196
183
|
config,
|
|
@@ -205,7 +192,6 @@ async function add(components, options) {
|
|
|
205
192
|
console.log(` ${dim(`\xB7 ${file.path} ${label}`)}`);
|
|
206
193
|
}
|
|
207
194
|
if (uniqueNpmDeps.length > 0) {
|
|
208
|
-
console.log("");
|
|
209
195
|
await installDependencies(uniqueNpmDeps, projectRoot);
|
|
210
196
|
}
|
|
211
197
|
console.log("");
|
|
@@ -525,7 +525,7 @@ async function installDependencies(deps, cwd) {
|
|
|
525
525
|
const spinner = createSpinner(`Installing with ${pm}`);
|
|
526
526
|
try {
|
|
527
527
|
await execa(cmd, args, { cwd });
|
|
528
|
-
spinner.succeed(`Installed with ${pm}`);
|
|
528
|
+
spinner.succeed(`Installed ${toInstall.join(", ")} with ${pm}`);
|
|
529
529
|
} catch (error) {
|
|
530
530
|
spinner.fail(`Install failed`);
|
|
531
531
|
if (error instanceof Error && "stdout" in error && typeof error.stdout === "string" && error.stdout.includes("ERR_PNPM_ADDING_TO_ROOT")) {
|
|
@@ -104,7 +104,7 @@ async function installDependencies(deps, cwd) {
|
|
|
104
104
|
const spinner = createSpinner(`Installing with ${pm}`);
|
|
105
105
|
try {
|
|
106
106
|
await execa(cmd, args, { cwd });
|
|
107
|
-
spinner.succeed(`Installed with ${pm}`);
|
|
107
|
+
spinner.succeed(`Installed ${toInstall.join(", ")} with ${pm}`);
|
|
108
108
|
} catch (error) {
|
|
109
109
|
spinner.fail(`Install failed`);
|
|
110
110
|
if (error instanceof Error && "stdout" in error && typeof error.stdout === "string" && error.stdout.includes("ERR_PNPM_ADDING_TO_ROOT")) {
|
package/dist/cli.js
CHANGED
|
@@ -10,11 +10,11 @@ var pkg = createRequire(import.meta.url)("../package.json");
|
|
|
10
10
|
var program = new Command();
|
|
11
11
|
program.name("stera-ui").description("Add Stera UI components to your project.").version(pkg.version);
|
|
12
12
|
program.command("init").description("Initialize Stera UI in your project.").option("-c, --cwd <path>", "Working directory", process.cwd()).option("-y, --yes", "Skip confirmation prompts").action(async (options) => {
|
|
13
|
-
const { init } = await import("./init-
|
|
13
|
+
const { init } = await import("./init-EQHYR7MG.js");
|
|
14
14
|
await init(options);
|
|
15
15
|
});
|
|
16
16
|
program.command("add").description("Add components to your project.").argument("<components...>", "Components to add").option("-c, --cwd <path>", "Working directory", process.cwd()).option("-y, --yes", "Skip confirmation prompts").option("-o, --overwrite", "Overwrite existing files without prompting").action(async (components, options) => {
|
|
17
|
-
const { add } = await import("./add-
|
|
17
|
+
const { add } = await import("./add-DBC33IWM.js");
|
|
18
18
|
await add(components, options);
|
|
19
19
|
});
|
|
20
20
|
program.command("list").description("List all available components.").action(async () => {
|
package/dist/index.js
CHANGED
package/dist/utils/index.js
CHANGED