Skip to content

Commit

Permalink
build: Backport nx cache config fixes (#11742)
Browse files Browse the repository at this point in the history
Just fixes this in v7 to, as it makes development a bit easier.
  • Loading branch information
mydea committed Apr 23, 2024
1 parent d7cf686 commit 8be252e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": ["{workspaceRoot}/*.js", "{workspaceRoot}/*.json"],
"sharedGlobals": ["{workspaceRoot}/*.js", "{workspaceRoot}/*.json", "{workspaceRoot}/yarn.lock"],
"production": ["default", "!{projectRoot}/test/**/*", "!{projectRoot}/**/*.md", "!{projectRoot}/*.tgz"]
},
"targetDefaults": {
Expand All @@ -27,12 +27,22 @@
"build:transpile": {
"inputs": ["production", "^production"],
"dependsOn": ["^build:transpile"],
"outputs": ["{projectRoot}/build"]
"outputs": [
"{projectRoot}/build/esm",
"{projectRoot}/build/cjs",
"{projectRoot}/build/npm/esm",
"{projectRoot}/build/npm/cjs"
]
},
"build:types": {
"inputs": ["production", "^production"],
"dependsOn": ["^build:types"],
"outputs": ["{projectRoot}/build/**/*.d.ts"]
"outputs": [
"{projectRoot}/build/types",
"{projectRoot}/build/types-ts3.8",
"{projectRoot}/build/npm/types",
"{projectRoot}/build/npm/types-ts3.8"
]
},
"lint": {
"inputs": ["default"],
Expand Down

0 comments on commit 8be252e

Please sign in to comment.