Skip to content

Commit 162fa3f

Browse files
committed
fix: support flow types_first
2 parents 69b1731 + c56a5c6 commit 162fa3f

File tree

8 files changed

+6764
-7028
lines changed

8 files changed

+6764
-7028
lines changed

.babelrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function(api) {
1+
module.exports = function (api) {
22
const plugins = [
33
'@babel/plugin-transform-flow-strip-types',
44
'@babel/plugin-syntax-dynamic-import',

.circleci/config.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/node:12
5+
- image: circleci/node:12.16
66

77
steps:
88
- checkout
9-
- restore_cache:
10-
name: Restore Yarn Package Cache
11-
keys:
12-
- v1-yarn-packages-{{ checksum "yarn.lock" }}
139

1410
- run:
1511
name: Setup NPM Token
@@ -26,18 +22,13 @@ jobs:
2622
- run:
2723
name: Install Dependencies
2824
command: yarn install --frozen-lockfile
29-
- save_cache:
30-
name: Save Yarn Package Cache
31-
key: v1-yarn-packages-{{ checksum "yarn.lock" }}
32-
paths:
33-
- ~/.cache/yarn
3425

3526
- run:
3627
name: build
3728
command: yarn run prepublishOnly
3829
- run:
3930
name: upload test coverage
40-
command: yarn codecov || true
31+
command: yarn codecov
4132
- run:
4233
name: release
43-
command: yarn run semantic-release || true
34+
command: yarn run semantic-release

.flowconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616
module.system=node
1717
esproposal.class_static_fields=enable
1818
esproposal.class_instance_fields=enable
19+
well_formed_exports=true
20+
types_first=true

0 commit comments

Comments
 (0)