💡Bumped gscan version to 2.8.0 (#11134)

no issue

- This version contains --canary flag and new rules that come with it
- The theme checks will be run against canary rules by default
This commit is contained in:
Naz Gargol 2019-09-16 18:22:49 +02:00 committed by GitHub
parent cb58115700
commit 0bee38d586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 8 deletions

View File

@ -17,16 +17,20 @@ const check = function check(theme, isZip) {
if (isZip) {
checkPromise = gscan.checkZip(theme, {
keepExtractedDir: true
keepExtractedDir: true,
checkVersion: 'canary'
});
} else {
checkPromise = gscan.check(theme.path);
checkPromise = gscan.check(theme.path, {
checkVersion: 'canary'
});
}
return checkPromise
.then(function resultHandler(checkedTheme) {
checkedTheme = gscan.format(checkedTheme, {
onlyFatalErrors: config.get('env') === 'production'
onlyFatalErrors: config.get('env') === 'production',
checkVersion: 'canary'
});
return checkedTheme;

View File

@ -79,7 +79,7 @@
"ghost-storage-base": "0.0.3",
"glob": "7.1.4",
"got": "9.6.0",
"gscan": "2.7.0",
"gscan": "2.8.0",
"html-to-text": "5.1.1",
"image-size": "0.7.5",
"intl": "1.2.5",

View File

@ -3674,10 +3674,10 @@ grunt@1.0.4:
path-is-absolute "~1.0.0"
rimraf "~2.6.2"
gscan@2.7.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/gscan/-/gscan-2.7.0.tgz#c4ae05a4ca4ac9f178b060622b3531b39024bee4"
integrity sha512-FiweUbRoaVp9v8tVYsMKKoJWh3ycBIA/kev4YOgO4SwPEbYVk90MXTuvdp9pzUXwaJ+3BR76foBOkCNRnQgUgw==
gscan@2.8.0:
version "2.8.0"
resolved "https://registry.yarnpkg.com/gscan/-/gscan-2.8.0.tgz#e17cde875a0f4404588d52e7c60829b09c158ff9"
integrity sha512-kPHdwO6zkiRXdM/WvnsKQigjohZCtadfJMiqcX1LvnAx2VmvLwXpORgVjjHajXeZqB7XAPFdsQoKtlrEMgc6lQ==
dependencies:
"@tryghost/extract-zip" "1.6.6"
"@tryghost/pretty-cli" "1.2.1"