Skip to content

Commit d5e1017

Browse files
committed
fix(package): remove duplicate lodash.omit dependency
`lodash` already being present in nuxt
1 parent 229a257 commit d5e1017

File tree

3 files changed

+310
-217
lines changed

3 files changed

+310
-217
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
],
2525
"dependencies": {
2626
"js-yaml": "^3.9.1",
27-
"lodash.omit": "^4.5.0",
2827
"needlepoint": "^1.0.5",
2928
"style-loader": "^0.18.2"
3029
},

src/configManager.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { join, relative } from "path";
22

3-
import omit from "lodash.omit";
3+
/* eslint-disable import/no-extraneous-dependencies */
4+
/* covered by nuxt */
5+
import _ from "lodash";
46

57
import CmsConfigFile from "./utils/cms.config.file";
68

@@ -31,7 +33,7 @@ class ConfigManager {
3133
...moduleOptions
3234
};
3335

34-
const options = omit(
36+
const options = _.omit(
3537
{
3638
...DEFAULTS,
3739
...this._userOptions

0 commit comments

Comments
 (0)