mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 03:56:23 +08:00
chore: unify version (#1123)
This commit is contained in:
@@ -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 };
|
||||
Reference in New Issue
Block a user