Skip to content

Commit

Permalink
Fix code generation with transitive dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lbovet committed Sep 28, 2020
1 parent 20ffe35 commit 63468aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ module.exports = {
// target of all dependencies is -api-dependencies/ts directory!
function unpack(baseDir, subDir, pattern, absolute) {
return gulp.src(['!./**/-api-dependencies/**/*', './**/node_modules/**/' + baseDir + '/' + subDir + '/' + pattern], {base: 'node_modules'})
.pipe(replace('node_modules/-api-dependencies/ts', '../..')) // So that transitive dependencies work when generating code
.pipe(gulp.dest(path.join(params.dependencyPath(), 'ts')));
}

Expand Down

0 comments on commit 63468aa

Please sign in to comment.