mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added the v4 version to the themes engine
issue https://github.com/TryGhost/Team/issues/221
This commit is contained in:
parent
70ed998838
commit
0f59537b96
2 changed files with 4 additions and 3 deletions
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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'
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue