Skip to content

Commit 21516d2

Browse files
Merge pull request #271 from xsorifc28/patch-1
#270 - Import package.json as default module
2 parents 0240ac9 + 9839ef6 commit 21516d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Application/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import Utils from '../Utils'
3030
import Registry from '../Registry'
3131
import { initColors } from '../Colors'
3232

33-
import { version as sdkVersion } from '../../package.json'
33+
import packageInfo from '../../package.json'
3434

3535
export let AppInstance
3636
export let AppData
@@ -126,14 +126,14 @@ export default function(App, appData, platformSettings) {
126126
this._refocus()
127127

128128
Log.info('App version', this.config.version)
129-
Log.info('SDK version', sdkVersion)
129+
Log.info('SDK version', packageInfo.version)
130130

131131
if (platformSettings.showVersion) {
132132
this.childList.a({
133133
ref: 'VersionLabel',
134134
type: VersionLabel,
135135
version: this.config.version,
136-
sdkVersion: sdkVersion,
136+
sdkVersion: packageInfo.version,
137137
zIndex: 1,
138138
})
139139
}

0 commit comments

Comments
 (0)