feat(core): add better detection of long running tasks
This commit is contained in:
parent
dc46534fe1
commit
8bf9019ec4
@ -325,6 +325,8 @@ export class ForkedProcessTaskRunner {
|
||||
const env: NodeJS.ProcessEnv = {
|
||||
NX_TASK_TARGET_PROJECT: task.target.project,
|
||||
NX_TASK_HASH: task.hash,
|
||||
// used when Nx is invoked via Lerna
|
||||
LERNA_PACKAGE_NAME: task.target.project,
|
||||
};
|
||||
|
||||
// TODO: remove this once we have a reasonable way to configure it
|
||||
|
||||
@ -298,6 +298,8 @@ function longRunningTask(task: Task) {
|
||||
const t = task.target.target;
|
||||
return (
|
||||
(!!task.overrides['watch'] && task.overrides['watch'] !== 'false') ||
|
||||
t.endsWith(':watch') ||
|
||||
t.endsWith('-watch') ||
|
||||
t === 'serve' ||
|
||||
t === 'dev' ||
|
||||
t === 'start'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user