react-apps-ui 1.0.13 → 1.0.15

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/dist/index.js CHANGED
@@ -88,7 +88,7 @@ program
88
88
  const engineKey = response.engine;
89
89
  const setup = BASE_DEPS[engineKey];
90
90
  // 2. USE THE REGISTRY_URL to fetch the correct JSON manifest
91
- const manifestUrl = `${REGISTRY_URL}/${response.engine}.json`;
91
+ const manifestUrl = `${REGISTRY_URL}/${response.engine}.json?t=${Date.now()}`;
92
92
  console.log(chalk_1.default.dim(`\nFetching registry from GitHub...`));
93
93
  try {
94
94
  const res = await fetch(manifestUrl);
@@ -191,7 +191,7 @@ program
191
191
  fs_1.default.existsSync(path_1.default.join(process.cwd(), "src/theme/tailwind-preset.js"));
192
192
  const engine = hasTailwind ? "mobile-nativewind" : "mobile-stylesheet";
193
193
  console.log(chalk_1.default.dim(`\nDetected engine: ${engine}`));
194
- const manifestUrl = `${REGISTRY_URL}/${engine}.json`;
194
+ const manifestUrl = `${REGISTRY_URL}/${engine}.json?t=${Date.now()}`;
195
195
  try {
196
196
  // 2. Fetch the massive JSON database
197
197
  const res = await fetch(manifestUrl);
@@ -210,10 +210,13 @@ program
210
210
  compData.registryDependencies.forEach(resolveDependencies);
211
211
  }
212
212
  };
213
+ // Force the CLI to always check base dependencies
214
+ const setup = BASE_DEPS[engine];
215
+ setup.registry.forEach(resolveDependencies);
213
216
  // Run the resolver for every component the user typed in the terminal
214
217
  components.forEach(resolveDependencies);
215
218
  // We don't need to reinstall the theme if it was pulled as a dependency
216
- componentsToAdd.delete("theme");
219
+ // componentsToAdd.delete("theme");
217
220
  console.log(chalk_1.default.blue(`\nInstalling: ${Array.from(componentsToAdd).join(", ")}...`));
218
221
  const hasSrcDir = fs_1.default.existsSync(path_1.default.join(process.cwd(), "src"));
219
222
  // 4. WRITE THE FILES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-apps-ui",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "A universal, Shadcn-inspired UI component CLI for Web, React Native, and Expo.",
5
5
  "author": "Anand Vyas",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -94,7 +94,7 @@ program
94
94
  const setup = BASE_DEPS[engineKey];
95
95
 
96
96
  // 2. USE THE REGISTRY_URL to fetch the correct JSON manifest
97
- const manifestUrl = `${REGISTRY_URL}/${response.engine}.json`;
97
+ const manifestUrl = `${REGISTRY_URL}/${response.engine}.json?t=${Date.now()}`;
98
98
  console.log(chalk.dim(`\nFetching registry from GitHub...`));
99
99
 
100
100
  try {
@@ -281,7 +281,7 @@ program
281
281
  const engine = hasTailwind ? "mobile-nativewind" : "mobile-stylesheet";
282
282
 
283
283
  console.log(chalk.dim(`\nDetected engine: ${engine}`));
284
- const manifestUrl = `${REGISTRY_URL}/${engine}.json`;
284
+ const manifestUrl = `${REGISTRY_URL}/${engine}.json?t=${Date.now()}`;
285
285
 
286
286
  try {
287
287
  // 2. Fetch the massive JSON database
@@ -304,11 +304,15 @@ program
304
304
  }
305
305
  };
306
306
 
307
+ // Force the CLI to always check base dependencies
308
+ const setup = BASE_DEPS[engine];
309
+ setup.registry.forEach(resolveDependencies);
310
+
307
311
  // Run the resolver for every component the user typed in the terminal
308
312
  components.forEach(resolveDependencies);
309
313
 
310
314
  // We don't need to reinstall the theme if it was pulled as a dependency
311
- componentsToAdd.delete("theme");
315
+ // componentsToAdd.delete("theme");
312
316
 
313
317
  console.log(
314
318
  chalk.blue(