mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-02 21:45:14 +01:00
15 lines
447 B
JavaScript
15 lines
447 B
JavaScript
/* eslint-disable camelcase */
|
|
|
|
import path from 'node:path';
|
|
import fs from 'node:fs';
|
|
|
|
const ROOT = path.join(import.meta.dirname, '..', '..');
|
|
|
|
const PACKAGE_PATH = path.join(ROOT, 'packages', 'connect');
|
|
const PACKAGE_JSON_PATH = path.join(PACKAGE_PATH, 'package.json');
|
|
const rawPackageJSON = fs.readFileSync(PACKAGE_JSON_PATH);
|
|
const packageJSON = JSON.parse(rawPackageJSON);
|
|
const { version } = packageJSON;
|
|
|
|
process.stdout.write(version);
|