Skip to content

Commit

Permalink
Define inputs for nx (#2603)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinVdBroeck authored May 7, 2024
1 parent c76e6e9 commit ce335a0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ npm-debug.log*
node_modules

.vscode

.nx/
27 changes: 25 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,39 @@
}
}
},
"namedInputs": {
"default": [
"{workspaceRoot}/pnpm-lock.yaml",
"{workspaceRoot}/tsconfig.shared.json",
"{projectRoot}/package.json",
"{projectRoot}/tsconfig.json"
]
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": [
"default",
"{workspaceRoot}/tsup.config.ts",
"{projectRoot}/index.{js,ts}",
"{projectRoot}/index.d.ts",
"{projectRoot}/lib/**",
"{projectRoot}/rollup.config.cjs"
],
"outputs": ["{projectRoot}/dist"]
},
"test": {
"dependsOn": ["^test"]
"inputs": [
"default",
"{projectRoot}/test.ts",
"{projectRoot}/test/**",
"{projectRoot}/types.ts"
],
"dependsOn": ["build"]
},
"last-checks": {
"dependsOn": ["^last-checks"]
"inputs": ["default", "{projectRoot}/test.ts"],
"dependsOn": ["build", "^last-checks"]
}
}
}

0 comments on commit ce335a0

Please sign in to comment.