Skip to content

Commit b595dc8

Browse files
committed
Fix nx caching
1 parent 09ecb24 commit b595dc8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

nx.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
33
"namedInputs": {
4+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
45
"sharedGlobals": ["{workspaceRoot}/*.js", "{workspaceRoot}/*.json", "{workspaceRoot}/yarn.lock"]
56
},
67
"targetDefaults": {
@@ -13,18 +14,15 @@
1314
"lint": {
1415
"inputs": ["sharedGlobals"],
1516
"dependsOn": ["^build", "build"],
16-
"outputs": [],
1717
"cache": true
1818
},
1919
"test": {
20-
"inputs": ["sharedGlobals"],
21-
"outputs": [],
20+
"inputs": ["default"],
2221
"cache": true
2322
},
2423
"check:types": {
2524
"inputs": ["sharedGlobals"],
26-
"dependsOn": ["^build"],
27-
"outputs": []
25+
"dependsOn": ["^build"]
2826
},
2927
"build:npm": {
3028
"dependsOn": ["build", "^build"]

packages/integration-tests-next/fixtures/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function readAllFiles(directory: string): Record<string, string> {
3030
let contents = readFileSync(fullPath, "utf-8");
3131
// We replace the current SHA with a placeholder to make snapshots deterministic
3232
contents = contents.replace(CURRENT_SHA, "CURRENT_SHA");
33-
33+
// Normalize Windows stuff in .map paths
3434
if (entry.endsWith(".map")) {
3535
const map = JSON.parse(contents) as SourceMap;
3636
map.sources = map.sources.map((c) => c.replace(/\\/g, "/"));

0 commit comments

Comments
 (0)