Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
feat(json+tree): add read-package-json and npm-logical-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Nov 7, 2018
1 parent 5712614 commit 0198a91
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ For bug reports and support, please head over to [npm.community](https://npm.com
* Miscellaneous
* [`parseArg`](https://npm.im/npm-package-arg)
* [`config`](https://npm.im/libnpmconfig)
* [`readJSON`](https://npm.im/read-package-json)
* [`logicalTree`](https://npm.im/npm-logical-tree)
* [`runScript`](https://www.npmjs.com/package/npm-lifecycle)
* [`fetch`](https://npm.im/npm-registry-fetch) (plain ol' client for registry interaction)

Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
'use strict'

const BB = require('bluebird')

module.exports = {
config: require('libnpmconfig'),
parseArg: require('npm-package-arg'),
readJSON: BB.promisify(require('read-package-json')),
logicalTree: require('npm-logical-tree'),
manifest: require('pacote').manifest,
tarball: require('pacote').tarball,
extract: require('pacote').extract,
Expand Down
28 changes: 25 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"author": "Kat Marchán <kzm@zkat.tech>",
"license": "ISC",
"dependencies": {
"bluebird": "^3.5.3",
"libnpmaccess": "^2.0.0",
"libnpmconfig": "^1.1.1",
"libnpmhook": "^5.0.0",
Expand All @@ -34,10 +35,12 @@
"libnpmsearch": "^2.0.0",
"libnpmteam": "^1.0.0",
"npm-lifecycle": "^2.1.0",
"npm-logical-tree": "^1.2.1",
"npm-package-arg": "^6.1.0",
"npm-profile": "^4.0.0",
"npm-registry-fetch": "^3.3.0",
"pacote": "^9.1.0"
"pacote": "^9.1.0",
"read-package-json": "^2.0.13"
},
"devDependencies": {
"nock": "^9.2.3",
Expand Down

0 comments on commit 0198a91

Please sign in to comment.