Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ms-cloudpack/package-overrides

Package Overview
Dependencies
Maintainers
0
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ms-cloudpack/package-overrides

Provides overrides for package.json to polyfill missing parts, such as exports maps.

  • 0.9.24
  • npm
  • Socket score

Version published
Weekly downloads
729
increased by2.1%
Maintainers
0
Weekly downloads
 
Created
Source

@ms-cloudpack/package-overrides

Provides package.json patches for packages, which allows for providing missing parts such as exports maps. The @ms-cloudpack/package-utilities package uses this package to fill in missing details for common packages.

API

applyOverrides(definition: PackageJson): PackageJson

Returns a new definition which merges the given definition and overrides (if available.)

Adding overrides

Exports maps and other missing data are welcome to be added under the src/packages/{packageName}/overrides.json files. The format is simple:

[
  {
    "version": "<1",     // semver range match,
    "overrides": { ... } // package.json definition merged on top of the definition.
  }
]

Special cases

Sometimes overrides are required but specific to an application, and don't belong in this package. In these cases, you can provide your own per-package overrides in your application's package.json file:

{
  "name": "my-app",
  "version": "1.0.0",

  "cloudpack": {
    "packageOverrides": {
      "react": [
        {
          "version": "^16",
          "overrides": { ... }
        }
      ]
    }
  }
}

FAQs

Package last updated on 29 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc