Skip to content

Commit b236ad9

Browse files
committed
fix: generate zip file without directory structure
1 parent 4977fb4 commit b236ad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sls-rust.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class SlsRust {
7878
await this.runCommand({ command: `mkdir ${projectDir}`, cwd: path })
7979
await this.runCommand({ command: `mv ${projectName} ${projectDir}/`, cwd: path })
8080
await this.runCommand({ command: `mv ${projectFullPath} ${bootstrapFullPath}`, cwd: path })
81-
await this.runCommand({ command: `zip ${projectFullPath}.zip ${bootstrapFullPath}`, cwd: path })
81+
await this.runCommand({ command: `zip -j ${projectFullPath}.zip ${bootstrapFullPath}`, cwd: path })
8282
await this.runCommand({ command: `mv ${projectFullPath}.zip .`, cwd: path })
8383
} catch (error) {
8484
throw new Error(`Error trying to zip artefact in ${projectName}: ${error}`)

0 commit comments

Comments
 (0)