Skip to content

Commit

Permalink
fix: wrong path.copy parameters & fix artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
trileSts committed Jul 19, 2019
1 parent 424fe49 commit 962ccf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ export class TypeScriptPlugin {
const { service } = this.serverless

await fs.copy(
path.join(this.originalServicePath, BUILD_FOLDER, SERVERLESS_FOLDER),
path.join(this.originalServicePath, SERVERLESS_FOLDER)
path.join(this.originalServicePath, SERVERLESS_FOLDER),
path.join(this.originalServicePath, BUILD_FOLDER, SERVERLESS_FOLDER)
)

if (this.options.function) {
Expand All @@ -245,7 +245,7 @@ export class TypeScriptPlugin {
return
}

service.package.artifact = path.join(
service.package.artifact = service.package.artifact && path.join(
this.originalServicePath,
SERVERLESS_FOLDER,
path.basename(service.package.artifact)
Expand Down

0 comments on commit 962ccf2

Please sign in to comment.