Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thdk/ts3-projects-references-example

A small example for 'Project References'. A typescript feature introduced in version 3.0.
https://github.com/thdk/ts3-projects-references-example

Last synced: about 18 hours ago
JSON representation

A small example for 'Project References'. A typescript feature introduced in version 3.0.

Awesome Lists containing this project

README

        

# Typescript 3.0+ feature 'Project references'

A small example for 'Project References'. A typescript feature introduced in version 3.0.

This repo has two branches:
- es
- commonjs

The project structure exists of three projects.

- common
- project-a
- project-b

Each having their own tsconfig file.

**project-a** and **project-b** both have a reference in tsconfig to the **common** project.

To build both **project-a** and **project-b** run

`tsc -b project-a project-b` or `npm run buildAll`

The lib project will be automatically build as it is listed as a reference.