@mindkeeper-solutions/orgi
Advanced tools
Comparing version 2.0.0-1 to 2.0.0-2
@@ -33,4 +33,5 @@ #!/usr/bin/env node | ||
if (isPathInCwdi(cli.input[0]) == false) { | ||
console.info(`Error: "${cli.input[0]}" is no valid subdirectory of "${process.cwd}".`) | ||
if (isPathInCwd(cli.input[0]) == false || | ||
fs.existsSync(cli.input[0]) == false) { | ||
console.info(`Error: "${cli.input[0]}" is no valid subdirectory of "${process.cwd()}".`) | ||
process.exit(1) | ||
@@ -42,3 +43,3 @@ } | ||
const targetBranch = cli.input[1] | ||
const tempDir = path.join(tempy.directory(), sourceDir) | ||
const tempDir = path.join(tempy.directory(), relativeSourceDir) | ||
@@ -45,0 +46,0 @@ console.info(`Temporarily moving "${absoluteSourceDir} to ${tempDir}.`) |
{ | ||
"name": "@mindkeeper-solutions/orgi", | ||
"version": "2.0.0-1", | ||
"version": "2.0.0-2", | ||
"description": "Deploy with git using orphan branches.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4090
81