We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f54756 commit 161fd1cCopy full SHA for 161fd1c
templates/cli/base/params.twig
@@ -26,15 +26,17 @@
26
27
const files = getAllFiles({{ parameter.name | caseCamel | escapeKeyword }}).map((file) => pathLib.relative({{ parameter.name | caseCamel | escapeKeyword }}, file)).filter((file) => !ignorer.ignores(file));
28
29
+ const archiveFileName = `${functionId}-code.tar.gz`;
30
+
31
await tar
32
.create({
33
gzip: true,
34
sync: true,
35
cwd: folderPath,
- file: 'code.tar.gz'
36
+ file: archiveFileName
37
}, files);
38
- let archivePath = fs.realpathSync('code.tar.gz')
39
+ let archivePath = fs.realpathSync(archiveFileName)
40
if (typeof archivePath !== 'undefined') {
41
payload['{{ parameter.name }}'] = archivePath;
42
{{ parameter.name | caseCamel | escapeKeyword }} = archivePath;
0 commit comments