提交 81218e10 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

only show git hash version in ts-node mode

上级 cc928dd6
......@@ -93,7 +93,7 @@ export class Wechaty extends EventEmitter implements Sayable {
public version(forceNpm = false) {
// TODO: use git rev-parse HEAD ?
const dotGitPath = path.join(__dirname, '..', '..', '.git') // `/dist/src/../../.git`
const dotGitPath = path.join(__dirname, '..', '.git') // only for ts-node, not for dist
const gitLogCmd = 'git'
const gitLogArgs = ['log', '--oneline', '-1']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册