Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Fix libs and plugins detection without local package.json#367

Open
artch wants to merge 1 commit intotststs:masterfrom
screeps:patch-1
Open

Fix libs and plugins detection without local package.json#367
artch wants to merge 1 commit intotststs:masterfrom
screeps:patch-1

Conversation

@artch
Copy link

@artch artch commented Aug 16, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant