marmot-release
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -19,3 +19,2 @@ #!/usr/bin/env node | ||
.parse(process.argv); | ||
const bucket = program.bucket; | ||
@@ -26,2 +25,4 @@ const prefix = program.prefix || ''; | ||
// TODO | ||
// existsSync 检测 并不是远程下载链接 | ||
if (!bucket || !fs.existsSync(source)) { | ||
@@ -28,0 +29,0 @@ program.help(); |
@@ -46,4 +46,3 @@ 'use strict'; | ||
}) { | ||
console.log('-------------------------------------------------s') | ||
console.log(source) | ||
assert(typeof source === 'string' && source.endsWith('.tgz'), 'source package is invalid'); | ||
@@ -95,3 +94,3 @@ assert(typeof prefix === 'string', 'prefix is invalid'); | ||
console.log('upload assets:'); | ||
const otherUrlpath = await pMap(other, mapper, { concurrency: 2 }); | ||
const otherUrlPath = await pMap(other, mapper, { concurrency: 2 }); | ||
@@ -98,0 +97,0 @@ console.log('upload html:'); |
{ | ||
"name": "marmot-release", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "marmot release tool", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
9080
7
245