From 106a02154dd0eacd13dc9ca134a1250402b4a92f Mon Sep 17 00:00:00 2001 From: curldapps2 <98121938+curldapps2@users.noreply.github.com> Date: Tue, 25 Jan 2022 13:24:52 -0500 Subject: [PATCH] Update deploy_chaincode.md `package` command docs Define the default behavior of `peer lifecycle chaincode package`, which does *not* include node_modules in the resulting tar.gz package for chaincode. The existing step of `npm install` and quote "If the command is successful, the JavaScript packages will be installed inside a `node_modules` folder. Now that we that have our dependencies, we can create the chaincode package." would lead a reader to believe that `node_modules` are included when they are not. Also added more detail about what chaincode services allow `node_modules` when packaged manually. --- docs/source/deploy_chaincode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/deploy_chaincode.md b/docs/source/deploy_chaincode.md index 81e5cf1c768..7f5573b8220 100644 --- a/docs/source/deploy_chaincode.md +++ b/docs/source/deploy_chaincode.md @@ -247,7 +247,7 @@ To install the smart contract dependencies, run the following command from the ` npm install ``` -If the command is successful, the JavaScript packages will be installed inside a `node_modules` folder. +If the command is successful, the JavaScript packages will be installed inside a `node_modules` folder. Note that the `peer lifecycle chaincode package` command does not package your `node_modules` folder in the chaincode package. If you wish to bundle `node modules` in your chaincode package, you can do so manually. However, this will require you to use the [External Chaincode Launcher](https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_launcher.html) or [Chaincode as a Service](https://hyperledger-fabric.readthedocs.io/en/release-2.2/cc_service.html) functionality. Now that we that have our dependencies, we can create the chaincode package. Navigate back to our working directory in the `test-network` folder so that we can package the chaincode together with our other network artifacts.