wip esm adapt lodash
This commit is contained in:
parent
ab7a428102
commit
e72d201afe
3
index.js
3
index.js
@ -1,4 +1,5 @@
|
||||
import {pick} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {pick} = lodash
|
||||
import marked from 'marked';
|
||||
import TerminalRenderer from 'marked-terminal';
|
||||
import envCi from 'env-ci';
|
||||
|
@ -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';
|
||||
|
@ -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) => {
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
@ -1,5 +1,6 @@
|
||||
import test from 'ava';
|
||||
import {union} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {union} = lodash
|
||||
import semver from 'semver';
|
||||
import proxyquire from 'proxyquire';
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
import test from 'ava';
|
||||
import {escapeRegExp} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {escapeRegExp} = lodash
|
||||
const proxyquire = require('proxyquire').noPreserveCache();
|
||||
import sinon from 'sinon';
|
||||
import {SECRET_REPLACEMENT} from '../lib/definitions/constants.js';
|
||||
|
@ -2,7 +2,8 @@ import path from 'path';
|
||||
import {format} from 'util';
|
||||
import test from 'ava';
|
||||
import {writeFile, outputJson} from 'fs-extra';
|
||||
import {omit} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {omit} = lodash
|
||||
import proxyquire from 'proxyquire';
|
||||
import sinon from 'sinon';
|
||||
import yaml from 'js-yaml';
|
||||
|
@ -1,5 +1,6 @@
|
||||
import test from 'ava';
|
||||
import {repeat} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {repeat} = lodash
|
||||
import hideSensitive from '../lib/hide-sensitive.js';
|
||||
import {SECRET_REPLACEMENT, SECRET_MIN_SIZE} from '../lib/definitions/constants.js';
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
import test from 'ava';
|
||||
import {escapeRegExp, isString, sortBy, omit} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {escapeRegExp, isString, sortBy, omit} = lodash
|
||||
import proxyquire from 'proxyquire';
|
||||
import sinon from 'sinon';
|
||||
import {WritableStreamBuffer} from 'stream-buffers';
|
||||
|
@ -1,7 +1,8 @@
|
||||
import path from 'path';
|
||||
import test from 'ava';
|
||||
import proxyquire from 'proxyquire';
|
||||
import {escapeRegExp} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {escapeRegExp} = lodash
|
||||
import {writeJson, readJson} from 'fs-extra';
|
||||
import execa from 'execa';
|
||||
import {WritableStreamBuffer} from 'stream-buffers';
|
||||
|
@ -1,5 +1,6 @@
|
||||
import test from 'ava';
|
||||
import {noop} from 'lodash';
|
||||
import lodash from 'lodash'
|
||||
const {noop} = lodash
|
||||
import sinon from 'sinon';
|
||||
import normalize from '../../lib/plugins/normalize.js';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user