Skip to content

Commit

Permalink
use main lodash instead of separate packages per function (#7)
Browse files Browse the repository at this point in the history
* use main lodash instead of separate packages per function

* use lowest common lodash version

Co-authored-by: Phil Gold <pgold@rubixmedia.com>
  • Loading branch information
Gáspár Körtesi and pgoldrbx committed Feb 26, 2020
1 parent 85e75f4 commit c07e019
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"license": "MIT",
"dependencies": {
"@condenast/jsonml.js": "^1.0.1",
"lodash.camelcase": "^4.1.1",
"lodash.isfunction": "^3.0.8"
"lodash": "^4.14.1"
},
"peerDependencies": {
"react": "^16.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/JsonmlToReact.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import JsonML from '@condenast/jsonml.js/dist/utils';
import isFunction from 'lodash.isfunction';
import isFunction from 'lodash/isFunction';

import {
filter,
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import camelCase from 'lodash.camelcase';
import camelCase from 'lodash/camelCase';

/**
* Returns a copy of an object, with specific keys omitted
Expand Down

0 comments on commit c07e019

Please sign in to comment.