TypeStrong / dts-bundle

Export TypeScript .d.ts files as an external module definition
MIT License
308 stars 57 forks source link

Added support for Module Folders output. #39

Closed DxCx closed 8 years ago

DxCx commented 8 years ago

NPM introduced support for in-package typings, it is done by adding typings key into package.json file, which should refer to the typings file. when this is the case, the d.ts file is threated as module folder, and declare module is not allowed.

options outputAsModuleFolder was added to add support for module folder output.

tolemac commented 8 years ago

Thanks @dxcx, Tomorrow I'll test it and will try to merge it.

DxCx commented 8 years ago

Sure :) if you want to see example of usage, i already have 1 npm package that is using it: (Patched embeded tgz atm) link: https://www.npmjs.com/package/storage_service source: https://github.com/DxCx/storage_service (you can checkout the source and run npm run pack)