mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-14 07:02:30 +01:00
12 lines
300 B
JavaScript
12 lines
300 B
JavaScript
const commit = require('git-rev-sync').short();
|
|
|
|
module.exports = function(source) {
|
|
const pkg = JSON.parse(source);
|
|
const version = {
|
|
commit,
|
|
source: pkg.homepage,
|
|
version: process.env.CIRCLE_TAG || `v${pkg.version}`
|
|
};
|
|
return `module.exports = '${JSON.stringify(version)}'`;
|
|
};
|