@react-native-reusables/cli 0.6.1 → 0.6.3

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.cjs +145 -68
  2. package/package.json +1 -1
package/bin.cjs CHANGED
@@ -55406,9 +55406,8 @@ var path4 = Options_exports.text("path").pipe(Options_exports.withDefault(""), O
55406
55406
  var template = Options_exports.text("template").pipe(Options_exports.withAlias("t"), Options_exports.withDefault(""));
55407
55407
 
55408
55408
  // src/project-manifest.ts
55409
- var DEPENDENCIES = [
55409
+ var CORE_DEPENDENCIES = [
55410
55410
  "expo",
55411
- "nativewind",
55412
55411
  "react-native-reanimated",
55413
55412
  "react-native-safe-area-context",
55414
55413
  "tailwindcss-animate",
@@ -55416,6 +55415,10 @@ var DEPENDENCIES = [
55416
55415
  "clsx",
55417
55416
  "tailwind-merge"
55418
55417
  ];
55418
+ var DEPENDENCIES = {
55419
+ nativewind: [...CORE_DEPENDENCIES, "nativewind"],
55420
+ uniwind: [...CORE_DEPENDENCIES, "uniwind"]
55421
+ };
55419
55422
  var DEV_DEPENDENCIES = ["tailwindcss@^3.4.14"];
55420
55423
  var FILE_CHECKS = [
55421
55424
  {
@@ -55428,7 +55431,8 @@ var FILE_CHECKS = [
55428
55431
  message: "jsxImportSource or nativewind/babel is missing",
55429
55432
  docs: "https://www.nativewind.dev/docs/getting-started/installation#3-add-the-babel-preset"
55430
55433
  }
55431
- ]
55434
+ ],
55435
+ stylingLibraries: ["nativewind"]
55432
55436
  },
55433
55437
  {
55434
55438
  name: "Metro Config",
@@ -55445,7 +55449,21 @@ var FILE_CHECKS = [
55445
55449
  message: "The 'inlineRem: 16' is missing",
55446
55450
  docs: "https://reactnativereusables.com/docs/installation/manual#update-the-default-inlined-rem-value"
55447
55451
  }
55448
- ]
55452
+ ],
55453
+ stylingLibraries: ["nativewind"]
55454
+ },
55455
+ {
55456
+ name: "Metro Config",
55457
+ fileNames: ["metro.config.js", "metro.config.ts"],
55458
+ docs: "https://www.nativewind.dev/docs/getting-started/installation#4-create-or-modify-your-metroconfigjs",
55459
+ includes: [
55460
+ {
55461
+ content: ["withUniwindConfig("],
55462
+ message: "The withUniwindConfig function is missing",
55463
+ docs: "https://docs.uniwind.dev/api/metro-config#metro-config-js"
55464
+ }
55465
+ ],
55466
+ stylingLibraries: ["uniwind"]
55449
55467
  },
55450
55468
  {
55451
55469
  name: "Root Layout",
@@ -55463,7 +55481,8 @@ var FILE_CHECKS = [
55463
55481
  message: "The PortalHost component is missing",
55464
55482
  docs: "https://reactnativereusables.com/docs/installation/manual#add-the-portal-host-to-your-root-layout"
55465
55483
  }
55466
- ]
55484
+ ],
55485
+ stylingLibraries: ["nativewind", "uniwind"]
55467
55486
  }
55468
55487
  ];
55469
55488
  var DEPRECATED_FROM_LIB = [
@@ -55557,7 +55576,8 @@ var CUSTOM_FILE_CHECKS = {
55557
55576
  message: "At least one of the color css variables is missing",
55558
55577
  docs: "https://reactnativereusables.com/docs/installation/manual#configure-your-styles"
55559
55578
  }
55560
- ]
55579
+ ],
55580
+ stylingLibraries: ["nativewind"]
55561
55581
  },
55562
55582
  theme: {
55563
55583
  name: "Theme",
@@ -55574,7 +55594,8 @@ var CUSTOM_FILE_CHECKS = {
55574
55594
  message: "The NAV_THEME is missing",
55575
55595
  docs: "https://reactnativereusables.com/docs/installation/manual#configure-your-styles"
55576
55596
  }
55577
- ]
55597
+ ],
55598
+ stylingLibraries: ["nativewind", "uniwind"]
55578
55599
  },
