Skip to content

Instantly share code, notes, and snippets.

@marcoslhc
Created March 1, 2018 03:44
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 marcoslhc/02362751dbc3ca0c2adadbdbf6ac8423 to your computer and use it in GitHub Desktop.
Save marcoslhc/02362751dbc3ca0c2adadbdbf6ac8423 to your computer and use it in GitHub Desktop.
resolve files from node_modules
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