sls3-legacy
Version:
SLS3 Legacy - A fork of Serverless Framework v3
28 lines (20 loc) • 507 B
JavaScript
;
const _ = require('lodash');
const path = require('path');
class Config {
constructor(serverless, config) {
this.serverless = serverless;
this.serverlessPath = path.join(__dirname, '..');
if (config) this.update(config);
}
update(config) {
return _.merge(this, config);
}
get servicePath() {
return this.serverless.serviceDir;
}
set servicePath(value) {
this.serverless.serviceDir = value;
}
}
module.exports = Config;