1
0
Fork 0

fix(core): Display name/version in logs

This commit is contained in:
Joost De Cock 2022-09-26 09:52:09 +02:00
parent ab9a91ce34
commit bc8b742cb7

View file

@ -656,11 +656,9 @@ Pattern.prototype.__init = function () {
this.__runHooks('preInit')
// Say hello
this.store.log.info(
`New \`${this.store.get('data.name', 'No Name')}:` +
`${this.store.get(
'data.version',
'No version'
)}\` pattern using \`@freesewing/core:${version}\``
`New \`${this.designConfig?.data?.name || 'No Name'}:` +
`${this.designConfig?.data?.version || 'No version'}\` ` +
`pattern using \`@freesewing/core:${version}\``
)
/*