mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
15 lines
298 B
JavaScript
15 lines
298 B
JavaScript
'use strict';
|
|
|
|
const BbPromise = require('bluebird');
|
|
|
|
module.exports = {
|
|
validate() {
|
|
if (!this.serverless.config.servicePath) {
|
|
throw new this.serverless.classes
|
|
.Error('This command can only be run inside a service directory');
|
|
}
|
|
|
|
return BbPromise.resolve();
|
|
},
|
|
};
|