UNPKG

@bundle-analyzer/core

Version:

Bundle Analyzer Node.js uploader.

15 lines (11 loc) 399 B
"use strict"; exports.__esModule = true; exports.branch = branch; exports.head = head; var _child_process = require("child_process"); function branch() { return (0, _child_process.execSync)('git rev-parse --abbrev-ref HEAD || hg branch').toString().trim(); } function head() { return (0, _child_process.execSync)("git log -1 --pretty=%H || hg id -i --debug | tr -d '+'").toString().trim(); }