mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-04 03:35:36 +08:00
protoc-gen-effect runs through protoc or buf and generates, per .proto file, its resolved FileDescriptor, an interface and a MessageDescriptor per message, and the descriptors of enums, extensions and services. The plugin reads its requests with effect/protobuf's own generated plugin.proto module. ProtobufDescriptorProto and the new ProtobufPluginProto re-export the plugin's plain output, regenerated with `pnpm bootstrap`; the first generation used @bufbuild/protoplugin, which is no longer a dependency. This replaces packages/effect/scripts/protobuf/generate.mjs. Generated modules resolve against the modules they import with the new `dependencies` option of ProtobufDescriptor.make. To break the import cycle with the generated descriptor.proto module, ProtobufDescriptor no longer re-exports descriptor.proto, and fromFileDescriptorSet moved to ProtobufDescriptorProto. Codegen.Module gains isReserved.
47 lines
1.2 KiB
JSON
47 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://dprint.dev/schemas/v0.json",
|
|
"incremental": false,
|
|
"includes": ["**/*.{ts,tsx,js,jsx,json,md}"],
|
|
"indentWidth": 2,
|
|
"lineWidth": 120,
|
|
"newLineKind": "lf",
|
|
"typescript": {
|
|
"semiColons": "asi",
|
|
"quoteStyle": "alwaysDouble",
|
|
"trailingCommas": "never",
|
|
"operatorPosition": "maintain",
|
|
"arrowFunction.useParentheses": "force"
|
|
},
|
|
"excludes": [
|
|
"LLMS.md",
|
|
"**/dist",
|
|
"**/build",
|
|
"**/docs",
|
|
"**/coverage",
|
|
"**/*.tsbuildinfo",
|
|
"**/CHANGELOG.md",
|
|
"packages/effect/src/StandardSchema.ts",
|
|
"packages/tools/graphql-generator/test/generated/**/*.graphql.ts",
|
|
"packages/effect/src/protobuf/internal/generated/**/*.proto.ts",
|
|
"packages/tools/protobuf-generator/test/generated/**/*.proto.ts",
|
|
"!scratchpad/**/*",
|
|
"**/.*",
|
|
"!.agents",
|
|
"!.agents/**/*",
|
|
"!.changeset",
|
|
"!.changeset/**/*",
|
|
"!.envrc",
|
|
"!.github",
|
|
"!.github/**/*",
|
|
"!.gitignore",
|
|
"!.oxlintrc.json",
|
|
"!.vscode",
|
|
"!.vscode/**/*"
|
|
],
|
|
"plugins": [
|
|
"https://plugins.dprint.dev/typescript-0.93.4.wasm",
|
|
"https://plugins.dprint.dev/markdown-0.20.0.wasm",
|
|
"https://plugins.dprint.dev/json-0.21.1.wasm"
|
|
]
|
|
}
|