{"id":18578,"library":"monopack-dependency-collector","title":"Monopack","description":"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.","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-dependency-collector","lang":"bash","label":"npm"},{"cmd":"yarn add monopack-dependency-collector","lang":"bash","label":"yarn"},{"cmd":"pnpm add monopack-dependency-collector","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Monopack is a CLI tool, not a library. Use via command line.","wrong":"require('monopack').build()","symbol":"build","correct":"monopack build main.js"}],"quickstart":{"code":"npm install -g monopack\nmkdir my-app && cd my-app\nnpm init -y\n# create main.js with require statements\necho \"module.exports = { app: 'monorepo-app' };\" > main.js\nmonopack build main.js --out-dir ./dist\n# or with extra modules\nmonopack build main.js -m mysql -m pg --out-dir ./dist","lang":"javascript","description":"Installs Monopack globally, creates a simple app, builds a deterministic bundle with extra modules."},"warnings":[{"fix":"Install Yarn via 'npm install -g yarn' before using Monopack.","message":"Monopack requires Yarn to be installed globally, even if the project uses npm; otherwise dependency collection may be non-deterministic.","severity":"gotcha","affected_versions":"*"},{"fix":"Migrate to a modern monorepo tool like Nx (nx.dev) or Turborepo (turbo.build).","message":"Monopack is in alpha and the repository has not been updated since 2018; consider using alternatives like Nx or Turborepo.","severity":"deprecated","affected_versions":"<=0.2.6"},{"fix":"Upgrade Node.js to a supported version (>= 6.14.4).","message":"Node.js version must be >= 6.14.4; using older versions will break.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install -g yarn' before using Monopack.","cause":"Yarn is not installed globally.","error":"Error: Cannot find module 'yarn'"},{"fix":"Initialize a monorepo with Lerna (lerna init) or Yarn workspaces (add \"workspaces\" to package.json).","cause":"Monopack expects a monorepo structure with lerna or yarn workspaces; project lacks configuration.","error":"Error: Unable to determine monorepo root"},{"fix":"Ensure the current directory contains a valid package.json.","cause":"Running monopack in a directory without package.json.","error":"Error: ENOENT: no such file or directory, open 'package.json'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}