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

build(flow): include node_modules in flow config #702

Merged
merged 1 commit into from
Aug 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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