Skip to content

Commit

Permalink
FABN-1040 add missing fabric client dependencies
Browse files Browse the repository at this point in the history
Add fabric-client and fabric-ca-client dependencies
to fabric-network’s package.json

Change-Id: I5492362a123a5f7f43feeac1a17c57155bac9637
Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>
  • Loading branch information
andrew-coleman committed Dec 3, 2018
1 parent 765b159 commit c89e34a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fabric-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
},
"types": "./types/index.d.ts",
"dependencies": {
"fabric-client": "file:../fabric-client",
"fabric-ca-client": "file:../fabric-ca-client",
"nano": "^6.4.4",
"rimraf": "^2.6.2",
"uuid": "^3.2.1"
Expand Down
6 changes: 5 additions & 1 deletion scripts/Jenkins_Scripts/Publish_NPM_Modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ npmPublish() {
export UNSTABLE_INCREMENT_VERSION=$RELEASE_VERSION.$UNSTABLE_INCREMENT
echo "======> UNSTABLE_INCREMENT_VERSION:" $UNSTABLE_INCREMENT_VERSION

if [ "$1" = "fabric-network" ]; then
sed -i 's/\(.*\"fabric-client\"\: \"\)\(.*\)/\1'$CURRENT_TAG\"\,'/' package.json
sed -i 's/\(.*\"fabric-ca-client\"\: \"\)\(.*\)/\1'$CURRENT_TAG\"\,'/' package.json
fi

# Replace existing version with $UNSTABLE_INCREMENT_VERSION
sed -i 's/\(.*\"version\"\: \"\)\(.*\)/\1'$UNSTABLE_INCREMENT_VERSION\"\,'/' package.json
Expand Down Expand Up @@ -78,7 +82,7 @@ cd $WORKSPACE/gopath/src/github.com/hyperledger/fabric-sdk-node
# Set NPM_TOKEN from CI configuration
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN

# Add or delete modules from here..
# Add or delete modules from here..
for modules in fabric-network fabric-common fabric-ca-client fabric-client; do
if [ -d "$modules" ]; then
echo -e "\033[32m Publishing $modules" "\033[0m"
Expand Down

0 comments on commit c89e34a

Please sign in to comment.