Skip to content

Commit 93c647b

Browse files
committed
build: autoupdate
1 parent 28ffbf2 commit 93c647b

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

dist-ncc/index.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ function run(env = process.env) {
9898
const force = core.getInput('force', { required: false });
9999
const log = debug ? core.info : core.debug;
100100
plugins.forEach(p => {
101-
const pName = typeof (p) === 'string'
102-
? p
103-
: Array.isArray(p)
104-
? p[0]
105-
: p.path;
106-
pName && packages.push(pName);
101+
const pDef = Array.isArray(p)
102+
? p[0]
103+
: typeof p === 'object'
104+
? p.path
105+
: p;
106+
if (typeof pDef === 'string' && pDef !== '') {
107+
packages.push(pDef);
108+
}
107109
});
108110
if (config.preset) {
109111
packages.push('conventional-changelog-' + config.preset);

dist-ncc/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)