@react-native-reusables/cli 0.5.0 → 0.5.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/bin.cjs +4 -4
- package/package.json +1 -1
package/bin.cjs
CHANGED
|
@@ -58058,7 +58058,7 @@ var Doctor = class extends Effect_exports.Service()("Doctor", {
|
|
|
58058
58058
|
}
|
|
58059
58059
|
if (dependenciesToInstall.length > 0) {
|
|
58060
58060
|
yield* Effect_exports.logDebug(`Installing ${dependenciesToInstall.join(", ")}`);
|
|
58061
|
-
if (process.env.
|
|
58061
|
+
if (process.env.INTERNAL_ENV !== "development") {
|
|
58062
58062
|
spinner.start("Installing dependencies");
|
|
58063
58063
|
yield* runCommand2("npx", ["expo", "install", ...dependenciesToInstall], {
|
|
58064
58064
|
cwd: options4.cwd
|
|
@@ -58084,7 +58084,7 @@ var Doctor = class extends Effect_exports.Service()("Doctor", {
|
|
|
58084
58084
|
}
|
|
58085
58085
|
if (devDependenciesToInstall.length > 0) {
|
|
58086
58086
|
yield* Effect_exports.logDebug(`Installing ${devDependenciesToInstall.join(", ")}`);
|
|
58087
|
-
if (process.env.
|
|
58087
|
+
if (process.env.INTERNAL_ENV !== "development") {
|
|
58088
58088
|
spinner.start("Installing dev dependencies");
|
|
58089
58089
|
yield* runCommand2("npx", ["expo", "install", ...devDependenciesToInstall], {
|
|
58090
58090
|
cwd: options4.cwd
|
|
@@ -58201,13 +58201,13 @@ var Add = class extends Effect_exports.Service()("Add", {
|
|
|
58201
58201
|
yield* Effect_exports.fail(new Error("No components selected."));
|
|
58202
58202
|
}
|
|
58203
58203
|
yield* Effect_exports.logDebug(`Selected components: ${components.join(", ")}`);
|
|
58204
|
-
const baseUrl = process.env.
|
|
58204
|
+
const baseUrl = process.env.INTERNAL_ENV === "development" ? "http://localhost:3000/local/r/new-york" : "https://reactnativereusables.com/r/new-york";
|
|
58205
58205
|
const componentUrls = components.map((component) => {
|
|
58206
58206
|
const lowerCaseComponent = component.toLocaleLowerCase();
|
|
58207
58207
|
return lowerCaseComponent.startsWith("http") ? lowerCaseComponent : `${baseUrl}/${lowerCaseComponent}.json`;
|
|
58208
58208
|
});
|
|
58209
58209
|
const shadcnOptions = toShadcnOptions(options3);
|
|
58210
|
-
const commandArgs = ["shadcn@latest", "add", ...shadcnOptions, ...componentUrls];
|
|
58210
|
+
const commandArgs = ["--yes", "shadcn@latest", "add", ...shadcnOptions, ...componentUrls];
|
|
58211
58211
|
yield* Effect_exports.logDebug(`Running command: npx ${commandArgs.join(" ")}`);
|
|
58212
58212
|
yield* runCommand2("npx", commandArgs, {
|
|
58213
58213
|
cwd: options3.cwd,
|