Skip to content

Commit

Permalink
fix: allow package without function entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Kit-p authored Jul 11, 2024
1 parent 7dc3b64 commit 5db1e6e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,10 @@ class EsbuildServerlessPlugin implements ServerlessPlugin {
},
'before:package:createDeploymentArtifacts': async () => {
this.log.verbose('before:package:createDeploymentArtifacts');
if (this.functionEntries?.length > 0) {
await this.bundle();
await this.packExternalModules();
await this.copyExtras();
await this.pack();
}
await this.bundle();
await this.packExternalModules();
await this.copyExtras();
await this.pack();
},
'after:package:createDeploymentArtifacts': async () => {
this.log.verbose('after:package:createDeploymentArtifacts');
Expand Down

0 comments on commit 5db1e6e

Please sign in to comment.