dts-generator icon indicating copy to clipboard operation
dts-generator copied to clipboard

Use of tsconfig forces double naming

Open babeal opened this issue 9 years ago • 0 comments

It looks like we are required to set the project and the name config attributes. Since my typescript is held in a subfolder then the output d.ts file paths are name/subfolder, which happen to be the same name. I used to be able to set a baseDir that would get right of the subfolder name so that the output would be "name/subfilepath". This way the d.ts files would match up with the exact path of the project files. As it is, it's not usuable. I'm not sure what settings I need to get this working.

Folder Structure /project/file.ts

Usage import * from 'project/file'

dts-generator output configname/project/file

How do I get rid of either the project directory or the leading name to get the d.ts files to match the usage in the project?

If i don't supply a name then an exception is thrown. If i supply an empty string for a name, all paths are prefixed with a '/' which is also incorrect.

babeal avatar Dec 15 '15 07:12 babeal