diff --git a/js/npm/etherscan/README.md b/js/npm/etherscan/README.md index 39c86d62b..8130db3c6 100644 --- a/js/npm/etherscan/README.md +++ b/js/npm/etherscan/README.md @@ -1,4 +1,4 @@ -# @parity/Etherscan +# @parity/etherscan A thin, lightweight promise wrapper for the api.etherscan.io/apis service, exposing a common endpoint for use in JavaScript applications. @@ -9,13 +9,13 @@ A thin, lightweight promise wrapper for the api.etherscan.io/apis service, expos installation - ``` -npm install --save @parity/Etherscan +npm install --save @parity/etherscan ``` Usage - ``` -const etherscan = require('@parity/Etherscan'); +const etherscan = require('@parity/etherscan'); // api calls goes here ``` diff --git a/js/npm/etherscan/package.json b/js/npm/etherscan/package.json index 80b1a38f8..0cfdf83e1 100644 --- a/js/npm/etherscan/package.json +++ b/js/npm/etherscan/package.json @@ -1,5 +1,5 @@ { - "name": "@parity/Etherscan", + "name": "@parity/etherscan", "description": "The Parity Promise-based library for interfacing with Etherscan over HTTP", "version": "0.0.0", "main": "library.js", diff --git a/js/npm/shapeshift/README.md b/js/npm/shapeshift/README.md index e12b7b7ef..0544b6f99 100644 --- a/js/npm/shapeshift/README.md +++ b/js/npm/shapeshift/README.md @@ -1,4 +1,4 @@ -# @parity/ShapeShift +# @parity/shapeshift A thin ES6 promise wrapper around the shapeshift.io APIs as documented at https://shapeshift.io/api @@ -9,14 +9,14 @@ A thin ES6 promise wrapper around the shapeshift.io APIs as documented at https: installation - ``` -npm install --save @parity/ShapeShift +npm install --save @parity/shapeshift ``` Usage - ``` const APIKEY = 'private affiliate key or undefined'; -const shapeshift = require('@parity/ShapeShift')(APIKEY); +const shapeshift = require('@parity/shapeshift')(APIKEY); // api calls goes here ``` diff --git a/js/npm/shapeshift/package.json b/js/npm/shapeshift/package.json index c163b0e5f..b0a2c460a 100644 --- a/js/npm/shapeshift/package.json +++ b/js/npm/shapeshift/package.json @@ -1,5 +1,5 @@ { - "name": "@parity/ShapeShift", + "name": "@parity/shapeshift", "description": "The Parity Promise-based library for interfacing with ShapeShift over HTTP", "version": "0.0.0", "main": "library.js", diff --git a/js/scripts/dryrun-npm.sh b/js/scripts/dryrun-npm.sh index 21e00f157..6d9412f62 100755 --- a/js/scripts/dryrun-npm.sh +++ b/js/scripts/dryrun-npm.sh @@ -2,7 +2,7 @@ set -e # variables -PACKAGES=( "Parity" "Etherscan" "ShapeShift" ) +PACKAGES=( "parity" "etherscan" "shapeshift" ) # change into the build directory BASEDIR=`dirname $0` @@ -16,7 +16,7 @@ for PACKAGE in ${PACKAGES[@]} do echo "*** Building $PACKAGE" LIBRARY=$PACKAGE npm run ci:build:npm - DIRECTORY=.npmjs/$(echo $PACKAGE | tr '[:upper:]' '[:lower:]') + DIRECTORY=.npmjs/$PACKAGE cd $DIRECTORY echo "*** Executing $PACKAGE tests from $DIRECTORY" diff --git a/js/scripts/release.sh b/js/scripts/release.sh index e120aaf95..88422df0a 100755 --- a/js/scripts/release.sh +++ b/js/scripts/release.sh @@ -3,7 +3,7 @@ set -e # variables UTCDATE=`date -u "+%Y%m%d-%H%M%S"` -PACKAGES=( "Parity" "Etherscan" "ShapeShift" ) +PACKAGES=( "parity" "etherscan" "shapeshift" ) BRANCH=$CI_BUILD_REF_NAME GIT_JS_PRECOMPILED="https://${GITHUB_JS_PRECOMPILED}:@github.com/ethcore/js-precompiled.git" GIT_PARITY="https://${GITHUB_JS_PRECOMPILED}:@github.com/ethcore/parity.git" @@ -71,7 +71,7 @@ if [ "$BRANCH" == "master" ]; then do echo "*** Building $PACKAGE" LIBRARY=$PACKAGE npm run ci:build:npm - DIRECTORY=.npmjs/$(echo $PACKAGE | tr '[:upper:]' '[:lower:]') + DIRECTORY=.npmjs/$PACKAGE echo "*** Publishing $PACKAGE from $DIRECTORY" cd $DIRECTORY