Skip to content

Commit 8d72bc9

Browse files
Max Blackowlstronaut
authored andcommitted
docs: add os, cpu, and funding fields to package-lock.json
1 parent f963223 commit 8d72bc9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ Package descriptors have the following fields:
119119

120120
* bin, license, engines, dependencies, optionalDependencies: fields from `package.json`
121121

122+
* os: An array of operating systems this package is compatible with, as specified in `package.json`. This field is included when the package specifies OS restrictions.
123+
124+
* cpu: An array of CPU architectures this package is compatible with, as specified in `package.json`. This field is included when the package specifies CPU restrictions.
125+
126+
* funding: Funding information for the package, as specified in `package.json`. This field contains details about how to support the package maintainers.
127+
122128
#### dependencies
123129

124130
Legacy data for supporting versions of npm that use `lockfileVersion: 1`.

0 commit comments

Comments
 (0)