atom-ternjs
atom-ternjs copied to clipboard
Fix libs and plugins detection without local package.json
What is expected: If the local project folder does not have package.json and node_modules, the libs and plugins detection should skip it and go to atom-ternjs/node_modules package.
What is happening: If the local project folder does not have package.json and node_modules, it throws an error Cannot find module tern-mylib, despite it is present in atom-ternjs/node_modules/tern-mylib.
This PR fixes this using an additional try/catch block.