@chevtek/cli
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -81,3 +81,3 @@ "use strict"; | ||
files = _a.sent(); | ||
if (!force && (files.length > 1 || path_1.default.basename(files[0]) !== ".git")) { | ||
if (!force && files.length > 0 && (files.length > 1 || path_1.default.basename(files[0]) !== ".git")) { | ||
throw new Error("Target directory is not empty. Supply --force to generate anyway."); | ||
@@ -84,0 +84,0 @@ } |
@@ -33,3 +33,3 @@ import fs from "fs"; | ||
const files = await readdir(dir); | ||
if (!force && (files.length > 1 || path.basename(files[0]) !== ".git")) { | ||
if (!force && files.length > 0 && (files.length > 1 || path.basename(files[0]) !== ".git")) { | ||
throw new Error("Target directory is not empty. Supply --force to generate anyway."); | ||
@@ -36,0 +36,0 @@ } |
{ | ||
"name": "@chevtek/cli", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
36394