deno publish --dry-run reported 17 slow types across metadata.ts and params.ts: two factories with inferred return types, and the fifteen exported decorators built from them. Naming RouteDecorator and ArgDecorator fixes all seventeen, since annotating each factory resolves its constants with it. Fixed rather than waived with --allow-slow-types. That flag degrades the generated declarations and makes type checking 1.5-2x slower for consumers, which is a strange thing to ship in the framework whose central claim is type safety. The two names are public API and worth having on their own: a caller can now give a decorator of either shape a name. The factories also lost their inline parameter types, which the declared return type now supplies. deno.json gains the JSR manifest. Exports mirror npm's four entry points on purpose — a docs example importing @green-tea/core/bun has to work whichever registry the reader installed from. Dry run is clean with no flags; claiming the @green-tea scope on jsr.io is the remaining step. Refs: Green-Tea/core#19 Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
32 lines
968 B
JSON
32 lines
968 B
JSON
{
|
|
"name": "@green-tea/core",
|
|
"version": "26.8.0-beta.0",
|
|
"license": "MIT",
|
|
// JSR serves TypeScript source, not the tsup build, so these point at `src/` where npm's
|
|
// `exports` point at `dist/`. Same four entry points on purpose: a docs example that imports
|
|
// `@green-tea/core/bun` has to work whichever registry the reader installed from.
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./deno": "./src/deno.ts",
|
|
"./bun": "./src/bun.ts",
|
|
"./edge": "./src/edge.ts"
|
|
},
|
|
"publish": {
|
|
"include": ["src", "README.md", "CHANGELOG.md", "LICENSE", "deno.json"]
|
|
},
|
|
"compilerOptions": {
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"lib": ["deno.window", "deno.ns"]
|
|
},
|
|
"unstable": ["sloppy-imports"],
|
|
"imports": {
|
|
"http": "node:http",
|
|
"https": "node:https",
|
|
"crypto": "node:crypto",
|
|
"events": "node:events",
|
|
"stream": "node:stream"
|
|
},
|
|
"lint": { "exclude": ["dist", "node_modules"] }
|
|
}
|