Skip to main content

build-workspace

Like build, but when ran in the monorepo root, will build all packages in the workspace, as denoted by the workspaces field in package.json.

package.json
{
"scripts": {
"build": "packemon build-workspace --addEngines"
}
}

Options

Supports all the same command line options as build, with the addition of:

  • --filter - Filter packages to build based on their name in package.json.
  • --formats, -f - Only generate specific output formats.
  • --platforms, -p - Only target specific platforms.