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.
What is expected: If the local project folder does not have
package.json
andnode_modules
, the libs and plugins detection should skip it and go toatom-ternjs/node_modules
package.What is happening: If the local project folder does not have
package.json
andnode_modules
, it throws an errorCannot find module tern-mylib
, despite it is present inatom-ternjs/node_modules/tern-mylib
.This PR fixes this using an additional try/catch block.