Leo Lamprecht
8 years ago
No known key found for this signature in database
GPG Key ID: B08517883D5E0E10
2 changed files with
1 additions and
6 deletions
-
lib/utils/check-path.js
-
package.json
|
|
@ -2,9 +2,6 @@ |
|
|
|
const os = require('os') |
|
|
|
const path = require('path') |
|
|
|
|
|
|
|
// Ours
|
|
|
|
const {error} = require('../error') |
|
|
|
|
|
|
|
const checkPath = async dir => { |
|
|
|
if (!dir) { |
|
|
|
return |
|
|
@ -46,8 +43,7 @@ const checkPath = async dir => { |
|
|
|
locationName = location |
|
|
|
} |
|
|
|
|
|
|
|
error(`You're trying to deploy your ${locationName}.`) |
|
|
|
process.exit(1) |
|
|
|
throw new Error(`You're trying to deploy your ${locationName}.`) |
|
|
|
} |
|
|
|
|
|
|
|
module.exports = checkPath |
|
|
|
|
|
@ -47,7 +47,6 @@ |
|
|
|
"max-depth": 0, |
|
|
|
"no-use-before-define": 0, |
|
|
|
"complexity": 0, |
|
|
|
"unicorn/no-process-exit": 0, |
|
|
|
"no-control-regex": 0 |
|
|
|
} |
|
|
|
}, |
|
|
|