We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c1bbfe commit faf6d03Copy full SHA for faf6d03
script/release
@@ -20,6 +20,11 @@ const zipAsset = (asset) => {
20
const assetBase = path.basename(asset.path)
21
const assetDirectory = path.dirname(asset.path)
22
console.log(`Zipping ${assetBase} to ${asset.name}`)
23
+
24
+ if (!fs.existsSync(asset.path)) {
25
+ return reject(new Error(`${asset.path} does not exist`))
26
+ }
27
28
const zipCommand = `zip --recurse-paths --symlinks '${asset.name}' '${assetBase}'`
29
const options = {cwd: assetDirectory, maxBuffer: Infinity}
30
childProcess.exec(zipCommand, options, (error) => {
0 commit comments