Skip to content

Commit 80c2eb6

Browse files
feat: add cooldown option to npm-check-updates command
1 parent 8acbf96 commit 80c2eb6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pipeline/workers/process-module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import type { ModuleLogger } from "./module-logger.ts";
1616

1717
const logger = createLogger({ name: "worker" });
1818
const execFileAsync = promisify(execFile);
19+
export const NCU_COOLDOWN = "7d";
1920

2021
interface ModuleInput {
2122
branch?: string;
@@ -159,7 +160,7 @@ function mergeUniqueIssues(target: string[], issues: unknown): void {
159160

160161
async function runNpmCheckUpdates(moduleDir: string): Promise<string[]> {
161162
try {
162-
const { stdout } = await execFileAsync("npx", ["npm-check-updates", "--jsonUpgraded"], {
163+
const { stdout } = await execFileAsync("npx", ["npm-check-updates", "--jsonUpgraded", "--cooldown", NCU_COOLDOWN], {
163164
cwd: moduleDir,
164165
timeout: 60_000
165166
});

0 commit comments

Comments
 (0)