From 0274028151791a0eed7ba6731b93e0d234d68216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJamesHenry=E2=80=9D?= Date: Sat, 13 Jan 2024 16:03:41 +0400 Subject: [PATCH 1/2] chore: make lint use eslint-plugin outputs as inputs --- nx.json | 7 ++++++- packages/types/package.json | 18 +++++------------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/nx.json b/nx.json index 552b09332128..d85a0833983e 100644 --- a/nx.json +++ b/nx.json @@ -38,11 +38,16 @@ "cache": true }, "lint": { + "dependsOn": ["eslint-plugin:build"], "inputs": [ "default", "{workspaceRoot}/.eslintrc.js", "{workspaceRoot}/yarn.lock", - "{workspaceRoot}/.eslintignore" + "{workspaceRoot}/.eslintignore", + { + "dependentTasksOutputFiles": "**/*.js", + "transitive": false + } ], "cache": true }, diff --git a/packages/types/package.json b/packages/types/package.json index 063eb0e13657..7fa60e72ab48 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -49,25 +49,17 @@ "targets": { "copy-ast-spec": { "dependsOn": [ - { - "target": "build", - "projects": "dependencies" - } + "^build" ], "outputs": [ "{projectRoot}/src/generated" - ] + ], + "cache": true }, "build": { "dependsOn": [ - { - "target": "build", - "projects": "dependencies" - }, - { - "target": "copy-ast-spec", - "projects": "self" - } + "^build", + "copy-ast-spec" ] } } From 7af7eec29f8c82e4ad23c7be8de02226b3c265b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJamesHenry=E2=80=9D?= Date: Sat, 13 Jan 2024 17:31:53 +0400 Subject: [PATCH 2/2] chore: suppress lint error --- packages/integration-tests/tools/integration-test-base.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/integration-tests/tools/integration-test-base.ts b/packages/integration-tests/tools/integration-test-base.ts index eb35212ee775..833ec45182a0 100644 --- a/packages/integration-tests/tools/integration-test-base.ts +++ b/packages/integration-tests/tools/integration-test-base.ts @@ -94,6 +94,8 @@ export function integrationTest(testFilename: string, filesGlob: string): void { if (stderr.length > 0) { console.error(stderr); } + // childProcess.ExecFileException is an extension of Error + // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors reject(err); } else { resolve();