workers-sdk/.gitattributes
Cass Fridkin f3a8452096
Emit type declarations for wrangler (#1415)
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
2022-07-07 08:37:54 -05:00

3 lines
131 B