newcandies 0.1.17 → 0.1.18
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 +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -207,8 +207,13 @@ async function main() {
|
|
|
207
207
|
}
|
|
208
208
|
async function installDeps(pm, cwd) {
|
|
209
209
|
const cmd = pm === "bun" ? "bun" : pm;
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
let args = ["install"];
|
|
211
|
+
if (pm === "npm") {
|
|
212
|
+
args.push("--no-audit", "--no-fund", "--loglevel=error");
|
|
213
|
+
} else if (pm === "pnpm") {
|
|
214
|
+
args.push("--no-optional");
|
|
215
|
+
}
|
|
216
|
+
await execa(cmd, args, { cwd, stdio: "pipe" });
|
|
212
217
|
}
|
|
213
218
|
main().catch((e) => {
|
|
214
219
|
p.log.error(e?.message ?? String(e));
|