From 2a5d6b524dde05644648d8a4e6e5adef6ff583b6 Mon Sep 17 00:00:00 2001 From: Max Black Date: Wed, 19 Nov 2025 14:49:30 -0800 Subject: [PATCH] docs: add os, cpu, and funding fields to package-lock.json --- docs/lib/content/configuring-npm/package-lock-json.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/lib/content/configuring-npm/package-lock-json.md b/docs/lib/content/configuring-npm/package-lock-json.md index 579dd49807812..813db23fd370b 100644 --- a/docs/lib/content/configuring-npm/package-lock-json.md +++ b/docs/lib/content/configuring-npm/package-lock-json.md @@ -119,6 +119,12 @@ Package descriptors have the following fields: * bin, license, engines, dependencies, optionalDependencies: fields from `package.json` +* 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. + +* 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. + +* funding: Funding information for the package, as specified in `package.json`. This field contains details about how to support the package maintainers. + #### dependencies Legacy data for supporting versions of npm that use `lockfileVersion: 1`.