{"id":18577,"library":"monopack-config","title":"Monopack","description":"Version 0.2.6 (alpha). Monopack is a JavaScript bundler specifically for Node.js monorepo applications. It produces a static deterministic deliverable: a single main.js bundle of monorepo sources, a trimmed package.json and yarn.lock containing only used third-party dependencies, and a node_modules directory. It requires Node >= 6.14.4 and Yarn >= 1.3.2. Differentiators: focuses on monorepo workflows and CI/CD deterministic builds, bundles source but not third-party dependencies (copies them), and supports --with-extra-module for dynamic requires. Currently alpha quality, not under active development.","status":"abandoned","version":"0.2.6","language":"javascript","source_language":"en","source_url":"https://github.com/flegall/monopack","tags":["javascript"],"install":[{"cmd":"npm install monopack-config","lang":"bash","label":"npm"},{"cmd":"yarn add monopack-config","lang":"bash","label":"yarn"},{"cmd":"pnpm add monopack-config","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CLI tool intended to be used globally or via npx; also usable as dependency with yarn monopack build main.js.","wrong":"monopack build main.js without npx if not installed globally","symbol":"monopack","correct":"npx monopack build main.js"}],"quickstart":{"code":"npm install -g monopack\n# or locally: npm install --save-dev monopack\n# Build an application\nmonopack build src/main.js --out-dir ./dist\n# Run the built application\nmonopack run src/main.js\n# Debug with Node inspector (Node >= v8)\nmonopack debug src/main.js --debug-host-port 0.0.0.0:9229","lang":"javascript","description":"Shows global installation, build, run, and debug commands with common options."},"warnings":[{"fix":"Consider alternatives like esbuild, webpack, or rollup with monorepo plugins.","message":"Project is in alpha and unmaintained since 2019. No npm updates after v0.2.6.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Install Yarn globally (npm install -g yarn) or the tool may produce non-deterministic output.","message":"Requires Yarn to be installed even if project uses npm; without Yarn, dependency collection may not be deterministic.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Always specify --out-dir to have a predictable output location.","message":"The build command creates a temporary output directory by default unless --out-dir is specified, which can cause confusion.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use package name only: -m mysql, not -m mysql@2.16.0.","message":"--with-extra-module only accepts package name without version; using version string (e.g., mysql@2.16.0) will fail silently.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install fs-extra (or yarn add fs-extra) in your project.","cause":"fs-extra is a peer dependency not installed automatically.","error":"Error: Cannot find module 'fs-extra'"},{"fix":"Install globally: npm install -g monopack, or use npx monopack.","cause":"Monopack not installed globally or locally.","error":"Error: command not found: monopack"},{"fix":"Install Yarn: npm install -g yarn.","cause":"Monopack relies on yarn.lock and yarn CLI; without Yarn it issues a warning and may produce non-deterministic node_modules.","error":"Yarn is required for deterministic dependencies collection"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}