react-apps-ui 1.0.13 → 1.0.14
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 +5 -2
- package/package.json +1 -1
- package/src/index.ts +6 -2
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,6 +210,9 @@ 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
|
package/package.json
CHANGED
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,6 +304,10 @@ 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
|
|