Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
#!/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
You can’t perform that action at this time.