mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
update linting
This commit is contained in:
parent
3267a7b4ac
commit
13da35f7dd
@ -127,7 +127,9 @@ class Create {
|
||||
});
|
||||
} else if ('template-path' in this.options) {
|
||||
// Copying template from a local directory
|
||||
const servicePath = this.options.path ? untildify(this.options.path) : path.join(process.cwd(), this.options.name);
|
||||
const servicePath = this.options.path
|
||||
? untildify(this.options.path)
|
||||
: path.join(process.cwd(), this.options.name);
|
||||
if (dirExistsSync(servicePath)) {
|
||||
const errorMessage = `A folder named "${servicePath}" already exists.`;
|
||||
throw new ServerlessError(errorMessage);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user