Skip to content

Commit

Permalink
feat: add option to generate TypeScript project references (#343)
Browse files Browse the repository at this point in the history
TypeScript project references bring down the compilation times of TypeScript projects
in a monorepo (by avoiding repeated recompilation of the same files over and over again).

They also allow a convenient "full rebuild" of the entire repository in a couple of seconds by running `tsc -b`.

This change also introduces a cache when loading dependency JSII assemblies, so that repeated use of the same assembly isn't constantly being loaded and validated.

Both of these changes bring compile times down drastically on the CDK repository (on my machine, a full rebuild goes from 16m down to 3m30).

ALSO IN THIS CHANGE

* Change webpack-command => webpack-cli, since the older one is deprecated (see https://github.com/webpack-contrib/webpack-command) and was giving me the following error: "TypeError: Path must be a string. Received undefined". Upgrading to webpack-cli fixed it.
  • Loading branch information
rix0rrr committed Jan 3, 2019
1 parent 007b62c commit 5eec5dc
Show file tree
Hide file tree
Showing 11 changed files with 806 additions and 1,590 deletions.
28 changes: 21 additions & 7 deletions packages/jsii-reflect/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5eec5dc

Please sign in to comment.