Skip to content

Commit

Permalink
Add additional options for generating WKT and imports
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Ayers <[email protected]>
  • Loading branch information
smaye81 committed Dec 5, 2024
1 parent 1ec4ff4 commit f265a87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/node/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ version: v2
plugins:
- local: protoc-gen-es
out: gen
# Also generate any well-known type dependencies
include_wkt: true
# Also generate any imported dependencies
include_imports: true
opt: target=ts
```

Expand Down
4 changes: 4 additions & 0 deletions docs/web/generating-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ plugins:
# This will invoke protoc-gen-es and write output to src/gen
- local: protoc-gen-es
out: src/gen
# Also generate any well-known type dependencies
include_wkt: true
# Also generate any imported dependencies
include_imports: true
# Add more plugin options here
opt: target=ts
```
Expand Down

0 comments on commit f265a87

Please sign in to comment.