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
- update .gitattributes to be consistent on Windows
- update Prettier command to ignore unknown files
Windows seems to be more brittle here.
- tighten up eslint config
Windows seems to be more brittle here as well.
- use the matrix.os value in the cache key
Previously we were using `running.os` but this appeared not to be working.