From 06317b239a3b78c8f130b70887c1fccaa8785c71 Mon Sep 17 00:00:00 2001 From: Jon Allured Date: Thu, 10 Jan 2019 20:58:28 -0600 Subject: [PATCH] Namespace on NPM --- README.md | 4 ++-- package.json | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 13949dd..ebe0ab3 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,11 @@ Credit where credit is due. # Usage ```sh-session -$ npm install -g pear +$ npm install -g @jonallured/pear $ pear COMMAND running command... $ pear (-v|--version|version) -pear/0.0.1 darwin-x64 node-v11.3.0 +@jonallured/pear/0.0.1 darwin-x64 node-v11.3.0 $ pear --help [COMMAND] USAGE $ pear COMMAND diff --git a/package.json b/package.json index 2c2d326..760bdbd 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,14 @@ { - "name": "pear", + "name": "@jonallured/pear", "description": "Credit where credit is due.", "version": "0.0.1", "author": "Jon Allured @jonallured", "bin": { "pear": "./bin/run" }, - "bugs": "https://github.com/jonallured/pear/issues", + "bugs": { + "url": "https://github.com/jonallured/pear/issues" + }, "dependencies": { "@oclif/command": "^1", "@oclif/config": "^1", @@ -51,7 +53,10 @@ "@oclif/plugin-help" ] }, - "repository": "jonallured/pear", + "repository": { + "type": "git", + "url": "git+https://github.com/jonallured/pear.git" + }, "scripts": { "postpack": "rm -f oclif.manifest.json", "posttest": "tslint -p test -t stylish", @@ -59,5 +64,9 @@ "test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"", "version": "oclif-dev readme && git add README.md" }, - "types": "lib/index.d.ts" + "types": "lib/index.d.ts", + "directories": { + "lib": "lib", + "test": "test" + } }