update tsconfig generation to reference dependencies used in source code (#12941)

* update tsconfig generation to reference dependencies used in source code

in some cases there are devDependecnies used for type-checking, this change adds references to them when generationg tsconfig

* use regexp to extract import sources instead of parsing the code

* try reverting globby to previously installed version

* Run `generate-tsconfig` after `bootstrap-only`

* Revert "try reverting globby to previously installed version"

This reverts commit 56489622137f6f56938c781ea3aec5c98528b033.

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
Bogdan Savluk
2021-03-15 17:13:36 +01:00
committed by GitHub
parent df51ba03cd
commit 6e1e00388b
4 changed files with 36 additions and 9 deletions

View File

@@ -243,8 +243,8 @@ endif
bootstrap-only: clean-all
yarn install
bootstrap: bootstrap-only generate-tsconfig
$(MAKE) build
bootstrap: bootstrap-only
$(MAKE) generate-tsconfig build
clean-lib:
$(foreach source, $(SOURCES), \