DEV Community

Discussion on: Using TypeScript Project References to share common code

jameswallis profile image
James Wallis Author

Hi Ilya, thanks for commenting.

I added composite, declarationMap and declaration as the docs say they are required or recommended.

From the docs:
composite (required): Referenced projects must have the new composite setting enabled. This setting is needed to ensure TypeScript can quickly determine where to find the outputs of the referenced project.

declaration is required when you use composite

declarationMap (recommended): We’ve also added support for declaration source maps. If you enable --declarationMap, you’ll be able to use editor features like “Go to Definition” and Rename to transparently navigate and edit code across project boundaries in supported editors.

Relevant doc sections:

I don't know what would happen if I removed these settings, however.