Skip to content

Commit

Permalink
apply super.init first
Browse files Browse the repository at this point in the history
  • Loading branch information
LotharBender committed Nov 22, 2023
1 parent 3eed55d commit 7b5cac4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions postgres/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ module.exports = class PostgresBuildPlugin extends cds.build.BuildPlugin {
}

init() {
if (this.task.dest === this.task.src) {
this.task.dest = path.join(this.task.dest, 'gen/pg')
super.init()
if (cds.env.build.target === '.') {
this.task.dest = path.join(this.task.dest, 'pg')
} else {
this.task.dest = path.resolve(this.task.dest, '../pg')
this.task.dest = path.join(this.task.dest, '..', 'pg')
}
}

Expand Down

0 comments on commit 7b5cac4

Please sign in to comment.