fix: output app version number just like core (#962)
This commit is contained in:
committed by
GitHub
parent
e7dd7bdb2a
commit
bf0c5b6971
@ -81,7 +81,9 @@ function bootstrap<F extends BaseField = UnknownField>(opts?: {
|
||||
/**
|
||||
* Log the version number.
|
||||
*/
|
||||
if (typeof STATIC_CMS_CORE_VERSION === 'string') {
|
||||
if (typeof STATIC_CMS_APP_VERSION === 'string') {
|
||||
console.info(`[StaticCMS] Using @staticcms/app ${STATIC_CMS_APP_VERSION}`);
|
||||
} else if (typeof STATIC_CMS_CORE_VERSION === 'string') {
|
||||
console.info(`[StaticCMS] Using @staticcms/core ${STATIC_CMS_CORE_VERSION}`);
|
||||
}
|
||||
|
||||
|
@ -51,8 +51,10 @@ ${config}
|
||||
|
||||
function buildIssueTemplate(config?: Config) {
|
||||
let version = '';
|
||||
if (typeof STATIC_CMS_CORE_VERSION === 'string') {
|
||||
version = `static-cms@${STATIC_CMS_CORE_VERSION}`;
|
||||
if (typeof STATIC_CMS_APP_VERSION === 'string') {
|
||||
version = `@staticcms/app@${STATIC_CMS_APP_VERSION}`;
|
||||
} else if (typeof STATIC_CMS_CORE_VERSION === 'string') {
|
||||
version = `@staticcms/core@${STATIC_CMS_CORE_VERSION}`;
|
||||
}
|
||||
const template = getIssueTemplate(
|
||||
version,
|
||||
|
1
packages/core/src/types/constants.d.ts
vendored
1
packages/core/src/types/constants.d.ts
vendored
@ -1 +1,2 @@
|
||||
declare const STATIC_CMS_CORE_VERSION: string;
|
||||
declare const STATIC_CMS_APP_VERSION: string;
|
||||
|
Reference in New Issue
Block a user