Pobierz wersję z pakietu.json
import {version} from './package.json';
Tired Tapir
import {version} from './package.json';
node -pe "require('./package.json')['version']"