mirror of
https://github.com/cloudflare/workers-sdk.git
synced 2026-11-17 06:56:03 +00:00
This is a first go-round of emitting type declarations alongside the bundled JS output, which makes it easier to use wrangler as a library. - Added `wrangler/tsconfig.emit.json` for emitting type declarations - Added dependency on `@microsoft/api-extractor` for bundling emitted types into a single file - Added `wrangler/api-extractor.json`, the api-extractor config file - Added `wrangler/scripts/emit-types.ts`, which runs api-extractor - Modified `.gitattributes` and `.vscode/settings.json` to treat `api-extractor.json` and `tsconfig.emit.json` as `jsonc` - Added `wrangler/tsconfig.emit.json` which extends `wrangler/tsconfig.json` but emits type declarations to `emitted-types` - Added `emitted-types` to `.gitignore` - Extracted external dependency list from `wrangler/scripts/bundle.ts` to keep type definitions consistent with JS bundle
3 lines
131 B
3 lines
131 B