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: 3 months ago
JSON representation
A small example for 'Project References'. A typescript feature introduced in version 3.0.
- Host: GitHub
- URL: https://github.com/thdk/ts3-projects-references-example
- Owner: thdk
- License: mit
- Created: 2019-02-19T18:03:55.000Z (over 6 years ago)
- Default Branch: es
- Last Pushed: 2019-02-23T08:53:18.000Z (over 6 years ago)
- Last Synced: 2025-04-13T13:16:40.420Z (3 months ago)
- Language: TypeScript
- Size: 12.7 KB
- Stars: 49
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
- commonjsThe project structure exists of three projects.
- common
- project-a
- project-bEach 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.