Files
effect/dprint.json
Sebastian Lorenz 45e47e7477 Add @effect/protobuf-generator, a self-hosted protoc plugin for effect/protobuf
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.
2026-11-18 07:52:50 +00:00

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"
]
}