sdaia-ui 1.6.1 → 1.6.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.js +3 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -271,12 +271,6 @@ async function init() {
|
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
const response = await prompts([
|
|
274
|
-
{
|
|
275
|
-
type: "text",
|
|
276
|
-
name: "registryUrl",
|
|
277
|
-
message: "Registry URL (your docs site API):",
|
|
278
|
-
initial: DEFAULT_REGISTRY_URL
|
|
279
|
-
},
|
|
280
274
|
{
|
|
281
275
|
type: "text",
|
|
282
276
|
name: "componentDir",
|
|
@@ -290,17 +284,18 @@ async function init() {
|
|
|
290
284
|
initial: DEFAULT_UTILS_DIR
|
|
291
285
|
}
|
|
292
286
|
]);
|
|
293
|
-
if (!response.
|
|
287
|
+
if (!response.componentDir || !response.utilsDir) {
|
|
294
288
|
logger.error("Init cancelled.");
|
|
295
289
|
return;
|
|
296
290
|
}
|
|
297
291
|
const config = {
|
|
298
|
-
registryUrl:
|
|
292
|
+
registryUrl: DEFAULT_REGISTRY_URL,
|
|
299
293
|
componentDir: response.componentDir,
|
|
300
294
|
utilsDir: response.utilsDir
|
|
301
295
|
};
|
|
302
296
|
writeConfig(config);
|
|
303
297
|
logger.success("Created sdaia.config.json");
|
|
298
|
+
logger.info(`Registry: ${config.registryUrl}`);
|
|
304
299
|
const pm = detectPackageManager();
|
|
305
300
|
if (!isTailwindInstalled()) {
|
|
306
301
|
logger.warn("Tailwind CSS is not installed. Components require Tailwind CSS to work.");
|