Skip to content

Commit 0b2e377

Browse files
committed
CLI documentation update from CI
1 parent 6e539fb commit 0b2e377

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli-cache.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"v8": "aa8fff11cdab94fff1a2160ee5241f5f4632e96b",
33
"v9": "64763a341e7aa5b456e696f956759bf9b3440dc1",
4-
"v10": "e510f14bf6a20d67e7b37c3f25ff271d9f7a0da5",
5-
"v11": "bb056c85059cfb39514614e31abba09f20ac1612"
4+
"v10": "78dc0574cad0295fb49a96032871e17ea6c2cffc",
5+
"v11": "4673e9c165b39563e16409f3b1ca06fdc32e7d44"
66
}

content/cli/v11/configuring-npm/package-json.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ The `devEngines` field aids engineers working on a codebase to all be using the
928928
929929
You can specify a `devEngines` property in your `package.json` which will run before `install`, `ci`, and `run` commands.
930930
931-
> 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 differening 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.
931+
> 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 differening 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.
932932

933933
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`. 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.
934934

0 commit comments

Comments
 (0)