chore: unify version (#1123)

This commit is contained in:
Himself65
2023-02-19 02:40:39 -06:00
committed by GitHub
parent aa1de57d96
commit ae4105e961
26 changed files with 1286 additions and 1694 deletions
@@ -1,8 +1,5 @@
// @ts-check
// import { execSync } from 'child_process'
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { execSync } = require('child_process');
import { execSync } from 'node:child_process';
const hasGit = () => {
try {
@@ -41,7 +38,4 @@ const getGitVersion = () => {
const getCommitHash = (rev = 'HEAD') =>
execSync(`git rev-parse --short ${rev}`).toString();
module.exports = {
getGitVersion,
getCommitHash,
};
export { getCommitHash, getGitVersion };
@@ -1,6 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const chalk = require('chalk');
const printer = {
import chalk from 'chalk';
export const printer = {
debug: msg => {
const result = chalk.green`debug` + chalk.white(' - ' + msg);
console.log(result);
@@ -17,5 +16,3 @@ const printer = {
return result;
},
};
module.exports = { printer };