I am new to typescript. I'm currently trying to create a project structure with dependencies with each other. There are three core projects, calculator and tax-calculator . The tax-calculator project needs code from the calculator project, which requires content from the core project. The core and calculator project must be a library, and the tax-calculator must be a web interface. The reason I am sharing the code is because I need core and calculator in other projects.
core |--src |--MathUtils.ts |--... |--dist |--MathUtils.js calculator |--src |--Calculator.ts // needs MathUtils.ts |--dist |--Calculator.js tax-calculator |--src |--TaxCalculator.ts // needs Calculator.ts |--dist |--TaxCalculator.js
How can I indicate that sources are available in other projects using npm or webpack ? I use VisualStudio Code, I want to use autocomplete and other functions in development, for example, when I use @types/chrome or other types.
source share