Create a deployable npm package when using Yarn workspaces
If you use Yarn's workspaces
feature to manage a monorepo, but need to "pack" a single package into a deployable zip that resolves both local and remote dependencies, this might be the tool for you.
$ yarn global add workspace-pack
# In your workspaces root dir
$ workspace-pack my-package-folder
CLI arg | Description |
---|---|
--build-dir |
Specify where the prepared package is created before it is built and zipped. Default: _build |
--output |
Where to store the resulting .zip file. Default: ${package.name}.zip |