Registry / devops / monopack-process

monopack-process

JSON →
library0.2.6jsnpmunverified

Monopack is a JavaScript bundler designed for Node.js monorepo applications, currently in alpha (v0.2.6). It produces a single deterministic deliverable bundle (main.js), along with a filtered package.json, yarn.lock, and node_modules containing only used third-party dependencies. It targets developers using monorepos (e.g., Lerna) and CI/CD pipelines. Unlike generic bundlers like Webpack, Monopack specifically focuses on Node.js environments and deterministic builds. Release cadence is low; the project appears to be in early alpha with no recent major updates.

npm install monopack-process
INSTALL
IMPORT
SIG · MONOPACK-PROCESS
M
monopack-process
devopsjavascriptv0.2.6
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

monopack (CLI)
monopack build main
node monopack build main
Monopack is a CLI tool; there is no programmatic API. Use global or local installation as described.
monopack (require)
const monopack = require('monopack');
import monopack from 'monopack';
The package may not expose a default export; avoid ESM import if using CommonJS.
build command
monopack build main.js
monopack build main
Provide the entry file with extension (main.js) to avoid ambiguous resolution.

Global installation, building a monorepo app entry point to a dist directory, and running it.

// Install globally: npm install -g monopack mkdir my-monorepo-app && cd my-monorepo-app # Assumes a monorepo with a main.js entry monopack build main.js --out-dir ./dist # Output: dist/main.js, dist/package.json, dist/yarn.lock, dist/node_modules # To run immediately: monopack run main.js
monopack --version
Debug
Known issues
gotchaAlpha quality: the tool is in early alpha; may have bugs, breaking changes, or incomplete features.
fix
Use at your own risk; pin to a specific version and test thoroughly.
affects: >=0.0.0
gotchaYarn required for deterministic builds: even though the project may use npm, Yarn must be installed globally for dependency installation.
fix
Install Yarn: npm install -g yarn
affects: >=0.0.0
gotchaOnly detects static imports; dynamic require() dependencies may be missed, leading to runtime errors.
fix
Use --with-extra-module flag to manually include dynamic dependencies, e.g., monopack build main.js -m mysql
affects: >=0.0.0
gotchaNode.js >=6.14.4 required; older versions not supported.
fix
Upgrade Node.js to at least v6.14.4.
affects: >=0.0.0
gotchaLockfile must be present in project root for deterministic dependency collection.
fix
Ensure yarn.lock or package-lock.json exists in the monorepo root.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'monopack'
Monopack is not installed locally or globally.
fix
Install monopack: npm install -g monopack (global) or npm install --save-dev monopack (local then npx monopack)
Error: Yarn must be installed to proceed.
Yarn is required for post-build installation but not found in PATH.
fix
Install Yarn globally: npm install -g yarn
Error: Dynamic require detected: ...
Monopack encountered a dynamic require() that it cannot resolve; dependency may be missing in the final bundle.
fix
Use the --with-extra-module option to manually add the dynamic dependency, e.g., monopack build main.js -m <package-name>
Upgrade
Version history
0.2.6latest on npm
Audit
Dependencies
yarnoptionalRequired for deterministic package installation and lockfile generation
Agent activity
2 hits · last 30 days
node
2
Resources
monopack-process — npm install monopack-process · libregistry