workspace-pack
Create a deployable npm package when using Yarn workspaces
Details
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.
Install
$ yarn global add @bubuntux/workspace-lambda-pack
Usage
# In your workspaces root dir
$ workspace-pack my-package-folder
or
# In your workspace dir
$ workspace-pack --root-dir=../../
Options
CLI arg | Description |
---|---|
--root-dir |
Specify where the root package with the workspaces is located (useful when executing from the workspace) |
--build-dir |
Specify where the prepared package is created before it is built and zipped. Default: _build
|
--out-dir |
Directory of the resulting .zip file. Default: dir
|
--zip-name |
Name of the resulting .zip file. Default: ${package.name}.zip
|