Skip to content

@pumpkin-plugins/build API / update-check / isBuildUpdateCheckAllowed

Function: isBuildUpdateCheckAllowed() ​

isBuildUpdateCheckAllowed(args, environment, isTTY): boolean

Defined in: tools/build/src/update-check.ts:26

Reports whether an executable build invocation should check npm for an update.

Parameters ​

args ​

readonly string[]

Arguments passed to the build executable.

environment ​

ProcessEnv

Environment used to identify CI, development mode, and opt-out.

isTTY ​

boolean

Whether the build command writes to an interactive terminal.

Returns ​

boolean

true when the invocation is eligible for a background update lookup.

pumpkin-plugins documentation