@moondreamsdev/dreamer-ui 1.4.0 → 1.4.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.
@@ -1,9 +1,12 @@
1
1
  import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
2
2
  import { join, dirname } from 'path';
3
3
  import { createInterface } from 'readline';
4
+ import { fileURLToPath } from 'url';
4
5
 
5
6
  function extractColorsFromSource() {
6
7
  try {
8
+ const __filename = fileURLToPath(import.meta.url);
9
+ const __dirname = dirname(__filename);
7
10
  const sourceFile = join(__dirname, '../src/styles.lib.css');
8
11
  const sourceContent = readFileSync(sourceFile, 'utf8');
9
12
 
@@ -77,11 +80,11 @@ function createCSSFile(targetPath, cssContent) {
77
80
  function getDefaultPath() {
78
81
  // Look for common CSS directories
79
82
  const possiblePaths = [
80
- './src/styles/dreamer-ui-colors.css',
81
- './styles/dreamer-ui-colors.css',
82
- './css/dreamer-ui-colors.css',
83
- './src/dreamer-ui-colors.css',
84
- './dreamer-ui-colors.css'
83
+ './src/styles/dreamer-ui.css',
84
+ './styles/dreamer-ui.css',
85
+ './css/dreamer-ui.css',
86
+ './src/dreamer-ui.css',
87
+ './dreamer-ui.css'
85
88
  ];
86
89
 
87
90
  for (const p of possiblePaths) {
@@ -91,7 +94,7 @@ function getDefaultPath() {
91
94
  }
92
95
  }
93
96
 
94
- return './dreamer-ui-colors.css';
97
+ return './dreamer-ui.css';
95
98
  }
96
99
 
97
100
  async function promptUserForPath() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moondreamsdev/dreamer-ui",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "type": "module",
5
5
  "description": "A collection of Tailwind CSS components for React",
6
6
  "main": "dist/index.js",