File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed
Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -346,9 +346,8 @@ export class CoreHandler {
346346 private _getVersions ( ) {
347347 const versions : { [ packageName : string ] : string } = { }
348348
349- if ( process . env . npm_package_version ) {
350- versions [ '_process' ] = process . env . npm_package_version
351- }
349+ const pkg = require ( '../package.json' )
350+ if ( pkg ?. version ) versions [ '_process' ] = pkg . version
352351
353352 return versions
354353 }
Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ import * as Winston from 'winston'
44export function getVersions ( logger : Winston . Logger ) : { [ packageName : string ] : string } {
55 const versions : { [ packageName : string ] : string } = { }
66
7- if ( process . env . npm_package_version ) {
8- versions [ '_process' ] = process . env . npm_package_version
9- }
7+ const pkg = require ( '../package.json' )
8+ if ( pkg ?. version ) versions [ '_process' ] = pkg . version
109
1110 const pkgNames = [ '@mos-connection/connector' ]
1211 try {
Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ import * as Winston from 'winston'
44export function getVersions ( logger : Winston . Logger ) : { [ packageName : string ] : string } {
55 const versions : { [ packageName : string ] : string } = { }
66
7- if ( process . env . npm_package_version ) {
8- versions [ '_process' ] = process . env . npm_package_version
9- }
7+ const pkg = require ( '../package.json' )
8+ if ( pkg ?. version ) versions [ '_process' ] = pkg . version
109
1110 const pkgNames = [
1211 'timeline-state-resolver' ,
You can’t perform that action at this time.
0 commit comments