Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .ncurc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { defineConfig } = require("npm-check-updates");
*
* This configuration file is used by the `ncu` command to check for package updates.
* It enables interactive mode, workspace support, and root package updates for
* major and minor versions that have been released at least 1 day ago.
* major and minor versions that have been released at least 7 hours ago.
*
*/
module.exports = defineConfig({
Expand All @@ -27,15 +27,17 @@ module.exports = defineConfig({
},

/**
* Set cooldown to 1 day but skip it for our packages.
* Mirror pnpm-workspace.yaml's `minimumReleaseAge: 420` (7 hours), skipping it
* for our own packages. Keep this a duration STRING: ncu reads a bare number
* as days, so `1` here would silently gate at 24h instead of 7h.
* @param packageName The name of the dependency.
* @returns Cooldown days restriction for given package.
* @returns Cooldown restriction for given package.
*/
cooldown: (packageName) => {
return packageName.startsWith("@versini") ||
packageName.startsWith("@node-cli") ||
packageName.startsWith("@sassysaint")
? 0
: 1;
: "7h";
},
});