weloop-kosign 1.0.7 → 1.0.9
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/package.json +1 -1
- package/scripts/cli-remote.js +2 -4
package/package.json
CHANGED
package/scripts/cli-remote.js
CHANGED
|
@@ -715,7 +715,7 @@ async function installCSSStyles(config, registryUrl, forceUpdate = false, silent
|
|
|
715
715
|
function createUtilsFile(utilsPath) {
|
|
716
716
|
if (fs.existsSync(utilsPath)) return;
|
|
717
717
|
|
|
718
|
-
|
|
718
|
+
// Silently create utils file (matching shadcn/ui behavior)
|
|
719
719
|
ensureDirectoryExists(path.dirname(utilsPath));
|
|
720
720
|
|
|
721
721
|
const utilsContent = `import { clsx, type ClassValue } from "clsx"
|
|
@@ -726,7 +726,6 @@ export function cn(...inputs: ClassValue[]) {
|
|
|
726
726
|
}
|
|
727
727
|
`;
|
|
728
728
|
fs.writeFileSync(utilsPath, utilsContent);
|
|
729
|
-
success(`Created ${path.relative(process.cwd(), utilsPath)}`);
|
|
730
729
|
}
|
|
731
730
|
|
|
732
731
|
async function installComponent(componentName, options = {}) {
|
|
@@ -785,10 +784,9 @@ async function installComponent(componentName, options = {}) {
|
|
|
785
784
|
process.exit(1);
|
|
786
785
|
}
|
|
787
786
|
|
|
788
|
-
// Check if component already exists
|
|
787
|
+
// Check if component already exists (silently skip if exists, matching shadcn/ui behavior)
|
|
789
788
|
const componentPath = path.join(componentsDir, `${componentName}.tsx`);
|
|
790
789
|
if (fs.existsSync(componentPath) && !overwrite) {
|
|
791
|
-
warn(`Component "${componentName}" already exists. Use --overwrite to replace it.`);
|
|
792
790
|
return;
|
|
793
791
|
}
|
|
794
792
|
|