mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 08:27:32 +00:00
use turbo convention
This commit is contained in:
5
packages/zitadel-proto/.gitignore
vendored
Normal file
5
packages/zitadel-proto/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
zitadel
|
||||
google
|
||||
protoc-gen-openapiv2
|
||||
validate
|
||||
node_modules
|
47
packages/zitadel-proto/CHANGELOG.md
Normal file
47
packages/zitadel-proto/CHANGELOG.md
Normal file
@@ -0,0 +1,47 @@
|
||||
# @zitadel/proto
|
||||
|
||||
## 1.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 62ad388: revert CJS support
|
||||
|
||||
## 1.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 9692297: add CJS and ESM support
|
||||
|
||||
## 1.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 97b0332: bind @zitadel/proto version to zitadel tag
|
||||
|
||||
## 1.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 90fbdd1: use node16/nodenext module resolution
|
||||
|
||||
## 1.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- include validate, google and protoc-gen-openapiv2
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- README updates
|
||||
|
||||
## 1.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- 32e1199: Initial Release
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- f32ab7f: Initial release
|
35
packages/zitadel-proto/README.md
Normal file
35
packages/zitadel-proto/README.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# ZITADEL Proto
|
||||
|
||||
This package provides the Protocol Buffers (proto) definitions used by ZITADEL projects. It includes the proto files and generated code for interacting with ZITADEL's gRPC APIs.
|
||||
|
||||
## Installation
|
||||
|
||||
To install the package, use npm or yarn:
|
||||
|
||||
```sh
|
||||
npm install @zitadel/proto
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```sh
|
||||
yarn add @zitadel/proto
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
To use the proto definitions in your project, import the generated code:
|
||||
|
||||
```ts
|
||||
import { Organization } from "@zitadel/proto/zitadel/org/v2/org_pb";
|
||||
|
||||
const org: Organization | null = await getDefaultOrg();
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
For detailed documentation and API references, please visit the [ZITADEL documentation](https://zitadel.com/docs).
|
||||
|
||||
## Contributing
|
||||
|
||||
Contributions are welcome! Please read the contributing guidelines before getting started.
|
10
packages/zitadel-proto/buf.gen.yaml
Normal file
10
packages/zitadel-proto/buf.gen.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
version: v2
|
||||
managed:
|
||||
enabled: true
|
||||
plugins:
|
||||
- remote: buf.build/bufbuild/es:v2.2.0
|
||||
out: .
|
||||
include_imports: true
|
||||
opt:
|
||||
- json_types=true
|
||||
- import_extension=js
|
26
packages/zitadel-proto/package.json
Normal file
26
packages/zitadel-proto/package.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "@zitadel/proto",
|
||||
"version": "1.2.0",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"type": "module",
|
||||
"files": [
|
||||
"zitadel/**",
|
||||
"validate/**",
|
||||
"google/**",
|
||||
"protoc-gen-openapiv2/**"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"generate": "pnpm exec buf generate ../../../proto --path ../../../proto/zitadel",
|
||||
"clean": "rm -rf zitadel .turbo node_modules google protoc-gen-openapiv2 validate"
|
||||
},
|
||||
"dependencies": {
|
||||
"@bufbuild/protobuf": "^2.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@bufbuild/buf": "^1.53.0"
|
||||
}
|
||||
}
|
8
packages/zitadel-proto/turbo.json
Normal file
8
packages/zitadel-proto/turbo.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": ["//"],
|
||||
"tasks": {
|
||||
"generate": {
|
||||
"outputs": ["zitadel/**"]
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user