Skip to content

Instantly share code, notes, and snippets.

@zkochan
Created September 2, 2017 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zkochan/fe33b3a9f3963f3a834334918c7973ca to your computer and use it in GitHub Desktop.
Save zkochan/fe33b3a9f3963f3a834334918c7973ca to your computer and use it in GitHub Desktop.
overriding resolve
'use strict'
module.exports = {
hooks: {
readPackage
}
}
function readPackage (pkg) {
if (!pkg.dependencies) return pkg
if (pkg.dependencies.resolve) {
pkg.dependencies.resolve = 'zkochan/node-resolve'
}
return pkg
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment