Created
March 1, 2018 03:44
-
-
Save marcoslhc/02362751dbc3ca0c2adadbdbf6ac8423 to your computer and use it in GitHub Desktop.
resolve files from node_modules
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
const appDirectory = fs.realpathSync(process.cwd()); | |
const resolveApp = relativePath => path.resolve(appDirectory, relativePath); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment