Move type declarations to root dir
ingver opened this issue · 3 comments
ingver commented
In current version (1.0.0) type declarations are published under dist/ts/src
and when importing for example by the default VS Code action, the result is:
Besides unfancy look, it leads to error during compilation
Module not found: Error: Can't resolve 'constate/dist/ts/src' in 'C:\source\project\src'
...
diegohaz commented
That's a bug in VSCode/IntelliSense, isn't it?
Does it work if you manually remove /dist/ts/src
?
ingver commented
That's a bug in VSCode/IntelliSense, isn't it?
Not sure. Should it work another way? If .d.ts
file is in /dist/ts/src
, why should it point to /
?
Does it work if you manually remove
/dist/ts/src
?
Yep, it works. But I must manually write import or edit every auto-import statement.