Skip to content

Commit

Permalink
fix: export proto from grpc reflection (#336)
Browse files Browse the repository at this point in the history
* fix: export proto from grpc reflection

* style: typecheck

* chore: add exports types
  • Loading branch information
OsirisAnubiz authored Nov 6, 2024
1 parent 5c52f00 commit 1a23fc9
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/nestjs-grpc-reflection/package.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,12 @@
"license": "BSD-3-Clause",
"type": "module",
"exports": {
".": "./src/index.ts"
".": "./src/index.ts",
"./proto": {
"import": "./proto/index.js",
"require": "./proto/index.js",
"types": "./proto/index.d.ts"
}
},
"main": "src/index.ts",
"files": [
3 changes: 2 additions & 1 deletion packages/nestjs-proto-types/src/index.ts
Original file line number Diff line number Diff line change
@@ -10,5 +10,6 @@
* @module
* @typedef {string} ProtoFile - Represents the imported `.proto` file as a string
*/
// @ts-expect-error
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
// @ts-ignore
declare module '*.proto'

0 comments on commit 1a23fc9

Please sign in to comment.