mirror of
https://gitea.redwind.top/Austin/subscription
synced 2024-11-16 15:12:20 +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);
|