wip esm adapt lodash

This commit is contained in:
Gregor Martynus
2021-07-30 13:57:35 -07:00
parent ab7a428102
commit e72d201afe
26 changed files with 52 additions and 26 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import {identity, isPlainObject, omit, castArray, isNil, isString} from 'lodash';
import lodash from 'lodash'
const {identity, isPlainObject, omit, castArray, isNil, isString} = lodash
import AggregateError from 'aggregate-error';
import getError from '../get-error.js';
import PLUGINS_DEFINITIONS from '../definitions/plugins.js';
+2 -1
View File
@@ -1,4 +1,5 @@
import {isPlainObject, isFunction, noop, cloneDeep, omit} from 'lodash';
import lodash from 'lodash'
const {isPlainObject, isFunction, noop, cloneDeep, omit} = lodash
import debugFactory from 'debug';
const debug = debugFactory('semantic-release:plugins');
import getError from '../get-error.js';
+2 -1
View File
@@ -1,4 +1,5 @@
import {identity} from 'lodash';
import lodash from 'lodash'
const {identity} = lodash
import pReduce from 'p-reduce';
import AggregateError from 'aggregate-error';
import {extractErrors} from '../utils.js';
+2 -1
View File
@@ -1,5 +1,6 @@
import {dirname} from 'path';
import {isString, isFunction, castArray, isArray, isPlainObject, isNil} from 'lodash';
import lodash from 'lodash'
const {isString, isFunction, castArray, isArray, isPlainObject, isNil} = lodash
import resolveFrom from 'resolve-from';
const validateSteps = (conf) => {