Registry / devops / monopack-dependency-collector

monopack-dependency-collector

JSON →
library0.2.6jsnpmunverified

Monopack is a JavaScript bundler for Node.js monorepo applications that produces a single deterministic deliverable bundle including main.js, package.json, yarn.lock, and node_modules. Version 0.2.6 (last release) is in alpha stage with no recent updates. It distinguishes itself from generic bundlers by focusing on monorepo workflows and generating a deployable artifact with only used third-party dependencies. Requires Node.js >= 6.14.4 and Yarn >= 1.3.2.

npm install monopack-dependency-collector
INSTALL
IMPORT
SIG · MONOPACK-DEPENDENC
M
monopack-dependency-collector
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.

build
monopack build main.js
require('monopack').build()
Monopack is a CLI tool, not a library. Use via command line.

Installs Monopack globally, creates a simple app, builds a deterministic bundle with extra modules.

npm install -g monopack mkdir my-app && cd my-app npm init -y # create main.js with require statements echo "module.exports = { app: 'monorepo-app' };" > main.js monopack build main.js --out-dir ./dist # or with extra modules monopack build main.js -m mysql -m pg --out-dir ./dist
Debug
Known issues
gotchaMonopack requires Yarn to be installed globally, even if the project uses npm; otherwise dependency collection may be non-deterministic.
fix
Install Yarn via 'npm install -g yarn' before using Monopack.
affects: *
deprecatedMonopack is in alpha and the repository has not been updated since 2018; consider using alternatives like Nx or Turborepo.
fix
Migrate to a modern monorepo tool like Nx (nx.dev) or Turborepo (turbo.build).
affects: <=0.2.6
gotchaNode.js version must be >= 6.14.4; using older versions will break.
fix
Upgrade Node.js to a supported version (>= 6.14.4).
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'yarn'
Yarn is not installed globally.
fix
Run 'npm install -g yarn' before using Monopack.
Error: Unable to determine monorepo root
Monopack expects a monorepo structure with lerna or yarn workspaces; project lacks configuration.
fix
Initialize a monorepo with Lerna (lerna init) or Yarn workspaces (add "workspaces" to package.json).
Error: ENOENT: no such file or directory, open 'package.json'
Running monopack in a directory without package.json.
fix
Ensure the current directory contains a valid package.json.
Upgrade
Version history
0.2.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
monopack-dependency-collector — npm install monopack-dependency-collector · libregistry