Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using ncu within a script (top level function with `"type": "module"`) with always install option, it doesn't actually run the install command after upgrading `package.json` ``` const upgraded = await ncu.run({ upgrade: true, install: "always", }); console.log("upgraded", upgraded); // { "mypackage": "^2.0.0", ... } process.exit(0); ``` I debugged through `node_modules/npm-check-updates/build/index.js`, I can see the function within `forEach` (https://github.com/raineorshine/npm-check-updates/blob/b7c3106c9b1ba96608165f808dcd726ba76286bc/src/index.ts#L148) is getting called. So I suspect the whole `install` function is not properly getting awaited. The part I don't quite understand is why running directly through `npx` works fine, maybe due to the `cli` scripts are wrapped in iife and vite bundled it in a smarter way? MacOS, node - v20.13.1
- Loading branch information