55579
55600
  nativewindEnv: {
55580
55601
  name: "Nativewind Env",
@@ -55585,7 +55606,8 @@ var CUSTOM_FILE_CHECKS = {
55585
55606
  message: "The nativewind types are missing",
55586
55607
  docs: "https://www.nativewind.dev/docs/getting-started/installation#7-typescript-setup-optional"
55587
55608
  }
55588
- ]
55609
+ ],
55610
+ stylingLibraries: ["nativewind"]
55589
55611
  },
55590
55612
  uniwindTypes: {
55591
55613
  name: "Uniwind Types",
@@ -55597,7 +55619,8 @@ var CUSTOM_FILE_CHECKS = {
55597
55619
  message: "The uniwind types are missing",
55598
55620
  docs: "https://docs.uniwind.dev/api/metro-config#dtsfile"
55599
55621
  }
55600
- ]
55622
+ ],
55623
+ stylingLibraries: ["uniwind"]
55601
55624
  },
55602
55625
  utils: {
55603
55626
  name: "Utils",
@@ -55609,7 +55632,8 @@ var CUSTOM_FILE_CHECKS = {
55609
55632
  message: "The cn function is missing",
55610
55633
  docs: "https://reactnativereusables.com/docs/installation/manual#add-a-cn-helper"
55611
55634
  }
55612
- ]
55635
+ ],
55636
+ stylingLibraries: ["nativewind", "uniwind"]
55613
55637
  },
55614
55638
  css: {
55615
55639
  name: "CSS",
@@ -55626,7 +55650,26 @@ var CUSTOM_FILE_CHECKS = {
55626
55650
  message: "At least one of the color css variables is missing",
55627
55651
  docs: "https://reactnativereusables.com/docs/installation/manual#configure-your-styles"
55628
55652
  }
55629
- ]
55653
+ ],
55654
+ stylingLibraries: ["nativewind"]
55655
+ },
55656
+ uniwindCss: {
55657
+ name: "CSS",
55658
+ defaultFileNames: ["globals.css", "src/global.css"],
55659
+ docs: "https://reactnativereusables.com/docs/installation/manual#configure-your-styles",
55660
+ includes: [
55661
+ {
55662
+ content: ["tailwindcss", "uniwind"],
55663
+ message: "The tailwind layer directives are missing",
55664
+ docs: "https://reactnativereusables.com/docs/installation/manual#configure-your-styles"
55665
+ },
55666
+ {
55667
+ content: CSS_VARIABLE_NAMES,
55668
+ message: "At least one of the color css variables is missing",
55669
+ docs: "https://reactnativereusables.com/docs/installation/manual#configure-your-styles"
55670
+ }
55671
+ ],
55672
+ stylingLibraries: ["uniwind"]
55630
55673
  }
55631
55674
  };
55632
55675
  var NATIVEWIND_ENV_FILE = "nativewind-env.d.ts";
@@ -55693,6 +55736,9 @@ var PROJECT_MANIFEST = {
55693
55736
  templates: TEMPLATES
55694
55737
  };
55695
55738
 
55739
+ // src/utils/retry-with.ts
55740
+ var retryWith = (fn2, inputs) => inputs.slice(1).reduce((acc, input) => acc.pipe(Effect_exports.orElse(() => fn2(input))), fn2(inputs[0]));
55741
+
55696
55742
  // ../../node_modules/log-symbols/symbols.js
55697
55743
  var symbols_exports = {};
