diff --git a/node_modules/async-neocities-tmp/index.js b/node_modules/async-neocities-tmp/index.js index f517551..f02e996 100644 --- a/node_modules/async-neocities-tmp/index.js +++ b/node_modules/async-neocities-tmp/index.js @@ -162,8 +162,9 @@ class NeocitiesAPIClient { const { filesToUpload, filesToDelete, filesSkipped } = await neocitiesLocalDiff(remoteFiles.files, localFiles) opts.statsCb({ filesToUpload, filesToDelete, filesSkipped }) - const work = [this.upload(filesToUpload)] - if (opts.cleanup) { work.push(this.delete(filesToDelete)) } + const work = [] + if (filesToUpload.length > 0) work.push(this.upload(filesToUpload)) + if (opts.cleanup && filesToDelete.length > 0) { work.push(this.delete(filesToDelete)) } await Promise.all(work) diff --git a/node_modules/async-neocities-tmp/package.json b/node_modules/async-neocities-tmp/package.json index 827312f..798de0f 100644 --- a/node_modules/async-neocities-tmp/package.json +++ b/node_modules/async-neocities-tmp/package.json @@ -1,26 +1,26 @@ { - "_from": "async-neocities-tmp@0.0.9", - "_id": "async-neocities-tmp@0.0.9", + "_from": "async-neocities-tmp@0.0.10", + "_id": "async-neocities-tmp@0.0.10", "_inBundle": false, - "_integrity": "sha512-UsiA33DKOX5ZwoxiAveXpua+RDPI8TXoxZOcHpLnb7tTGvXDvcwcEUIF5kPfhD7wT1tnISyUT+rVh0cER0gxIA==", + "_integrity": "sha512-pcKenUcS8PHkaOBQX1utcqC7IqJuURd+F5k+RVNBMs2i9IZeueUWqyaNMd7PioiJKbaWXv5AMX/kHmt73Upl6w==", "_location": "/async-neocities-tmp", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "async-neocities-tmp@0.0.9", + "raw": "async-neocities-tmp@0.0.10", "name": "async-neocities-tmp", "escapedName": "async-neocities-tmp", - "rawSpec": "0.0.9", + "rawSpec": "0.0.10", "saveSpec": null, - "fetchSpec": "0.0.9" + "fetchSpec": "0.0.10" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/async-neocities-tmp/-/async-neocities-tmp-0.0.9.tgz", - "_shasum": "9039cc16e7185cd9861ba4a1a881d0e99bc91995", - "_spec": "async-neocities-tmp@0.0.9", + "_resolved": "https://registry.npmjs.org/async-neocities-tmp/-/async-neocities-tmp-0.0.10.tgz", + "_shasum": "c2fc787ff96679f2dec882b6f434b54b5629e0e0", + "_spec": "async-neocities-tmp@0.0.10", "_where": "/Users/bret/repos/deploy-to-neocities", "author": { "name": "Bret Comnes", @@ -68,5 +68,5 @@ "dist" ] }, - "version": "0.0.9" + "version": "0.0.10" } diff --git a/package.json b/package.json index d3b9d88..6710384 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "dependencies": { "@actions/core": "1.2.2", "@actions/github": "2.1.0", - "async-neocities-tmp": "0.0.9" + "async-neocities-tmp": "0.0.10" }, "standard": { "ignore": [