[go: nahoru, domu]

Skip to content

Commit

Permalink
chore: make lint job use eslint-plugin outputs as inputs (#8245)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Jan 13, 2024
1 parent c7b0b6c commit b795153
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
7 changes: 6 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
2 changes: 2 additions & 0 deletions packages/integration-tests/tools/integration-test-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
18 changes: 5 additions & 13 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
Expand Down

0 comments on commit b795153

Please sign in to comment.