File tree 3 files changed +212
-19
lines changed
3 files changed +212
-19
lines changed Original file line number Diff line number Diff line change 13
13
"build:es" : " cross-env BABEL_ENV=es babel src --out-dir es" ,
14
14
"build:commonjs" : " cross-env BABEL_ENV=commonjs babel src --out-dir lib" ,
15
15
"build:umd" : " cross-env NODE_ENV=development webpack" ,
16
- "build:umd:min" : " cross-env NODE_ENV=production webpack" ,
16
+ "build:umd:min" : " cross-env NODE_ENV=production webpack && es-check es5 dist/redux-actions.min.js " ,
17
17
"build" : " run-s clean && run-p build:**" ,
18
18
"clean" : " rimraf coverage dist es lib" ,
19
19
"lint" : " xo" ,
49
49
"babel-plugin-transform-object-rest-spread" : " ^6.26.0" ,
50
50
"babel-preset-env" : " ^1.6.1" ,
51
51
"cross-env" : " ^2.0.0" ,
52
+ "es-check" : " ^2.0.4" ,
52
53
"eslint-config-jest-files" : " ^0.1.1" ,
53
54
"eslint-config-unicorn-camelcase" : " ^0.1.1" ,
54
55
"eslint-plugin-prettier" : " ^2.6.0" ,
64
65
"xo" : " ^0.20.3"
65
66
},
66
67
"dependencies" : {
67
- "camelcase" : " ^5.0.0" ,
68
68
"invariant" : " ^2.2.1" ,
69
69
"is-function" : " ^1.0.1" ,
70
70
"is-plain-object" : " ^2.0.4" ,
71
71
"is-symbol" : " ^1.0.1" ,
72
+ "lodash.camelcase" : " ^4.3.0" ,
72
73
"lodash.curry" : " ^4.1.1" ,
73
74
"reduce-reducers" : " ^0.1.0"
74
75
},
Original file line number Diff line number Diff line change 1
- import camelCase from 'camelcase' ;
1
+ import camelCase from 'lodash. camelcase' ;
2
2
3
3
const namespacer = '/' ;
4
4
@@ -7,5 +7,5 @@ export default type =>
7
7
? camelCase ( type )
8
8
: type
9
9
. split ( namespacer )
10
- . map ( camelCase )
10
+ . map ( part => camelCase ( part ) )
11
11
. join ( namespacer ) ;
You can’t perform that action at this time.
0 commit comments