55698
55744
  __export(symbols_exports, {
@@ -55827,22 +55873,39 @@ var ProjectConfig = class extends Effect_exports.Service()("ProjectConfig", {
55827
55873
  yield* Effect_exports.logDebug(`componentJsonConfig: ${JSON.stringify(componentJsonConfig, null, 2)}`);
55828
55874
  return config2;
55829
55875
  });
55830
- const getStylingLibrary = () => Effect_exports.gen(function* () {
55831
- const nativewindEnvExists = yield* fs2.exists(path8.join(options3.cwd, "nativewind-env.d.ts"));
55832
- const uniwindTypesExists = yield* fs2.exists(path8.join(options3.cwd, "uniwind-types.d.ts"));
55833
- if (nativewindEnvExists) {
55834
- return "nativewind";
55876
+ const getUniwindDtsPath = () => Effect_exports.gen(function* () {
55877
+ const metroConfigPaths = ["metro.config.js", "metro.config.ts"].map((p3) => path8.join(options3.cwd, p3));
55878
+ const metroContent = yield* retryWith((filePath) => fs2.readFileString(filePath), metroConfigPaths).pipe(
55879
+ Effect_exports.catchAll(() => Effect_exports.succeed(null))
55880
+ );
55881
+ if (!metroContent?.includes("withUniwindConfig")) {
55882
+ return null;
55883
+ }
55884
+ const dtsFileMatch = metroContent.match(/dtsFile\s*:\s*["']([^"']+)["']/);
55885
+ if (dtsFileMatch?.[1]) {
55886
+ const dtsPath = dtsFileMatch[1].replace(/^\.\//, "");
55887
+ return path8.join(options3.cwd, dtsPath);
55835
55888
  }
55836
- if (uniwindTypesExists) {
55889
+ return path8.join(options3.cwd, PROJECT_MANIFEST.uniwindTypesFile);
55890
+ });
55891
+ const getStylingLibrary = () => Effect_exports.gen(function* () {
55892
+ const metroConfigPaths = ["metro.config.js", "metro.config.ts"].map((p3) => path8.join(options3.cwd, p3));
55893
+ const metroContent = yield* retryWith((filePath) => fs2.readFileString(filePath), metroConfigPaths).pipe(
55894
+ Effect_exports.catchAll(() => Effect_exports.succeed(null))
55895
+ );
55896
+ if (metroContent?.includes("withUniwindConfig")) {
55837
55897
  return "uniwind";
55838
55898
  }
55839
- return "nativewind";
55899
+ if (metroContent?.toLowerCase().includes("withnativewind")) {
55900
+ return "nativewind";
55901
+ }
55902
+ return "unknown";
55840
55903
  });
55841
55904
  const handleInvalidComponentJson = (exists4) => Effect_exports.gen(function* () {
55842
55905
  yield* Effect_exports.logWarning(
55843
55906
  `${exists4 ? "Invalid components.json" : "Missing components.json"}${" (required to continue)"}`
55844
55907
  );
55845
- const agreeToWrite = options3.yes ? true : yield* Prompt_exports.confirm({
55908
+ const agreeToWrite = yield* Prompt_exports.confirm({
55846
55909
  message: `Would you like to ${exists4 ? "update the" : "write a"} components.json file?`,
55847
55910
  label: { confirm: "y", deny: "n" },
55848
55911
  initial: true,
@@ -55868,8 +55931,9 @@ var ProjectConfig = class extends Effect_exports.Service()("ProjectConfig", {
55868
55931
  message: "What is the name of the CSS file and path to it? (e.g. global.css or src/global.css)",
55869
55932
  default: detectedCss
55870
55933
  });
55934
+ const stylingLibrary = yield* getStylingLibrary();
55871
55935
  const hasTailwindConfig = yield* fs2.exists(path8.join(options3.cwd, "tailwind.config.js"));
55872
- const tailwindConfig = options3.yes && hasTailwindConfig ? "tailwind.config.js" : yield* Prompt_exports.text({
55936
+ const tailwindConfig = stylingLibrary === "uniwind" ? "" : options3.yes && hasTailwindConfig ? "tailwind.config.js" : yield* Prompt_exports.text({
55873
55937
  message: "What is the name of the Tailwind config file and path to it? (e.g. tailwind.config.js or src/tailwind.config.js)",
55874
55938
  default: "tailwind.config.js"
55875
55939
  });
@@ -55974,15 +56038,13 @@ var ProjectConfig = class extends Effect_exports.Service()("ProjectConfig", {
55974
56038
  getComponentJson,
55975
56039
  getTsConfig,
55976
56040
  resolvePathFromAlias,
55977
- getStylingLibrary
56041
+ getStylingLibrary,
56042
+ getUniwindDtsPath
55978
56043
  };
55979
56044
  })
55980
56045
  }) {
55981
56046
  };
55982
56047
 
55983
- // src/utils/retry-with.ts
55984
- var retryWith = (fn2, inputs) => inputs.slice(1).reduce((acc, input) => acc.pipe(Effect_exports.orElse(() => fn2(input))), fn2(inputs[0]));
55985
-
55986
56048
  // src/services/required-files-checker.ts
55987
56049
  var RequiredFileError = class extends Data_exports.TaggedError("RequiredFileError") {
55988
56050
  };
@@ -55992,11 +56054,11 @@ var RequiredFilesChecker = class extends Effect_exports.Service()("RequiredFiles
55992
56054
  const path8 = yield* Path_exports.Path;
55993
56055
  const options3 = yield* CliOptions;
55994
56056
  const projectConfig = yield* ProjectConfig;
55995
- const checkFiles = (fileChecks) => Effect_exports.gen(function* () {
56057
+ const checkFiles = (fileChecks, stylingLibrary) => Effect_exports.gen(function* () {
55996
56058
  const missingFiles = [];
55997
56059
  const missingIncludes = [];
55998
56060
  const filesWithContent = yield* Effect_exports.forEach(
55999
- fileChecks,
56061
+ fileChecks.filter((file7) => file7.stylingLibraries.includes(stylingLibrary)),
56000
56062
  (file7) => retryWith(
56001
56063
  (filePath) => Effect_exports.gen(function* () {
56002
56064
  const fileContents = yield* fs2.readFileString(filePath);
@@ -56092,7 +56154,7 @@ var RequiredFilesChecker = class extends Effect_exports.Service()("RequiredFiles
56092
56154
  );
56093
56155
  return [...existingDeprecatedFromLibs, ...existingDeprecatedFromUi];
56094
56156
  });
56095
- const checkCustomFiles = (customFileChecks) => Effect_exports.gen(function* () {
56157
+ const checkCustomFiles = (customFileChecks, stylingLibrary) => Effect_exports.gen(function* () {
56096
56158
  const componentJson = yield* projectConfig.getComponentJson();
56097
56159
  const aliasForLib = componentJson.aliases.lib ?? `${componentJson.aliases.utils}/lib`;
56098
56160
  const missingFiles = [];
@@ -56115,7 +56177,8 @@ var RequiredFilesChecker = class extends Effect_exports.Service()("RequiredFiles
56115
56177
  )
56116
56178
  )
56117
56179
  );
56118
- for (const include of customFileChecks.css.includes) {
56180
+ const cssShouldInclude = stylingLibrary === "uniwind" ? customFileChecks.uniwindCss.includes : customFileChecks.css.includes;
56181
+ for (const include of cssShouldInclude) {
56119
56182
  if (include.content.every((str) => cssContent.includes(str))) {
56120
56183
  yield* Effect_exports.logDebug(
56121
56184
  `${symbols_exports.success} ${customFileChecks.css.name} has ${include.content.join(", ")}`
@@ -56127,48 +56190,51 @@ var RequiredFilesChecker = class extends Effect_exports.Service()("RequiredFiles
56127
56190
  );
56128
56191
  missingIncludes.push({ ...include, fileName: customFileChecks.css.name });
56129
56192
  }
56130
- let stylingLibrary = "nativewind";
56131
56193
  if (componentJson.tsx !== false) {
56132
56194
  const missingTypeFiles = [];
56133
- const nativewindEnvContent = yield* fs2.readFileString(path8.join(options3.cwd, PROJECT_MANIFEST.nativewindEnvFile)).pipe(
56134
- Effect_exports.catchAll(() => {
56135
- missingTypeFiles.push(customFileChecks.nativewindEnv);
56136
- return Effect_exports.succeed(null);
56137
- })
56138
- );
56139
- const uniwindTypesContent = yield* fs2.readFileString(path8.join(options3.cwd, PROJECT_MANIFEST.uniwindTypesFile)).pipe(
56140
- Effect_exports.catchAll(() => {
56141
- missingTypeFiles.push(customFileChecks.uniwindTypes);
56142
- return Effect_exports.succeed(null);
56143
- })
56144
- );
56145
- if (nativewindEnvContent) {
56146
- for (const include of customFileChecks.nativewindEnv.includes) {
56147
- if (include.content.every((str) => nativewindEnvContent.includes(str))) {
56195
+ if (stylingLibrary === "nativewind") {
56196
+ const nativewindEnvContent = yield* fs2.readFileString(path8.join(options3.cwd, PROJECT_MANIFEST.nativewindEnvFile)).pipe(
56197
+ Effect_exports.catchAll(() => {
56198
+ missingTypeFiles.push(customFileChecks.nativewindEnv);
56199
+ return Effect_exports.succeed(null);
56200
+ })
56201
+ );
56202
+ if (nativewindEnvContent) {
56203
+ for (const include of customFileChecks.nativewindEnv.includes) {
56204
+ if (include.content.every((str) => nativewindEnvContent.includes(str))) {
56205
+ yield* Effect_exports.logDebug(
56206
+ `${symbols_exports.success} ${customFileChecks.nativewindEnv.name} has ${include.content.join(", ")}`
56207
+ );
56208
+ continue;
56209
+ }
56148
56210
  yield* Effect_exports.logDebug(
56149
- `${symbols_exports.success} ${customFileChecks.nativewindEnv.name} has ${include.content.join(", ")}`
56211
+ `${symbols_exports.error} ${customFileChecks.nativewindEnv.name} missing ${include.content.join(", ")}`
56150
56212
  );
56151
- continue;
56213
+ missingIncludes.push({ ...include, fileName: customFileChecks.nativewindEnv.name });
56152
56214
  }
56153
- yield* Effect_exports.logDebug(
56154
- `${symbols_exports.error} ${customFileChecks.nativewindEnv.name} missing ${include.content.join(", ")}`
56155
- );
56156
- missingIncludes.push({ ...include, fileName: customFileChecks.nativewindEnv.name });
56157
56215
  }
56158
56216
  }
56159
- if (uniwindTypesContent) {
56160
- stylingLibrary = "uniwind";
56161
- for (const include of customFileChecks.uniwindTypes.includes) {
56162
- if (include.content.every((str) => uniwindTypesContent.includes(str))) {
56217
+ if (stylingLibrary === "uniwind") {
56218
+ const uniwindDtsPath = yield* projectConfig.getUniwindDtsPath();
56219
+ const uniwindTypesContent = uniwindDtsPath ? yield* fs2.readFileString(uniwindDtsPath).pipe(
56220
+ Effect_exports.catchAll(() => {
56221
+ missingTypeFiles.push(customFileChecks.uniwindTypes);
56222
+ return Effect_exports.succeed(null);
56223
+ })
56224
+ ) : null;
56225
+ if (uniwindTypesContent) {
56226
+ for (const include of customFileChecks.uniwindTypes.includes) {
56227
+ if (include.content.every((str) => uniwindTypesContent.includes(str))) {
56228
+ yield* Effect_exports.logDebug(
56229
+ `${symbols_exports.success} ${customFileChecks.uniwindTypes.name} has ${include.content.join(", ")}`
56230
+ );
56231
+ continue;
56232
+ }
56163
56233
  yield* Effect_exports.logDebug(
56164
- `${symbols_exports.success} ${customFileChecks.uniwindTypes.name} has ${include.content.join(", ")}`
56234
+ `${symbols_exports.error} ${customFileChecks.uniwindTypes.name} missing ${include.content.join(", ")}`
56165
56235
  );
56166
- continue;
56236
+ missingIncludes.push({ ...include, fileName: customFileChecks.uniwindTypes.name });
56167
56237
  }
56168
- yield* Effect_exports.logDebug(
56169
- `${symbols_exports.error} ${customFileChecks.uniwindTypes.name} missing ${include.content.join(", ")}`
56170
- );
56171
- missingIncludes.push({ ...include, fileName: customFileChecks.uniwindTypes.name });
56172
56238
  }
56173
56239
  }
56174
56240
  if (missingTypeFiles.length === 2) {
@@ -56264,11 +56330,12 @@ var RequiredFilesChecker = class extends Effect_exports.Service()("RequiredFiles
56264
56330
  customFileChecks,
56265
56331
  deprecatedFromLib,
56266
56332
  deprecatedFromUi,
56267
- fileChecks
56333
+ fileChecks,
56334
+ stylingLibrary
56268
56335
  }) => Effect_exports.gen(function* () {
56269
56336
  const [fileResults, customFileResults, deprecatedFileResults] = yield* Effect_exports.all([
56270
- checkFiles(fileChecks),
56271
- checkCustomFiles(customFileChecks),
56337
+ checkFiles(fileChecks, stylingLibrary),
56338
+ checkCustomFiles(customFileChecks, stylingLibrary),
56272
56339
  checkDeprecatedFiles(deprecatedFromLib, deprecatedFromUi)
56273
56340
  ]);
56274
56341
  return { fileResults, customFileResults, deprecatedFileResults };
@@ -58209,6 +58276,13 @@ var Doctor = class extends Effect_exports.Service()("Doctor", {
58209
58276
  const path8 = yield* Path_exports.Path;
58210
58277
  const requiredFileChecker = yield* RequiredFilesChecker;
58211
58278
  const spinner = yield* Spinner;
58279
+ const projectConfig = yield* ProjectConfig;
58280
+ const stylingLibrary = yield* projectConfig.getStylingLibrary();
58281
+ if (stylingLibrary !== "unknown") {
58282
+ console.log(
58283
+ `\x1B[2m${symbols_exports.info} Styling Library: ${stylingLibrary === "uniwind" ? "Uniwind" : "Nativewind"}\x1B[0m`
58284
+ );
58285
+ }
58212
58286
  const checkRequiredDependencies = ({
58213
58287
  dependencies,
58214
58288
  devDependencies
@@ -58246,18 +58320,20 @@ var Doctor = class extends Effect_exports.Service()("Doctor", {
58246
58320
  }
58247
58321
  return { uninstalledDependencies, uninstalledDevDependencies };
58248
58322
  });
58323
+ const registry = stylingLibrary === "uniwind" ? "uniwind" : "nativewind";
58249
58324
  return {
58250
58325
  run: (options4) => Effect_exports.gen(function* () {
58251
58326
  yield* Effect_exports.logDebug(`Doctor options: ${JSON.stringify(options4, null, 2)}`);
58252
58327
  const { uninstalledDependencies, uninstalledDevDependencies } = yield* checkRequiredDependencies({
58253
- dependencies: PROJECT_MANIFEST.dependencies,
58328
+ dependencies: PROJECT_MANIFEST.dependencies[registry],
58254
58329
  devDependencies: PROJECT_MANIFEST.devDependencies
58255
58330
  });
58256
58331
  const { customFileResults, deprecatedFileResults, fileResults } = yield* requiredFileChecker.run({
58257
58332
  customFileChecks: PROJECT_MANIFEST.customFileChecks,
58258
58333
  deprecatedFromLib: PROJECT_MANIFEST.deprecatedFromLib,
58259
58334
  deprecatedFromUi: PROJECT_MANIFEST.deprecatedFromUi,
58260
- fileChecks: PROJECT_MANIFEST.fileChecks
58335
+ fileChecks: PROJECT_MANIFEST.fileChecks,
58336
+ stylingLibrary: registry
58261
58337
  });
58262
58338
  const result = {
58263
58339
  missingFiles: [...fileResults.missingFiles, ...customFileResults.missingFiles],
@@ -58564,8 +58640,8 @@ var BINARY_RUNNERS = {
58564
58640
  npm: ["npx"],
58565
58641
  bun: ["bunx", "--bun"],
58566
58642
  pnpm: ["pnpm", "dlx"],
58567
- yarn: ["yarn"],
58568
- "yarn@berry": ["yarn", "dlx"]
58643
+ yarn: ["npx"],
58644
+ "yarn@berry": ["npx"]
58569
58645
  };
58570
58646
  var detectPackageManager = (cwd2) => Effect_exports.tryPromise({
58571
58647
  try: () => {
@@ -58626,7 +58702,8 @@ var Add = class extends Effect_exports.Service()("Add", {
58626
58702
  }
58627
58703
  yield* Effect_exports.logDebug(`Selected components: ${components.join(", ")}`);
58628
58704
  const stylingLibrary = yield* projectConfig.getStylingLibrary();
58629
- const baseUrl = process.env.INTERNAL_ENV === "development" ? `http://localhost:3000/local/r/${stylingLibrary}` : `https://reactnativereusables.com/r/${stylingLibrary}`;
58705
+ const registry = stylingLibrary === "uniwind" ? "uniwind" : "nativewind";
58706
+ const baseUrl = process.env.INTERNAL_ENV === "development" ? `http://localhost:3000/local/r/${registry}` : `https://reactnativereusables.com/r/${registry}`;
58630
58707
  const componentUrls = components.map((component) => {
58631
58708
  const lowerCaseComponent = component.toLocaleLowerCase();
58632
58709
  return lowerCaseComponent.startsWith("http") ? lowerCaseComponent : `${baseUrl}/${lowerCaseComponent}.json`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-reusables/cli",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "type": "module",
5
5
  "description": "A CLI for React Native Reusables",
6
6
  "main": "bin.cjs",