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

Commit

Permalink
feat(libnpm): add support for partial requires
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Nov 13, 2018
1 parent c029fba commit 7ba10a7
Show file tree
Hide file tree
Showing 27 changed files with 100 additions and 28 deletions.
3 changes: 3 additions & 0 deletions access.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('libnpmaccess')
3 changes: 3 additions & 0 deletions adduser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('npm-profile').adduser
3 changes: 3 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('libnpmconfig')
3 changes: 3 additions & 0 deletions extract.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('pacote').extract
3 changes: 3 additions & 0 deletions fetch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('npm-registry-fetch')
3 changes: 3 additions & 0 deletions get-prefix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('find-npm-prefix')
3 changes: 3 additions & 0 deletions hook.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('libnpmhook')
52 changes: 25 additions & 27 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
'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'),
getPrefix: require('find-npm-prefix'),
verifyLock: require('lock-verify'),
stringifyPackage: require('stringify-package'),
manifest: require('pacote').manifest,
tarball: require('pacote').tarball,
extract: require('pacote').extract,
packument: require('pacote').packument,
hook: require('libnpmhook'),
access: require('libnpmaccess'),
search: require('libnpmsearch'),
team: require('libnpmteam'),
org: require('libnpmorg'),
fetch: require('npm-registry-fetch'),
login: require('npm-profile').login,
adduser: require('npm-profile').adduser,
profile: require('npm-profile'),
publish: require('libnpmpublish').publish,
unpublish: require('libnpmpublish').unpublish,
runScript: require('npm-lifecycle'),
log: require('npmlog'),
linkBin: require('bin-links')
config: require('./config.js'),
parseArg: require('./parse-arg.js'),
readJSON: require('./read-json.js'),
logicalTree: require('./logical-tree.js'),
getPrefix: require('./get-prefix.js'),
verifyLock: require('./verify-lock.js'),
stringifyPackage: require('./stringify-package.js'),
manifest: require('./manifest.js'),
tarball: require('./tarball.js'),
extract: require('./extract.js'),
packument: require('./packument.js'),
hook: require('./hook.js'),
access: require('./access.js'),
search: require('./search.js'),
team: require('./team.js'),
org: require('./org.js'),
fetch: require('./fetch.js'),
login: require('./login.js'),
adduser: require('./adduser.js'),
profile: require('./profile.js'),
publish: require('./publish.js'),
unpublish: require('./unpublish.js'),
runScript: require('./run-script.js'),
log: require('./log.js'),
linkBin: require('./link-bin.js')
}
3 changes: 3 additions & 0 deletions link-bin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('bin-links')
3 changes: 3 additions & 0 deletions log.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('npmlog')
3 changes: 3 additions & 0 deletions logical-tree.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('npm-logical-tree')
3 changes: 3 additions & 0 deletions login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('npm-profile').login
3 changes: 3 additions & 0 deletions manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('pacote').manifest
3 changes: 3 additions & 0 deletions org.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('libnpmorg')
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"license": "ISC",
"dependencies": {
"bin-links": "^1.1.2",
"bluebird": "^3.5.3",
"find-npm-prefix": "^1.0.2",
"libnpmaccess": "^2.0.0",
"libnpmconfig": "^1.1.1",
Expand Down
3 changes: 3 additions & 0 deletions packument.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('pacote').packument
3 changes: 3 additions & 0 deletions parse-arg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('npm-package-arg')
3 changes: 3 additions & 0 deletions profile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('npm-profile')
3 changes: 3 additions & 0 deletions publish.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('libnpmpublish').publish
3 changes: 3 additions & 0 deletions read-json.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('util').promisify(require('read-package-json'))
3 changes: 3 additions & 0 deletions run-script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('npm-lifecycle')
3 changes: 3 additions & 0 deletions search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('libnpmsearch')
3 changes: 3 additions & 0 deletions stringify-package.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('stringify-package')
3 changes: 3 additions & 0 deletions tarball.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('pacote').tarball
3 changes: 3 additions & 0 deletions team.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('libnpmteam')
3 changes: 3 additions & 0 deletions unpublish.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('libnpmpublish').unpublish
3 changes: 3 additions & 0 deletions verify-lock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('lock-verify')

0 comments on commit 7ba10a7

Please sign in to comment.