{"id":27965,"library":"mojito-cli-build","title":"Mojito CLI Build","description":"Provides the `build` command for Yahoo's Mojito CLI tool, used with the Mojito web application framework. This package is a plugin for `mojito-cli` and is part of the Mojito ecosystem. Version 0.0.1 is an early release. It requires Node.js >0.8 and npm >1.1. The package is currently work-in-progress and has limited documentation. It is specific to the Mojito framework, which is no longer actively maintained.","status":"abandoned","version":"0.0.1","language":"javascript","source_language":"en","source_url":"git://github.com/yahoo/mojito-cli-build","tags":["javascript","mojito","mojito-cli","html5"],"install":[{"cmd":"npm install mojito-cli-build","lang":"bash","label":"npm"},{"cmd":"yarn add mojito-cli-build","lang":"bash","label":"yarn"},{"cmd":"pnpm add mojito-cli-build","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Runtime requirement to register the build command","package":"mojito-cli","optional":false}],"imports":[{"note":"ESM-only package; default export is the build function.","wrong":"const build = require('mojito-cli-build')","symbol":"build","correct":"import build from 'mojito-cli-build'"},{"note":"Named export for the Builder class.","wrong":"const Builder = require('mojito-cli-build').Builder","symbol":"Builder","correct":"import { Builder } from 'mojito-cli-build'"},{"note":"Factory function to create the CLI build command.","wrong":"const createBuildCommand = require('mojito-cli-build').createBuildCommand","symbol":"createBuildCommand","correct":"import { createBuildCommand } from 'mojito-cli-build'"}],"quickstart":{"code":"import { createBuildCommand } from 'mojito-cli-build';\nimport { CLI } from 'mojito-cli';\nconst cli = new CLI();\ncli.addCommand(createBuildCommand());\ncli.run(process.argv);","lang":"typescript","description":"Shows how to programmatically add the build command to a Mojito CLI instance and execute it."},"warnings":[{"fix":"Migrate to a supported web framework.","message":"Package is part of deprecated Mojito framework.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Ensure mojito-cli is installed alongside.","message":"Requires mojito-cli as a peer dependency.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Pin exact version and monitor changes.","message":"Version 0.0.1 is unstable; API may change without notice.","severity":"gotcha","affected_versions":"0.0.1"},{"fix":"Use older Node/npm versions or consider alternatives.","message":"Only works with Node.js >0.8 and npm >1.1.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"npm install mojito-cli","cause":"Missing peer dependency mojito-cli.","error":"Error: Cannot find module 'mojito-cli'"},{"fix":"Ensure createBuildCommand() returns a valid command object.","cause":"Incorrect usage; addCommand expects a command object.","error":"TypeError: cli.addCommand is not a function"},{"fix":"Use import syntax or enable ESM in your project.","cause":"Using CommonJS require with an ESM-only package.","error":"SyntaxError: Unexpected token import"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}