When importing interface from my-component.tsx like this: import {User} from "../../../../models/User";
and running build, a js-file is generated (webcomponents/models/User.js
).
Steps to reproduce:
- npm run build
- see that file
webcomponents/models/User.js
has been generated
How to stop it from doing that? :)
UPDATE:
Renaming models/User.ts
to models/User.d.ts
fixed the issue 🎉
Reference: microsoft/TypeScript#15950