Obtenez la version de package.json
import {version} from './package.json';
Tired Tapir
import {version} from './package.json';
node -pe "require('./package.json')['version']"