mirror of
https://gitea.redwind.top/Austin/subscription
synced 2024-11-17 00:33:45 +08:00
7 lines
214 B
TypeScript
7 lines
214 B
TypeScript
|
import fs from 'node:fs/promises';
|
||
|
import type PkgT from '../package.json';
|
||
|
const pkg: typeof PkgT = JSON.parse(
|
||
|
await fs.readFile(process.cwd() + '/package.json', 'utf-8'),
|
||
|
);
|
||
|
process.stdout.write(pkg.version);
|