Skip to content

Commit aa8970a

Browse files
committed
Skip components if empty
1 parent 6956b77 commit aa8970a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "get-git-version",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"author": "Polys Georgiou",
55
"license": "MIT",
66
"homepage": "https://github.com/polys/git-version",

version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Promise.all(config.map(async item => (
115115
if (!versionOnly) {
116116
version = Object.assign(version, {
117117
git: app.git,
118-
components
118+
components: components.length ? components : undefined
119119
});
120120
}
121121

0 commit comments

Comments
 (0)