# JavaScript build tools This project provides utilities to help build the `crytolib-js` modules. In order to use them, this dependency must be copied to the target folder of the given `cryptolib-js` module, at an appropriate time, for the tools to be available when they are required. ## `prepare-dist.js` The `prepare-dist.js` file is a pre-publish script that takes care of organizing the source code of the `cryptolib-js` modules, so that only that which is required is published to the `npm` registry. It also updates the published `npm` package version number to match that of the module's POM file. If the `npm` publishing type is `release`, the string `-SNAPSHOT` will be removed from the version number. If the `npm` publishing type is `snapshot`, the string `-SNAPSHOT` will be replaced by the string `-patch.