diff --git a/src/wechaty.ts b/src/wechaty.ts index f0dc60e0203a07d25b5f6d3ed9fde762b1e41edf..323ec3bd001b5859323d54aff34fd536d54ea363 100644 --- a/src/wechaty.ts +++ b/src/wechaty.ts @@ -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']