UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

20 lines (14 loc) 342 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); } } module.exports = Config;