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

defiantly-patch-aws-cdk-lib

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

defiantly-patch-aws-cdk-lib

This package patches the [aws-cdk-lib](https://www.npmjs.com/package/aws-cdk-lib)'s `package.json#exports` to add `core` as an individual export so that it can be imported without importing all libraries in the AWS CDK (which is crazy slow and resource in

  • 0.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Defiantly patch aws-cdk-lib 😈

This package patches the aws-cdk-lib's package.json#exports to add core as an individual export so that it can be imported without importing all libraries in the AWS CDK (which is crazy slow and resource intensive).

How

It runs a postinstall script that discovers the installed aws-cdk-lib and hot-fixes its exports.

"exports": {
  // ..
  "./core": "./core/index.js"
}

Installation

Just add this package as a dependency alongside the aws-cdk-lib and install.

{
  "dependencies": {
    "aws-cdk-lib": "*",
    "defiantly-patch-aws-cdk-lib": "*"
  }
}

Install using whatever your package manager's command is:

npm i
yarn
pnpm i

Why

This is exceptionally bad practice and naughty 🙈, but AWS has rejected multiple one-line PRs attempting to contribute this fix to the core library with dogmatic reasoning. We love the capability provided to us by the CDK but have been disappointed with the lack of support from the AWS team in improving performance. This protest can hopefully catalyze the change we need.

Rejected PRs:

FAQs

Package last updated on 23 Jan 2023

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