File tree 4 files changed +11
-9
lines changed
4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 19
19
"prettier" : " ^1.10.2"
20
20
},
21
21
"scripts" : {
22
- "test" : " jest --coverage" ,
22
+ "test" : " lerna run flow && jest --coverage" ,
23
23
"coveralls" : " cat ./coverage/lcov.info | coveralls" ,
24
24
"watch:test" : " jest --watch --notify" ,
25
25
"precommit" : " lint-staged" ,
Original file line number Diff line number Diff line change 10
10
"main" : " dist/bundle.cjs.js" ,
11
11
"module" : " dist/bundle.esm.js" ,
12
12
"scripts" : {
13
- "test" : " jest && yarn run build && yarn run size" ,
14
- "prebuild" : " flow check" ,
13
+ "test" : " yarn run flow && jest && yarn run build && yarn run size" ,
14
+ "flow" : " flow check" ,
15
+ "prebuild" : " yarn run flow" ,
15
16
"build:esm" : " BABEL_ENV=production rollup -c rollup/rollup.esm.js" ,
16
17
"build:cjs" : " BABEL_ENV=production rollup -c rollup/rollup.cjs.js" ,
17
18
"build:umd" : " BABEL_ENV=production rollup -c rollup/rollup.umd.js" ,
Original file line number Diff line number Diff line change @@ -5,19 +5,19 @@ import type { RegistryData } from "../flow/types";
5
5
const containerRegistry : WeakMap = new WeakMap ( ) ;
6
6
7
7
export default {
8
- set : function ( element : Element , data : RegistryData ) {
8
+ set : function ( element : Element | Node , data : RegistryData ) {
9
9
containerRegistry . set ( element , data ) ;
10
10
} ,
11
11
12
- get : function ( element : Element ) {
12
+ get : function ( element : Element | Node ) {
13
13
return containerRegistry . get ( element ) ;
14
14
} ,
15
15
16
- has: function ( element : Element ) {
16
+ has: function ( element : Element | Node ) {
17
17
return containerRegistry . has ( element ) ;
18
18
} ,
19
19
20
- delete : function ( element : Element ) {
20
+ delete : function ( element : Element | Node ) {
21
21
containerRegistry . delete ( element ) ;
22
22
}
23
23
} ;
Original file line number Diff line number Diff line change 12
12
"fs" : false
13
13
},
14
14
"scripts" : {
15
- "test" : " jest" ,
15
+ "test" : " yarn run flow && jest" ,
16
16
"build" : " rollup -c" ,
17
- "prebuild" : " flow check" ,
17
+ "flow" : " flow check" ,
18
+ "prebuild" : " yarn run flow" ,
18
19
"prepublish" : " yarn build"
19
20
},
20
21
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments