artharexian-ui 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/cli/index.mjs +8 -0
  2. package/package.json +1 -1
package/cli/index.mjs CHANGED
@@ -95,6 +95,14 @@ function copyDir(src, dest) {
95
95
  // Add component from GitHub
96
96
  async function addComponent(componentName) {
97
97
  const destDir = path.resolve(cwd, 'src/components/ui', componentName)
98
+ const stylesPath = path.resolve(cwd, 'src/styles')
99
+
100
+ // Auto-install styles if not present
101
+ if (!fs.existsSync(stylesPath)) {
102
+ console.log('Styles not found. Installing...\n')
103
+ await copyStyles()
104
+ console.log('')
105
+ }
98
106
 
99
107
  console.log(`Fetching ${componentName} from GitHub...`)
100
108
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "artharexian-ui",
3
3
  "description": "Vue 3 UI component library",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "type": "module",