runtimeCacheInputs

The runtimeCacheInputs property was used as a way to add extra inputs to the Nx cache, like the version of node on that particular machine.

runtimeCacheInputs were set as follows:

1{ 2 "tasksRunnerOptions": { 3 "default": { 4 "runner": "nx/tasks-runners/default", 5 "options": { 6 "cacheableOperations": ["build", "lint", "test", "e2e"], 7 "runtimeCacheInputs": ["node -v"] 8 } 9 } 10 } 11} 12

Instead of specifying the runtime inputs in tasksRunnerOptions, in Nx 14.4 you can include them as runtime inputs in the standard inputs and namedInputs area of your project configuration or nx.json.

The new style looks like this:

1{ 2 "targets": { 3 "build": { 4 "inputs": ["^build", { "runtime": "node -v" }] 5 // ... 6 } 7 } 8} 9