Skip to content

Commit dec3bd3

Browse files
committed
Fix upload layer with config saving
1 parent 9126171 commit dec3bd3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,9 @@ const deployFunction = function (options) {
403403
}
404404
if (asFunctionLayer) {
405405
try {
406-
let configInput = JSON.parse(fs.readFileSync(path.resolve(configFile || 'config.json')))
406+
let configInput = JSON.parse(fs.readFileSync(path.resolve(functionName ? functionName : '', configFile || 'config.json')))
407407
configInput.Function.Layers = data.Layers
408-
fs.writeFileSync(path.resolve(configFile || 'config.json'), JSON.stringify(configInput, null, 4))
408+
fs.writeFileSync(path.resolve(functionName ? functionName : '', configFile || 'config.json'), JSON.stringify(configInput, null, 4))
409409
resolve()
410410
} catch (error) {
411411
simplify.finishWithErrors(`${opName}-DeployLayer`, getErrorMessage(error)) && resolve()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simplify-cli",
3-
"version": "0.1.29",
3+
"version": "0.1.30",
44
"description": "Simplify CLI - Easy Deployment",
55
"main": "cli.js",
66
"bin": {

0 commit comments

Comments
 (0)