myoperator-ui 0.0.231 → 0.0.232

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30100,6 +30100,7 @@ export function cn(...inputs: ClassValue[]) {
30100
30100
  const existingConfig2 = await fs5.readFile(tailwindConfigPath, "utf-8");
30101
30101
  const hasLegacyColors = existingConfig2.includes("hsl(var(--destructive))") || existingConfig2.includes("hsl(var(--ring))");
30102
30102
  const hasSemanticColors = existingConfig2.includes("semantic-text-primary");
30103
+ const needsBootstrapUpdate = hasBootstrap && !existingConfig2.includes("preflight");
30103
30104
  if (!hasLegacyColors && !hasSemanticColors) {
30104
30105
  await fs5.writeFile(tailwindConfigPath, getTailwindConfig(userPrefix, hasBootstrap));
30105
30106
  tailwindUpdated = true;
@@ -30116,6 +30117,9 @@ export function cn(...inputs: ClassValue[]) {
30116
30117
  await fs5.writeFile(tailwindConfigPath, getTailwindConfig(userPrefix, hasBootstrap));
30117
30118
  tailwindUpdated = true;
30118
30119
  }
30120
+ } else if (needsBootstrapUpdate) {
30121
+ await fs5.writeFile(tailwindConfigPath, getTailwindConfig(userPrefix, hasBootstrap));
30122
+ tailwindUpdated = true;
30119
30123
  }
30120
30124
  }
30121
30125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-ui",
3
- "version": "0.0.231",
3
+ "version": "0.0.232",
4
4
  "description": "CLI for adding myOperator UI components to your project",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",