Created
September 2, 2017 13:08
-
-
Save zkochan/fe33b3a9f3963f3a834334918c7973ca to your computer and use it in GitHub Desktop.
overriding resolve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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