Reproduction repo to discuss the need (or not) to pass the option tsconfig from svelte-package to emitDts
of svelte2tsx.
After cloning this repo, run npm install && npm run build
.
You can observe that svelte-package added .d.ts files into the source code of packages/headless.
- Be able to clone the project and navigate through the code in VSCode without having to run any build command.
- Have changes made in the headless refreshed when running
npm run dev -w packages/styled
- svelte-package transpiling my ts code and generating types, but ONLY for the package it's running on
- Making sure the build / check stages of the styled package uses the dist of the headless package