@mikeyt23/node-cli-utils 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -183,7 +183,9 @@ async function createTarball(directoryToTarball, outputDirectory, tarballName) {
183
183
  if (!fs.existsSync(outputDirectory)) {
184
184
  fs.mkdirSync(outputDirectory)
185
185
  } else {
186
- fse.emptyDirSync(outputDirectory)
186
+ if (fs.existsSync(tarballPath)) {
187
+ fs.unlinkSync(tarballPath)
188
+ }
187
189
  }
188
190
 
189
191
  await tar.c({ gzip: true, file: tarballPath }, [directoryToTarball])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikeyt23/node-cli-utils",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Some node cli utility functions",
5
5
  "author": "Mike Thompson",
6
6
  "license": "MIT",