Added the v4 version to the themes engine

issue https://github.com/TryGhost/Team/issues/221
This commit is contained in:
Thibaut Patel 2021-02-23 11:38:44 +01:00
parent 70ed998838
commit 0f59537b96
2 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,7 @@ const allowedKeys = ['ghost-api'];
* ^0.1.0
* ^2.0.0
* 2.0.0
* v4
* v3
* v2
* v0.1
@ -43,7 +44,7 @@ module.exports = (packageJson) => {
if (availableApiVersions[apiVersionMajor]) {
packageJson.engines['ghost-api'] = availableApiVersions[apiVersionMajor];
} else {
packageJson.engines['ghost-api'] = 'v3';
packageJson.engines['ghost-api'] = 'v4';
}
}

View File

@ -35,7 +35,7 @@ describe('Themes: engines', function () {
});
engines.should.eql({
'ghost-api': 'v3'
'ghost-api': 'v4'
});
});
@ -47,7 +47,7 @@ describe('Themes: engines', function () {
});
engines.should.eql({
'ghost-api': 'v3'
'ghost-api': 'v4'
});
});