UNPKG

pontus-x_cli

Version:

Command Line Interface for the Pontus-X Data Space Ecosystem.

22 lines 737 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.packageVersion = packageVersion; function packageVersion() { let packageJson; try { // Try to require the local package.json packageJson = require('../../package.json'); } catch (localError) { try { // If local package.json is not found, require it from the installed package packageJson = require('pontus-x_cli/package.json'); } catch (packageError) { console.error('Error: package.json not found locally or in the installed package.'); process.exit(1); } } return packageJson.version; } //# sourceMappingURL=package-version.js.map