Comments (8)
I'm having this same problem.
Indeed, renaming the folder or file resolves the problem. But this is not an option when bundling third party dts files.
from dts-bundle.
Sorry about that, I have no much free time lately, and I'm involved in others projects, ...
In addition I have stopped using "dts-bundle" in personal projects 1 year ago, I think is not needed currently.
Can you make a pull request with the solution?
from dts-bundle.
Thanks for your answer.
Personally, I haven't found a better solution than using your plugin to bundle all definition files into a single one. It's the only way to expose and consume easily classes accross several modules, without having to hand-create a huge hierarchy of definition files. But maybe you found something better in the meantime ?
That said, I'm not sure what the solution is, but I suspect that at line 587, you just check if the file is a directory, but you should probably also test that there is no file with the same name.
What do you think about this ?
from dts-bundle.
No need to apologize, @tolemac , this is an open project. Thanks a lot for your time spent here. ;)
I don't have much time available too, but I'll try to take a look when possible. Thanks.
from dts-bundle.
@esugoi the slowest part is to build a test case ... :(
@djflex68 Most of projects used to distribute several .d.ts
files, Angular for example, you can take a look to my project tolefocus where I distribute .d.ts and .js files and is easy to use from npm.
from dts-bundle.
I have merged the pull request by @esugoi that fixes it.
If you have any problem tell me here.
Best regards!
from dts-bundle.
Glad I could help. :)
In my case I bundled dts files of the angular project and it worked like a charm. ;)
Thanks for your work, @tolemac .
from dts-bundle.
Many thanks @esugoi and @tolemac for the work and help :-)
from dts-bundle.
Related Issues (20)
- removeSource option deletes .d.ts files within node modules HOT 3
- Export as default edge case
- A 'declare' modifier is required for a top level declaration in a .d.ts file. HOT 4
- Unable to reference external typings HOT 2
- Duplicated imports after bundle into single .d.ts file HOT 3
- Reexporting module as named export for module library HOT 4
- bug? declare module 'yargs2/index//yargs' HOT 2
- Bundle includes more than it should when using main
- dts-bundle generates circular dependencies HOT 1
- fs.writeFileSync passes the encoding the wrong way
- tsconfig.json paths HOT 2
- Add support to export as namespace HOT 1
- "already got export for:"
- All d.ts files bug with scoped package
- Interfaces with same name in separate files are combined
- Bundler fails for all declarations if project name contains slash HOT 1
- Declaration for style files
- Relative import error with namespace
- Project seems dead. dts-bundle-generator looks like an alternative.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dts-bundle.