@wireservers-ui/react-natives 1.0.1-rc2 → 1.0.1-rc3
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/bin/cli.js +6 -4
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -344,7 +344,7 @@ writeFile("App.tsx", appTsx);
|
|
|
344
344
|
|
|
345
345
|
// ── Done ───────────────────────────────────────────────────────────────────
|
|
346
346
|
console.log("\n✅ Setup complete!\n");
|
|
347
|
-
console.log(" Created
|
|
347
|
+
console.log(" Created if missing (existing files were preserved):");
|
|
348
348
|
console.log(" • tailwind.config.js");
|
|
349
349
|
console.log(" • global.css (with theme variables)");
|
|
350
350
|
console.log(" • nativewind-env.d.ts");
|
|
@@ -357,10 +357,12 @@ console.log(" npx expo start --clear\n");
|
|
|
357
357
|
// ── Helpers ────────────────────────────────────────────────────────────────
|
|
358
358
|
function writeFile(name, content) {
|
|
359
359
|
const filePath = path.join(cwd, name);
|
|
360
|
+
if (fs.existsSync(filePath)) {
|
|
361
|
+
console.log(` ⏭️ ${name} already exists, skipping`);
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
360
364
|
fs.writeFileSync(filePath, content, "utf8");
|
|
361
|
-
console.log(
|
|
362
|
-
` ✏️ ${fs.existsSync(filePath) ? "Updated" : "Created"} ${name}`,
|
|
363
|
-
);
|
|
365
|
+
console.log(` ✏️ Created ${name}`);
|
|
364
366
|
}
|
|
365
367
|
|
|
366
368
|
function writeIfMissing(name, content) {
|
package/package.json
CHANGED