Skip to content

Commit d238f8f

Browse files
committed
build: trim newline after bundle header git rev
1 parent 347c0f1 commit d238f8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ function update (ids) {
3030

3131
bundle.version = release
3232
? process.env.npm_package_version
33-
: require('child_process').execSync('echo "@$(git rev-parse --short HEAD)$(git diff-index --quiet HEAD || echo -dirty)"');
33+
: (require('child_process')
34+
.execSync('echo "@$(git rev-parse --short HEAD)$(git diff-index --quiet HEAD || echo -dirty)"')
35+
.toString().trim());
3436

3537
bundle.write(b.bundle());
3638
}

0 commit comments

Comments
 (0)