myoperator-ui 0.0.152-beta.1 → 0.0.152-beta.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 +18 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8593,6 +8593,15 @@ async function add(components, options) {
|
|
|
8593
8593
|
console.log(chalk.yellow("\n Required dependencies:"));
|
|
8594
8594
|
console.log(chalk.cyan(` npm install ${Array.from(dependencies).join(" ")}`));
|
|
8595
8595
|
}
|
|
8596
|
+
const hasCustomComponents = installed.some((file) => file.basePath.includes("custom"));
|
|
8597
|
+
if (hasCustomComponents) {
|
|
8598
|
+
console.log(chalk.yellow("\n \u26A0\uFE0F Custom components installed!"));
|
|
8599
|
+
console.log(chalk.white(" Make sure your tailwind.config.js includes:"));
|
|
8600
|
+
console.log(chalk.cyan(" content: ["));
|
|
8601
|
+
console.log(chalk.cyan(' "./src/components/ui/**/*.{js,ts,jsx,tsx}",'));
|
|
8602
|
+
console.log(chalk.cyan(' "./src/components/custom/**/*.{js,ts,jsx,tsx}", // Add this line'));
|
|
8603
|
+
console.log(chalk.cyan(" ]"));
|
|
8604
|
+
}
|
|
8596
8605
|
console.log("");
|
|
8597
8606
|
} catch (error) {
|
|
8598
8607
|
spinner.fail("Failed to install components");
|
|
@@ -9599,6 +9608,15 @@ async function sync(options) {
|
|
|
9599
9608
|
console.log(chalk3.yellow("\n Required dependencies:"));
|
|
9600
9609
|
console.log(chalk3.cyan(` npm install ${Array.from(dependencies).join(" ")}`));
|
|
9601
9610
|
}
|
|
9611
|
+
const hasCustomComponents = installed.some((file) => file.basePath.includes("custom"));
|
|
9612
|
+
if (hasCustomComponents) {
|
|
9613
|
+
console.log(chalk3.yellow("\n \u26A0\uFE0F Custom components installed/updated!"));
|
|
9614
|
+
console.log(chalk3.white(" Make sure your tailwind.config.js includes:"));
|
|
9615
|
+
console.log(chalk3.cyan(" content: ["));
|
|
9616
|
+
console.log(chalk3.cyan(' "./src/components/ui/**/*.{js,ts,jsx,tsx}",'));
|
|
9617
|
+
console.log(chalk3.cyan(' "./src/components/custom/**/*.{js,ts,jsx,tsx}", // Add this line'));
|
|
9618
|
+
console.log(chalk3.cyan(" ]"));
|
|
9619
|
+
}
|
|
9602
9620
|
console.log("");
|
|
9603
9621
|
} catch (error) {
|
|
9604
9622
|
spinner.fail("Sync failed");
|