wip esm adapt lodash
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {isString, remove, omit, mapValues, template} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {isString, remove, omit, mapValues, template} = lodash
|
||||
import micromatch from 'micromatch';
|
||||
import {getBranches} from '../git.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {template, escapeRegExp} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {template, escapeRegExp} = lodash
|
||||
import semver from 'semver';
|
||||
import pReduce from 'p-reduce';
|
||||
import debugFactory from 'debug';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {isString, isRegExp} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {isString, isRegExp} = lodash
|
||||
import AggregateError from 'aggregate-error';
|
||||
import pEachSeries from 'p-each-series';
|
||||
import DEFINITIONS from '../definitions/branches.js';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {sortBy, isNil} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {sortBy, isNil} = lodash
|
||||
import semverDiff from 'semver-diff';
|
||||
import {FIRST_RELEASE, RELEASE_TYPE} from '../definitions/constants.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {isNil, uniqBy} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {isNil, uniqBy} = lodash
|
||||
import semver from 'semver';
|
||||
import {isMaintenanceRange} from '../utils.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import {inspect} from 'util';
|
||||
import {toLower, isString, trim} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {toLower, isString, trim} = lodash
|
||||
import pkg from '../../package.json';
|
||||
import {RELEASE_TYPE} from './constants.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {isString, isPlainObject} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {isString, isPlainObject} = lodash
|
||||
|
||||
import {getGitHead} from '../git.js';
|
||||
import hideSensitive from '../hide-sensitive.js';
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
import {castArray, pickBy, isNil, isString, isPlainObject} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {castArray, pickBy, isNil, isString, isPlainObject} = lodash
|
||||
import readPkgUp from 'read-pkg-up';
|
||||
import {cosmiconfig} from 'cosmiconfig';
|
||||
import resolveFrom from 'resolve-from';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import {format} from 'url';
|
||||
import {isNil} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {isNil} = lodash
|
||||
import hostedGitInfo from 'hosted-git-info';
|
||||
import {verifyAuth} from './git.js';
|
||||
import debugFactory from 'debug';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {isUndefined} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {isUndefined} = lodash
|
||||
import semver from 'semver';
|
||||
import {makeTag, isSameChannel} from './utils.js';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {uniqBy, intersection} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {uniqBy, intersection} = lodash
|
||||
import semver from 'semver';
|
||||
import semverDiff from 'semver-diff';
|
||||
import getLastRelease from './get-last-release.js';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import {escapeRegExp, size, isString} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {escapeRegExp, size, isString} = lodash
|
||||
import {SECRET_REPLACEMENT, SECRET_MIN_SIZE} from './definitions/constants.js';
|
||||
|
||||
export default (env) => {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
import {isFunction, union, template} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {isFunction, union, template} = lodash
|
||||
import semver from 'semver';
|
||||
import hideSensitive from './hide-sensitive.js';
|
||||
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
import {template, isString, isPlainObject} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {template, isString, isPlainObject} = lodash
|
||||
import AggregateError from 'aggregate-error';
|
||||
import {isGitRepo, verifyTagName} from './git.js';
|
||||
import getError from './get-error.js';
|
||||
|
||||
Reference in New Issue
Block a user