entropyxyz / sdk

Official JavaScript SDK for Entropy blockchain.
GNU Affero General Public License v3.0
7 stars 0 forks source link

calm polkadot the heck down #327

Closed mixmix closed 1 month ago

mixmix commented 2 months ago

This is a demo to show how we can tune upstream packages in a semi-sane way!

1. mess some stuff up!

vim node_modules/@polkadot/util/logger.js

2. document your mess!

npx patch-package @polkadot/util

patch-package 8.0.0
• Creating temporary folder
• Installing @polkadot/util@12.6.2 with yarn
• Diffing your files with clean files
✔ Created file patches/@polkadot+util+12.6.2.patch

💡 @polkadot/util is on GitHub! To draft an issue based on your patch run

    yarn patch-package @polkadot/util --create-issue

DONE

mixmix commented 2 months ago

oh and

3. everyone gets the patch on install

yarn

yarn install v1.22.22
[1/4] Resolving packages...
success Already up-to-date.
$ husky && patch-package
patch-package 8.0.0
Applying patches...
@polkadot/util@12.6.2 ✔
mixmix commented 1 month ago

Ready to go @frankiebee

This is great cos the CLI needs those logs to quiet the heck down