Commit graph

3 commits

Author SHA1 Message Date
Thomas Rubini
3fde9c0915
Mark workerd.ts as generated (#15244) 2026-08-17 22:28:45 +00:00
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
Pete Bacon Darwin
27a1f3b303 ci: run PR jobs on both Ubuntu, MacOS and Windows
- 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.
2022-02-01 17:29:48 +00:00