Closed littlee closed 3 years ago
@littlee This happens because you (likely) haven't set your tsconfig.json
up correctly. You need to make sure both files are included by your config, for example:
{
...
"include": ["src/**/*"]
}
This ensures types/model.d.ts
gets created. See https://github.com/ezolenko/rollup-plugin-typescript2/issues/106#issuecomment-415461839
🤦 alright
Thought I'd update here that I fixed the root cause upstream in https://github.com/ezolenko/rollup-plugin-typescript2/pull/406, which was released in rpt2 0.34.0
.
The tsconfig
include
workaround should no longer be necessary, and one can now use tsconfig
files
instead.
src: index.ts
model.ts
package.json
after building,
./types
directory has only one file,model.d.ts
is missing