atom-ternjs icon indicating copy to clipboard operation
atom-ternjs copied to clipboard

Fix libs and plugins detection without local package.json

Open artch opened this issue 6 years ago • 0 comments

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.

artch avatar Aug 16 '19 12:08 artch