node-power-user 1.0.20 → 1.0.21

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.
@@ -26,11 +26,16 @@ module.exports = async function (options) {
26
26
  // Log start
27
27
  logger.log(`Checking packages for ${logger.format.bold(projectJson.name || 'Unknown Project')}...`);
28
28
 
29
- // Run ncu for patch, minor, and latest
29
+ // Run ncu for patch, minor, and latest (include peer dependencies)
30
+ const ncuOptions = {
31
+ packageFile: packageJsonPath,
32
+ dep: 'prod,dev,peer,optional',
33
+ };
34
+
30
35
  const [patchUpgrades, minorUpgrades, latestUpgrades] = await Promise.all([
31
- ncu.run({ packageFile: packageJsonPath, target: 'patch' }),
32
- ncu.run({ packageFile: packageJsonPath, target: 'minor' }),
33
- ncu.run({ packageFile: packageJsonPath, target: 'latest' }),
36
+ ncu.run({ ...ncuOptions, target: 'patch' }),
37
+ ncu.run({ ...ncuOptions, target: 'minor' }),
38
+ ncu.run({ ...ncuOptions, target: 'latest' }),
34
39
  ]);
35
40
 
36
41
  // Get all dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-power-user",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Easy tools for every Node.js developer!",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {