Skip to content

Commit 949c6ed

Browse files
author
Mohsen Azimi
committed
Emit the created content as well
1 parent d39c60d commit 949c6ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ module.exports = function(source, map) {
2020
// creator.create(..., source) tells the module to operate on the
2121
// source variable. Check API for more details.
2222
creator.create(this.resourcePath, source).then(content => {
23+
// Emit the created content as well
24+
this.emitFile(this.resourcePath + '.d.ts', content.contents || ['']);
2325
content.writeFile().then(_ => {
2426
callback(null, source, map);
2527
});

0 commit comments

Comments
 (0)