@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.
Files changed (2) hide show
  1. package/bin/cli.js +6 -4
  2. 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/updated:");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireservers-ui/react-natives",
3
- "version": "1.0.1-rc2",
3
+ "version": "1.0.1-rc3",
4
4
  "description": "A comprehensive React Native component library built with NativeWind and Tailwind Variants",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",