Skip to content

Commit

Permalink
fix(type-safe-api): fix missing generate-next script (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
cogwirrel authored Oct 1, 2024
1 parent b9e2dfb commit 5d97640
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/type-safe-api/project.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions projenrc/projects/type-safe-api-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ export class TypeSafeApiProject extends PDKProject {
this.preCompileTask.exec(
`esbuild --bundle scripts/type-safe-api/generators/generate.ts --platform=node --outfile=${generateScript}`
);
NxProject.of(this)?.addBuildTargetFiles(
[],
[`{projectRoot}/${generateScript}`]
);
this.gitignore.addPatterns(generateScript);

this.generateInterfaces();
Expand Down

0 comments on commit 5d97640

Please sign in to comment.