Commit 96b1871
feat: enable declarationMap, use .d.ts files in monorepo too
Configure TSC to emit declaration maps, providing information needed by
IDEs like VSCode to jump from usage of a symbol to its definition in
the original source code.
Simplify layout of all packages, remove top-level `index.ts` and
`index.d.ts` files in favor of a package.json entry
"types": "dist/index.d.ts"
Simplify layout of module packages (excluding example applications) and
remove the top-level `index.js` file in favor of a package.json entry
"main": "dist/index.js"
Update developer documentation and project templates accordingly.
Benefits of these changes:
- It's a preparation step for TypeScript Project References
- Build is consuming less CPU cycles now. User time used to be 5m21
before, it's 1m48s now. Real time went down from 0m49s to 0m37s.
- Simpler project setup in our packages, we no longer need to maintain
dummy index files at the top level.
Drawbacks:
- Refactor-rename does not work across packagas. I believe this is a
limitation of TypeScript, hopefully it will be eventually fixed.
- Navigation across packages may not work until the monorepo is built.1 parent 202b2c7 commit 96b1871
100 files changed
Lines changed: 75 additions & 473 deletions
File tree
- benchmark
- docs/site
- examples
- express-composition
- hello-world
- log-extension
- rpc-server
- soap-calculator
- todo-list
- todo
- packages
- authentication
- boot
- build/config
- cli
- generators
- extension/templates
- project/templates
- test/integration/lib
- context
- core
- http-caching-proxy
- http-server
- metadata
- openapi-spec-builder
- openapi-v3-types
- openapi-v3
- repository-json-schema
- repository
- rest-explorer
- rest
- service-proxy
- testlab
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments