newcandies 0.1.17 → 0.1.19

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 +8 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -142,12 +142,7 @@ async function main() {
142
142
  const tmplPkg = await fs.readJSON(templatePkgPath);
143
143
  const isFullPackageJson = tmplPkg.scripts || tmplPkg.main || tmplPkg.version;
144
144
  if (isFullPackageJson) {
145
- const finalPkg = {
146
- ...tmplPkg,
147
- dependencies: { ...basePkg.dependencies, ...tmplPkg.dependencies },
148
- devDependencies: { ...basePkg.devDependencies, ...tmplPkg.devDependencies }
149
- };
150
- await fs.writeJSON(path.join(dest, "package.json"), finalPkg, { spaces: 2 });
145
+ await fs.writeJSON(path.join(dest, "package.json"), tmplPkg, { spaces: 2 });
151
146
  } else {
152
147
  basePkg.dependencies = { ...basePkg.dependencies, ...tmplPkg.dependencies };
153
148
  basePkg.devDependencies = { ...basePkg.devDependencies, ...tmplPkg.devDependencies };
@@ -207,8 +202,13 @@ async function main() {
207
202
  }
208
203
  async function installDeps(pm, cwd) {
209
204
  const cmd = pm === "bun" ? "bun" : pm;
210
- const args = pm === "bun" ? ["install"] : ["install"];
211
- await execa(cmd, args, { cwd, stdio: "inherit" });
205
+ let args = ["install"];
206
+ if (pm === "npm") {
207
+ args.push("--no-audit", "--no-fund", "--loglevel=error");
208
+ } else if (pm === "pnpm") {
209
+ args.push("--no-optional");
210
+ }
211
+ await execa(cmd, args, { cwd, stdio: "pipe" });
212
212
  }
213
213
  main().catch((e) => {
214
214
  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.17",
3
+ "version": "0.1.19",
4
4
  "description": "Scaffold Expo Router + Uniwind React Native apps with layered templates.",
5
5
  "type": "module",
6
6
  "bin": {