Last active
March 9, 2021 20:04
-
-
Save evertonfraga/a6653ad10ac27b62a0805f856168658a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# from 1.1.1 production to 2.0.0 development | |
npm remove @ethereumjs/config-nyc @ethereumjs/config-tsc @ethereumjs/config-prettier @ethereumjs/config-tslint | |
ETHEREUMJS_CONFIG_PATH=/Users/evertonfraga/Projects/Ethereum/ethereumjs-config | |
npm i --save-dev \ | |
@ethereumjs/config-coverage@file:$ETHEREUMJS_CONFIG_PATH/packages/coverage \ | |
@ethereumjs/config-typescript@file:$ETHEREUMJS_CONFIG_PATH/packages/typescript \ | |
@ethereumjs/config-format@file:$ETHEREUMJS_CONFIG_PATH/packages/format \ | |
@ethereumjs/eslint-config-helper@file:$ETHEREUMJS_CONFIG_PATH/packages/lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script helps migrating ethereumjs-config from 1.1.1 to 2.0.0 | |
# 1. Some packages had their names changed, so we'll uninstall and install the new ones. | |
npm remove @ethereumjs/config-nyc @ethereumjs/config-tsc @ethereumjs/config-prettier @ethereumjs/config-tslint | |
npm i --save-dev @ethereumjs/config-coverage \ | |
@ethereumjs/config-typescript \ | |
@ethereumjs/config-format \ | |
@ethereumjs/eslint-config-helper \ | |
# 2. Some scripts had changed name | |
# ethereumjs-config-tsc -> ethereumjs-config-ts-compile | |
sed -E -e 's/ethereumjs\-config\-tsc/ethereumjs-config-ts-compile/' -ibak package.json | |
# ethereumjs-config-build -> ethereumjs-config-ts-build | |
sed -E -e 's/ethereumjs\-config\-build/ethereumjs-config-ts-build/' -ibak package.json | |
# 3. Some scripts are just gone | |
echo "Checking for deprecated scripts. Please remove the pointed scripts below (if any)." | |
# ethereumjs-config-coveralls -> ☠️ | |
grep -EHn "ethereumjs-config-coveralls" package.json | |
# ethereumjs-config-lint -> ☠️ | |
# ethereumjs-config-lint-fix -> ☠️ | |
grep -EHn "ethereumjs-config-lint(-fix)?" package.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment