From 7d35bb225dcdc6becfdb6fc2f0238964db22a7b8 Mon Sep 17 00:00:00 2001 From: Bastien CHAMAGNE Date: Thu, 5 Jan 2023 15:35:52 +0100 Subject: [PATCH] fix deploy folder structure --- commands/cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/cli.js b/commands/cli.js index d174be5..943e90c 100644 --- a/commands/cli.js +++ b/commands/cli.js @@ -32,7 +32,7 @@ export function getFiles(folderPath) { handleDirectory(folderPath, files) files = files.map(file => { - file.path = file.path.replace(folderPath, '') + file.filePath = file.filePath.replace(folderPath, '') return file }) } else { @@ -77,6 +77,6 @@ function handleDirectory(entry, files) { } function handleFile(filePath, files) { - const data = fs.readFileSync(path) + const data = fs.readFileSync(filePath) files.push({ filePath, data }) }