@react-native-reusables/cli 0.5.2 → 0.5.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.
- package/bin.cjs +11 -6
- package/package.json +1 -1
package/bin.cjs
CHANGED
|
@@ -55397,7 +55397,7 @@ var FILE_CHECKS = [
|
|
|
55397
55397
|
},
|
|
55398
55398
|
{
|
|
55399
55399
|
content: ["inlineRem", "16"],
|
|
55400
|
-
message: "The inlineRem is missing",
|
|
55400
|
+
message: "The 'inlineRem: 16' is missing",
|
|
55401
55401
|
docs: "https://reactnativereusables.com/docs/installation/manual#update-the-default-inlined-rem-value"
|
|
55402
55402
|
}
|
|
55403
55403
|
]
|
|
@@ -58446,8 +58446,14 @@ function isMetadataYarnClassic(metadataPath) {
|
|
|
58446
58446
|
}
|
|
58447
58447
|
|
|
58448
58448
|
// src/services/package-manager.ts
|
|
58449
|
-
var PACKAGE_MANAGERS = ["npm", "bun", "pnpm", "yarn"];
|
|
58450
|
-
var BINARY_RUNNERS = {
|
|
58449
|
+
var PACKAGE_MANAGERS = ["npm", "bun", "pnpm", "yarn", "yarn@berry"];
|
|
58450
|
+
var BINARY_RUNNERS = {
|
|
58451
|
+
npm: ["npx", "--yes"],
|
|
58452
|
+
bun: ["bunx", "--bun", "--yes"],
|
|
58453
|
+
pnpm: ["pnpm", "dlx", "--yes"],
|
|
58454
|
+
yarn: ["yarn", "--yes"],
|
|
58455
|
+
"yarn@berry": ["yarn", "dlx"]
|
|
58456
|
+
};
|
|
58451
58457
|
var detectPackageManager = (cwd2) => Effect_exports.tryPromise({
|
|
58452
58458
|
try: () => {
|
|
58453
58459
|
return detect({
|
|
@@ -58462,7 +58468,7 @@ var getPackageManager = (cwd2) => Effect_exports.gen(function* () {
|
|
|
58462
58468
|
if (!pm) {
|
|
58463
58469
|
return "npm";
|
|
58464
58470
|
}
|
|
58465
|
-
const name = PACKAGE_MANAGERS.find((name2) => pm.
|
|
58471
|
+
const name = PACKAGE_MANAGERS.find((name2) => pm.agent.startsWith(name2) || pm.name.startsWith(name2)) ?? "npm";
|
|
58466
58472
|
return name;
|
|
58467
58473
|
});
|
|
58468
58474
|
var getBinaryRunner = (cwd2) => Effect_exports.gen(function* () {
|
|
@@ -58514,8 +58520,7 @@ var Add = class extends Effect_exports.Service()("Add", {
|
|
|
58514
58520
|
const shadcnOptions = toShadcnOptions(options3);
|
|
58515
58521
|
const binaryRunner = yield* packageManager.getBinaryRunner(options3.cwd);
|
|
58516
58522
|
const commandArgs = [
|
|
58517
|
-
binaryRunner
|
|
58518
|
-
"--yes",
|
|
58523
|
+
...binaryRunner.slice(1),
|
|
58519
58524
|
"shadcn@latest",
|
|
58520
58525
|
"add",
|
|
58521
58526
|
...shadcnOptions,
|