Skip to content

Commit 8be252e

Browse files
authored
build: Backport nx cache config fixes (#11742)
Just fixes this in v7 to, as it makes development a bit easier.
1 parent d7cf686 commit 8be252e

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

nx.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"namedInputs": {
1212
"default": ["{projectRoot}/**/*", "sharedGlobals"],
13-
"sharedGlobals": ["{workspaceRoot}/*.js", "{workspaceRoot}/*.json"],
13+
"sharedGlobals": ["{workspaceRoot}/*.js", "{workspaceRoot}/*.json", "{workspaceRoot}/yarn.lock"],
1414
"production": ["default", "!{projectRoot}/test/**/*", "!{projectRoot}/**/*.md", "!{projectRoot}/*.tgz"]
1515
},
1616
"targetDefaults": {
@@ -27,12 +27,22 @@
2727
"build:transpile": {
2828
"inputs": ["production", "^production"],
2929
"dependsOn": ["^build:transpile"],
30-
"outputs": ["{projectRoot}/build"]
30+
"outputs": [
31+
"{projectRoot}/build/esm",
32+
"{projectRoot}/build/cjs",
33+
"{projectRoot}/build/npm/esm",
34+
"{projectRoot}/build/npm/cjs"
35+
]
3136
},
3237
"build:types": {
3338
"inputs": ["production", "^production"],
3439
"dependsOn": ["^build:types"],
35-
"outputs": ["{projectRoot}/build/**/*.d.ts"]
40+
"outputs": [
41+
"{projectRoot}/build/types",
42+
"{projectRoot}/build/types-ts3.8",
43+
"{projectRoot}/build/npm/types",
44+
"{projectRoot}/build/npm/types-ts3.8"
45+
]
3646
},
3747
"lint": {
3848
"inputs": ["default"],

0 commit comments

Comments
 (0)