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.
Files changed (2) hide show
  1. package/dist/index.js +4 -14
  2. 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, extraDeps) {
392
- const base = [
393
- "expo",
394
- "expo-router",
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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newcandies",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Scaffold Expo Router + Uniwind React Native apps with layered templates.",
5
5
  "type": "module",
6
6
  "bin": {