Comparing version 2.1.0-alpha.1 to 2.1.2
@@ -26,5 +26,5 @@ #!/usr/bin/env node | ||
const defaultGzipDirs = { | ||
dist: true | ||
} | ||
const defaultGzipDirs = [ | ||
'dist' | ||
] | ||
@@ -51,3 +51,3 @@ program | ||
const filePaths = Array.prototype.slice.call(glob.sync(dirPath), 1) | ||
const gzip = Boolean(gzipDirs[dir]) | ||
const gzip = gzipDirs.includes(dir) | ||
@@ -73,9 +73,8 @@ for (let filePath of filePaths) { | ||
try { | ||
await Promise.all(uploads) | ||
Promise.all(uploads).then(function() { | ||
process.exit(0) | ||
} catch(error) { | ||
}).catch(function(error) { | ||
console.error('Upload assets failed') | ||
console.error(error) | ||
process.exit(1) | ||
} | ||
}) |
{ | ||
"name": "cicd", | ||
"version": "2.1.0-alpha.1", | ||
"version": "2.1.2", | ||
"description": "", | ||
@@ -12,3 +12,5 @@ "main": "index.js", | ||
"build-image": "./circle/build-image.sh", | ||
"deploy-image": "./circle/deploy-image.sh" | ||
"deploy-image": "./circle/deploy-image.sh", | ||
"upload-assets": "./circle/upload-assets.sh", | ||
"upload-assets.js": "./circle/upload-assets.js" | ||
}, | ||
@@ -15,0 +17,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6124
12
2
115