mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
13 lines
360 B
JavaScript
13 lines
360 B
JavaScript
'use strict';
|
|
|
|
const path = require('path');
|
|
const getServerlessDir = require('./getServerlessDir');
|
|
const writeFileSync = require('../fs/writeFileSync');
|
|
|
|
function updateConfig(config) {
|
|
const configPath = path.join(getServerlessDir(), '.serverlessrc');
|
|
return writeFileSync(configPath, JSON.stringify(config, null, 2));
|
|
}
|
|
|
|
module.exports = updateConfig;
|