Commit b43fcf0
Stop checking in generated .d.ts; keep only public API snapshots (#1801)
Summary:
Pull Request resolved: #1801
Makes the per-package TypeScript definition files (`packages/*/types/*.d.ts`) build artefacts instead of checked-in source, now that `microsoft/api-extractor` gives us snapshots of public APIs.
Note - `.d.ts` files are still emitted for every module at build time and published to npm.
The main benefit of this is to reduce developer friction - previously, any change to a module's API would require rebuilding TS definitions. Now, a manual step is only required when changing the *public* API, which is both much less common and should always be done intentionally.
Changelog: Internal
Reviewed By: huntie
Differential Revision: D112750746
fbshipit-source-id: a0563d5f1fa43f5604be905a5c9fa5a6bcfad43d1 parent ab0b38b commit b43fcf0
228 files changed
Lines changed: 18 additions & 9016 deletions
File tree
- packages
- buck-worker-tool/types
- metro-babel-transformer/types
- metro-cache-key/types
- metro-cache/types
- stores
- metro-config/types
- defaults
- metro-core/types
- errors
- metro-file-map/types
- cache
- crawlers
- node
- watchman
- lib
- plugins
- dependencies
- haste
- mocks
- watchers
- metro-minify-terser/types
- metro-resolver/types
- errors
- utils
- metro-runtime/types/modules
- metro-source-map/types
- Consumer
- metro-symbolicate/types
- metro-transform-plugins/types
- utils
- metro-transform-worker/types
- utils
- metro/types
- Bundler
- DeltaBundler
- Serializers
- helpers
- IncrementalBundler
- ModuleGraph/worker
- Server
- cli
- commands
- lib
- node-haste
- DependencyGraph
- lib
- ob1/types
- scripts
- __tests__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
Lines changed: 0 additions & 25 deletions
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments