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({
|
|
32
|
-
ncu.run({
|
|
33
|
-
ncu.run({
|
|
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
|