UNPKG

osls

Version:

Open-source alternative to Serverless Framework

28 lines (20 loc) 480 B
'use strict'; 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;