newcandies 0.1.4 → 0.1.5
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 +4 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -388,20 +388,10 @@ function resolveExtraDeps({ type, template, category, variant }) {
|
|
|
388
388
|
const spec = key ? TEMPLATE_MAP[key] : void 0;
|
|
389
389
|
return spec?.extraDeps ?? [];
|
|
390
390
|
}
|
|
391
|
-
async function installDeps(pm, cwd,
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
"react",
|
|
396
|
-
"react-native",
|
|
397
|
-
"react-native-reanimated",
|
|
398
|
-
"react-native-gesture-handler",
|
|
399
|
-
"react-native-safe-area-context",
|
|
400
|
-
"react-native-screens",
|
|
401
|
-
"tailwindcss",
|
|
402
|
-
"uniwind"
|
|
403
|
-
];
|
|
404
|
-
await execa("npx", ["expo", "install", ...base, ...extraDeps], { cwd, stdio: "inherit" });
|
|
391
|
+
async function installDeps(pm, cwd, _extraDeps) {
|
|
392
|
+
const cmd = pm === "bun" ? "bun" : pm;
|
|
393
|
+
const args = pm === "bun" ? ["install"] : ["install"];
|
|
394
|
+
await execa(cmd, args, { cwd, stdio: "inherit" });
|
|
405
395
|
}
|
|
406
396
|
main().catch((e) => {
|
|
407
397
|
p.log.error(e?.message ?? String(e));
|