mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03: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
@ -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…
Reference in New Issue
Block a user