Sharing code libraries between TypeScript projects

Опубликовано: 25 Октябрь 2024
на канале: Code Capers
4,391
42

We all know that we can share TypeScript code through npm, but did you know that there's a more direct way to share code between your TypeScript projects?

In this talk we will explore using TypeScript "project references" to created shared code libraries. It's a great approach that works well for both mono-repos and meta-repos

We'll look at some specific examples. How to share a code library into a Node.js application, then sharing code between microservices or Docker images and even how to share code between the frontend and the backend.

The example code from the talk is available here:
https://github.com/ashleydavis/sharin...

Blog post coming soon!

Follow the developer for updates:
  / ashleydavis75