Skip to content

Commit d99a52a

Browse files
authored
Update input.md (#1145)
1 parent 074ea4a commit d99a52a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/input.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ If the subprocess spawns its own subprocesses, they inherit environment variable
3434

3535
```js
3636
// Keep the current process' environment variables, and set `NO_COLOR`
37-
await execa({env: {NO_COLOR: 'true'})`node child.js`;
37+
await execa({env: {NO_COLOR: 'true'}})`node child.js`;
3838
// Discard the current process' environment variables, only pass `NO_COLOR`
39-
await execa({env: {NO_COLOR: 'true'}, extendEnv: false)`node child.js`;
39+
await execa({env: {NO_COLOR: 'true'}, extendEnv: false})`node child.js`;
4040
```
4141

4242
If the subprocess is a Node.js file, environment variables are available using [`process.env`](https://nodejs.org/api/process.html#processenv).

0 commit comments

Comments
 (0)