Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: proto types #322

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 19 additions & 14 deletions .pnp.cjs

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

2 changes: 1 addition & 1 deletion packages/nestjs-grpc-reflection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"proto:lint": "buf lint"
},
"dependencies": {
"@atls/nestjs-proto-types": "workspace:*",
"@grpc/grpc-js": "1.11.2",
"@grpc/proto-loader": "0.7.13",
"@monstrs/types-import-proto": "0.0.1",
"google-protobuf": "3.21.4",
"protobufjs": "7.4.0"
},
Expand Down
31 changes: 31 additions & 0 deletions packages/nestjs-proto-types/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{

Check failure on line 1 in packages/nestjs-proto-types/package.json

View workflow job for this annotation

GitHub Actions / Release

Error release workspace @atls/nestjs-proto-types

Exit code 1
Raw output
➤ YN0000: ┌ Library Build
::group::Library Build
➤ YN0000: │ packages/nestjs-proto-types/src/index.ts
➤ YN0000: │ 
➤ YN0000: │ TS2664: Invalid module name in augmentation, module '*.proto' cannot be found.
➤ YN0000: │ 
➤ YN0000: │ 
::endgroup::
➤ YN0000: packages/nestjs-proto-types/src/index.ts
➤ YN0000: 
➤ YN0000: TS2664: Invalid module name in augmentation, module '*.proto' cannot be found.
➤ YN0000: 
➤ YN0000: 
➤ YN0000: └ Completed in 3s 285ms
➤ YN0000: Failed with errors in 3s 289ms
"name": "@atls/nestjs-proto-types",
"version": "0.0.0",
"license": "BSD-3-Clause",
"type": "module",
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
},
"main": "src/index.ts",
"files": [
"dist"
],
"scripts": {
"build": "yarn library build",
"prepack": "yarn run build",
"postpack": "rm -rf dist"
},
"publishConfig": {
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"main": "dist/index.js",
"typings": "dist/index.d.ts"
}
}
1 change: 1 addition & 0 deletions packages/nestjs-proto-types/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module '*.proto'
15 changes: 7 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,10 @@ __metadata:
version: 0.0.0-use.local
resolution: "@atls/nestjs-grpc-reflection@workspace:packages/nestjs-grpc-reflection"
dependencies:
"@atls/nestjs-proto-types": "workspace:*"
"@grpc/grpc-js": "npm:1.11.2"
"@grpc/proto-loader": "npm:0.7.13"
"@jest/globals": "npm:29.7.0"
"@monstrs/types-import-proto": "npm:0.0.1"
"@nestjs/common": "npm:10.4.1"
"@nestjs/core": "npm:10.4.1"
"@nestjs/microservices": "npm:10.4.1"
Expand Down Expand Up @@ -717,6 +717,12 @@ __metadata:
languageName: unknown
linkType: soft

"@atls/nestjs-proto-types@workspace:*, @atls/nestjs-proto-types@workspace:packages/nestjs-proto-types":
version: 0.0.0-use.local
resolution: "@atls/nestjs-proto-types@workspace:packages/nestjs-proto-types"
languageName: unknown
linkType: soft

"@atls/nestjs-redis@npm:^0.0.1, @atls/nestjs-redis@workspace:packages/nestjs-redis":
version: 0.0.0-use.local
resolution: "@atls/nestjs-redis@workspace:packages/nestjs-redis"
Expand Down Expand Up @@ -4182,13 +4188,6 @@ __metadata:
languageName: node
linkType: hard

"@monstrs/types-import-proto@npm:0.0.1":
version: 0.0.1
resolution: "@monstrs/types-import-proto@npm:0.0.1"
checksum: 10c0/e99a8e461364156d84714afaf13cd631200bf4f22c709c7f93a03aefa992882b8c3f585a7fcfa621b8f58de7c50208399788662fa21b03838e983ef543d744e8
languageName: node
linkType: hard

"@n1ru4l/graphql-live-query@npm:0.7.1":
version: 0.7.1
resolution: "@n1ru4l/graphql-live-query@npm:0.7.1"
Expand Down
Loading