Skip to content

Commit bc5b419

Browse files
committed
- merging #190
- readme and tslint updates
1 parent 46c3127 commit bc5b419

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ See [#108](https://github.com/ezolenko/rollup-plugin-typescript2/issues/108)
165165
* `useTsconfigDeclarationDir`: false
166166

167167
If true, declaration files will be emitted in the directory given in the tsconfig. If false, the declaration files will be placed inside the destination directory given in the Rollup configuration.
168+
169+
Set to false if any other rollup plugins need access to declaration files.
168170

169171
* `typescript`: typescript module installed with the plugin
170172

@@ -206,7 +208,7 @@ Otherwise the plugin should work in watch mode. Make sure to run a normal build
206208
### Requirements
207209

208210
TypeScript `2.4+`
209-
Rollup `1.26.0+`
211+
Rollup `1.26.3+`
210212
Node `6.4.0+` (basic es6 support)
211213

212214
### Reporting bugs

dist/rollup-plugin-typescript2.cjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27460,7 +27460,7 @@ const typescript = (options) => {
2746027460
this.emitFile({
2746127461
type: "asset",
2746227462
source: entry.text,
27463-
fileName: relativePath
27463+
fileName: relativePath,
2746427464
});
2746527465
}
2746627466
};

dist/rollup-plugin-typescript2.cjs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollup-plugin-typescript2.es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27454,7 +27454,7 @@ const typescript = (options) => {
2745427454
this.emitFile({
2745527455
type: "asset",
2745627456
source: entry.text,
27457-
fileName: relativePath
27457+
fileName: relativePath,
2745827458
});
2745927459
}
2746027460
};

dist/rollup-plugin-typescript2.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,13 @@ const typescript: PluginImpl<Partial<IOptions>> = (options) =>
356356
tsModule.sys.writeFile(fileName, entry.text, entry.writeByteOrderMark);
357357
}
358358
else
359-
{
359+
{
360360
const relativePath = relative(process.cwd(), fileName);
361361
context.debug(() => `${blue("emitting declarations")} for '${key}' to '${relativePath}'`);
362362
this.emitFile({
363363
type: "asset",
364364
source: entry.text,
365-
fileName: relativePath
365+
fileName: relativePath,
366366
});
367367
}
368368
};

0 commit comments

Comments
 (0)