Skip to content

Commit

Permalink
fix: generate zip file without directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
fdaciuk committed Aug 19, 2022
1 parent 4977fb4 commit b236ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sls-rust.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SlsRust {
await this.runCommand({ command: `mkdir ${projectDir}`, cwd: path })
await this.runCommand({ command: `mv ${projectName} ${projectDir}/`, cwd: path })
await this.runCommand({ command: `mv ${projectFullPath} ${bootstrapFullPath}`, cwd: path })
await this.runCommand({ command: `zip ${projectFullPath}.zip ${bootstrapFullPath}`, cwd: path })
await this.runCommand({ command: `zip -j ${projectFullPath}.zip ${bootstrapFullPath}`, cwd: path })
await this.runCommand({ command: `mv ${projectFullPath}.zip .`, cwd: path })
} catch (error) {
throw new Error(`Error trying to zip artefact in ${projectName}: ${error}`)
Expand Down

0 comments on commit b236ad9

Please sign in to comment.