diff --git a/docs/shared/reference/project-configuration.md b/docs/shared/reference/project-configuration.md index e36c378e22902..1a9a003c93ef0 100644 --- a/docs/shared/reference/project-configuration.md +++ b/docs/shared/reference/project-configuration.md @@ -144,19 +144,41 @@ The `inputs` and `namedInputs` are parsed with the following rules: #### Runtime Inputs -Examples: +Nx will execute the command specified by `runtime` inputs and use the result when calculating hashes. + +Example: -- `{runtime: "node -v"}` +``` +{ + "targets": { + "build": { + "executor" : "@nx/js:tsc", + "inputs" : [{"runtime": "node -v"}] + } + } +} +``` -Note the result value is hashed, so it is never displayed. +Note: the result is hashed, so it is never displayed. #### Env Variables -Examples: +Nx will read the environment variable specified by `env` inputs and use it when calculating hashes. + +Example: -- `{env: "MY_ENV_VAR"}` +``` +{ + "targets": { + "build": { + "executor" : "@nx/js:tsc", + "inputs" : [{"env": "DEMO_VAR"}] + } + } +} +``` -Note the result value is hashed, so it is never displayed. +Note: the value is hashed, so it is never displayed. #### External Dependencies