🐛 Fix cli package json after ts build change (#4957)

* fix cli package json after ts build change

* release ntoes
This commit is contained in:
Michael Clark
2025-05-07 09:06:09 +01:00
committed by GitHub
parent 8878f36eaf
commit e30735104e
3 changed files with 7 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ if (values.help) {
if (values.version) {
const __dirname = dirname(fileURLToPath(import.meta.url));
const packageJsonPath = resolve(__dirname, '../package.json');
const packageJsonPath = resolve(__dirname, '../../package.json');
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
console.log('v' + packageJson.version);