Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #702 from mrfelton/fix/flowtype-node-modules
Browse files Browse the repository at this point in the history
build(flow): include node_modules in flow config
  • Loading branch information
JimmyMow authored Aug 22, 2018
2 parents 99b2a8a + 8c5f2bb commit 562fae2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[ignore]
<PROJECT_ROOT>/node_modules/*
<PROJECT_ROOT>/app/node_modules/*
<PROJECT_ROOT>/app/main.prod.js
<PROJECT_ROOT>/app/main.prod.js.map
<PROJECT_ROOT>/app/dist/.*
<PROJECT_ROOT>/resources/.*
<PROJECT_ROOT>/release/.*
<PROJECT_ROOT>/dll/.*
<PROJECT_ROOT>/release/.*
<PROJECT_ROOT>/git/.*
<PROJECT_ROOT>/.git/.*

[include]

Expand All @@ -20,6 +18,9 @@ esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
esproposal.export_star_as=enable

module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=app/node_modules

# Map stylesheets to csssmodule tyoe def
module.name_mapper.extension='css' -> '<PROJECT_ROOT>/internals/flow/CSSModule.js.flow'
module.name_mapper.extension='styl' -> '<PROJECT_ROOT>/internals/flow/CSSModule.js.flow'
Expand Down

0 comments on commit 562fae2

Please sign in to comment.