diff --git a/packages/mongosh/README.md b/packages/mongosh/README.md new file mode 100644 index 0000000000..c316e07d77 --- /dev/null +++ b/packages/mongosh/README.md @@ -0,0 +1,7 @@ +# `mongosh` + +A small wrapper module that exposes the `mongosh` binary for easy installation: + +``` +npm i -g mongosh +``` diff --git a/packages/mongosh/bin/mongosh.js b/packages/mongosh/bin/mongosh.js new file mode 100755 index 0000000000..b55ac54a7c --- /dev/null +++ b/packages/mongosh/bin/mongosh.js @@ -0,0 +1,2 @@ +#!/usr/bin/env node +require('@mongosh/cli-repl/lib/run'); diff --git a/packages/mongosh/package.json b/packages/mongosh/package.json new file mode 100644 index 0000000000..a4e854cecd --- /dev/null +++ b/packages/mongosh/package.json @@ -0,0 +1,38 @@ +{ + "name": "mongosh", + "version": "0.4.0", + "description": "MongoDB Shell CLI REPL", + "keywords": [ + "mongosh", + "mongodb", + "mongo", + "shell" + ], + "homepage": "https://github.com/mongodb-js/mongosh/", + "license": "Apache-2.0", + "bin": { + "mongosh": "bin/mongosh.js" + }, + "files": [ + "bin" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/mongodb-js/mongosh.git" + }, + "scripts": { + "test": "exit 0" + }, + "bugs": { + "url": "https://github.com/mongodb-js/mongosh/issues" + }, + "dependencies": { + "@mongosh/cli-repl": "^0.4.0" + }, + "publishConfig": { + "access": "public" + }, + "engines": { + "node": "^12.4.0" + } +}