UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

20 lines (19 loc) 756 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isLongRunningTargetName = isLongRunningTargetName; /** * Target names the pre-23 `longRunningTask` guard excluded from caching. Shared * between that guard and the deprecated target-name cache fallback so the two * cannot drift apart. * * The copy in `migrations/update-23-2-0/set-cache-on-executor-target-defaults.ts` * deliberately does not use this: a migration's decision has to freeze at the * semantics it shipped with. */ function isLongRunningTargetName(targetName) { return (targetName.endsWith(':watch') || targetName.endsWith('-watch') || targetName === 'serve' || targetName === 'dev' || targetName === 'start'); }