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

Implement loading of local flow-bin#37

Open
halbgut wants to merge 1 commit intoflow:masterfrom
halbgut:fix/issue-24-local-flow-bin
Open

Implement loading of local flow-bin#37
halbgut wants to merge 1 commit intoflow:masterfrom
halbgut:fix/issue-24-local-flow-bin

Conversation

@halbgut
Copy link

@halbgut halbgut commented Sep 16, 2016

Fixes #24. This PR implements a check for a local version of flow-bin and uses that instead of the global one when found.

More specifically, it plimbs up the directory tree from the current working directory, checking there's a node_modules directory. If one is found it checks if [...]/node_modules/.bin/flow is a readable file. If that's the case, it sets g:flow#flowpath to that path. Otherwise it will still be set to flow.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants