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 = {
|
const env: NodeJS.ProcessEnv = {
|
||||||
NX_TASK_TARGET_PROJECT: task.target.project,
|
NX_TASK_TARGET_PROJECT: task.target.project,
|
||||||
NX_TASK_HASH: task.hash,
|
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
|
// 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;
|
const t = task.target.target;
|
||||||
return (
|
return (
|
||||||
(!!task.overrides['watch'] && task.overrides['watch'] !== 'false') ||
|
(!!task.overrides['watch'] && task.overrides['watch'] !== 'false') ||
|
||||||
|
t.endsWith(':watch') ||
|
||||||
|
t.endsWith('-watch') ||
|
||||||
t === 'serve' ||
|
t === 'serve' ||
|
||||||
t === 'dev' ||
|
t === 'dev' ||
|
||||||
t === 'start'
|
t === 'start'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user