Skip to content

Commit

Permalink
Update nx config for tests
Browse files Browse the repository at this point in the history
Tests only require that the dependencies have been built, not the package itself
  • Loading branch information
mfedderly committed Aug 7, 2024
1 parent e231564 commit e488e90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"{workspaceRoot}/tsconfig.shared.json",
"{projectRoot}/package.json",
"{projectRoot}/tsconfig.json"
]
],
"sources": ["{projectRoot}/index.{js,ts}", "{projectRoot}/lib/**"]
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": [
"default",
"sources",
"{workspaceRoot}/tsup.config.ts",
"{projectRoot}/index.{js,ts}",
"{projectRoot}/index.d.ts",
"{projectRoot}/lib/**",
"{projectRoot}/rollup.config.cjs"
],
"outputs": ["{projectRoot}/dist"],
Expand All @@ -24,11 +24,12 @@
"test": {
"inputs": [
"default",
"sources",
"{projectRoot}/test.ts",
"{projectRoot}/test/**",
"{projectRoot}/types.ts"
],
"dependsOn": ["build"],
"dependsOn": ["^build"],
"cache": true
},
"last-checks": {
Expand Down

0 comments on commit e488e90

Please sign in to comment.