Skip to content

Commit c9c41fd

Browse files
jsorefwraithgar
andauthored
docs: fix spelling: that
Co-authored-by: Gar <wraithgar@github.com>
1 parent 1274e25 commit c9c41fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/lib/content/configuring-npm/package-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ The `devEngines` field aids engineers working on a codebase to all be using the
11491149
11501150
You can specify a `devEngines` property in your `package.json` which will run before `install`, `ci`, and `run` commands.
11511151
1152-
> Note: `engines` and `devEngines` differ in object shape. They also function very differently. `engines` is designed to alert the user when a dependency uses a different npm or node version that the project it's being used in, whereas `devEngines` is used to alert people interacting with the source code of a project.
1152+
> Note: `engines` and `devEngines` differ in object shape. They also function very differently. `engines` is designed to alert the user when a dependency uses a different npm or node version than the project it's being used in, whereas `devEngines` is used to alert people interacting with the source code of a project.
11531153

11541154
The supported keys under the `devEngines` property are `cpu`, `os`, `libc`, `runtime`, and `packageManager`. Each property can be an object or an array of objects. Objects must contain `name`, and optionally can specify `version`, and `onFail`. `onFail` can be `warn`, `error`, or `ignore`, and if left undefined is of the same value as `error`. `npm` will assume that you're running with `node`.
11551155
Here's an example of a project that will fail if the environment is not `node` and `npm`. If you set `runtime.name` or `packageManager.name` to any other string, it will fail within the npm CLI.

0 commit comments

Comments
 (0)