setup-nativewind 1.1.0 → 1.1.1
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/src/fileWriter.js +1 -2
- package/src/index.js +3 -2
package/package.json
CHANGED
package/src/fileWriter.js
CHANGED
|
@@ -7,7 +7,6 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
7
7
|
export async function writeConfigFiles(projectType) {
|
|
8
8
|
const templateDir = path.join(__dirname, 'templates', projectType);
|
|
9
9
|
const targetDir = process.cwd();
|
|
10
|
-
|
|
11
10
|
const files = fs.readdirSync(templateDir);
|
|
12
11
|
|
|
13
12
|
for (const file of files) {
|
|
@@ -15,7 +14,7 @@ export async function writeConfigFiles(projectType) {
|
|
|
15
14
|
const dest = path.join(targetDir, file);
|
|
16
15
|
|
|
17
16
|
if (fs.existsSync(dest)) {
|
|
18
|
-
console.
|
|
17
|
+
console.log(`⚠️ Skipping ${file} — already exists`);
|
|
19
18
|
continue;
|
|
20
19
|
}
|
|
21
20
|
|
package/src/index.js
CHANGED
|
@@ -33,10 +33,11 @@ async function run() {
|
|
|
33
33
|
// Step 3: Write config files
|
|
34
34
|
const fileSpinner = ora('Creating config files...').start();
|
|
35
35
|
try {
|
|
36
|
+
fileSpinner.stop(); // stop before logging individual files
|
|
36
37
|
await writeConfigFiles(projectType);
|
|
37
|
-
|
|
38
|
+
console.log(chalk.green('✔ Config files created'));
|
|
38
39
|
} catch (err) {
|
|
39
|
-
|
|
40
|
+
console.error(chalk.red('✖ File creation failed: ' + err.message));
|
|
40
41
|
process.exit(1);
|
|
41
42
|
}
|
|
42
43
|
|