Fixing optgroup

This commit is contained in:
Ronan Berder
2025-05-16 02:51:05 -07:00
parent 315771e1a3
commit 350e041ebf
5 changed files with 14 additions and 12 deletions
+7 -7
View File
@@ -62,17 +62,17 @@ async function ensureConfiguration() {
const pathPrompts = [];
if (!config.templateDest || config.templateDest === DEFAULT_CONFIG.templateDest) {
pathPrompts.push({
type: 'input',
name: 'templateDest',
message: 'Where should template files be placed?',
type: 'input',
name: 'templateDest',
message: 'Where should template files be placed?',
default: DEFAULT_CONFIG.templateDest,
});
}
if (!config.scriptDest || config.scriptDest === DEFAULT_CONFIG.scriptDest) {
pathPrompts.push({
type: 'input',
name: 'scriptDest',
message: 'Where should script files be placed?',
type: 'input',
name: 'scriptDest',
message: 'Where should script files be placed?',
default: DEFAULT_CONFIG.scriptDest,
});
}
@@ -108,7 +108,7 @@ async function addComponent(componentName) {
}
if (!scriptExists) {
console.error(` Error: Script file for component '${componentName}' not found in CLI assets. Searched: ${scriptSource}`);
}
}
if (!templateExists || !scriptExists) return; // Skip this component if sources are missing
await fs.ensureDir(path.dirname(templateDestPath));
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "basecoat-cli",
"version": "0.1.1",
"version": "0.1.2",
"description": "Add Basecoat components to your project",
"author": "hunvreus",
"license": "MIT",