Skip to content

Commit

Permalink
- merging #190
Browse files Browse the repository at this point in the history
- readme and tslint updates
  • Loading branch information
ezolenko committed Nov 5, 2019
1 parent 46c3127 commit bc5b419
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ See [#108](https://github.com/ezolenko/rollup-plugin-typescript2/issues/108)
* `useTsconfigDeclarationDir`: false

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.

Set to false if any other rollup plugins need access to declaration files.

* `typescript`: typescript module installed with the plugin

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

TypeScript `2.4+`
Rollup `1.26.0+`
Rollup `1.26.3+`
Node `6.4.0+` (basic es6 support)

### Reporting bugs
Expand Down
2 changes: 1 addition & 1 deletion dist/rollup-plugin-typescript2.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -27460,7 +27460,7 @@ const typescript = (options) => {
this.emitFile({
type: "asset",
source: entry.text,
fileName: relativePath
fileName: relativePath,
});
}
};
Expand Down
2 changes: 1 addition & 1 deletion dist/rollup-plugin-typescript2.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rollup-plugin-typescript2.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -27454,7 +27454,7 @@ const typescript = (options) => {
this.emitFile({
type: "asset",
source: entry.text,
fileName: relativePath
fileName: relativePath,
});
}
};
Expand Down
2 changes: 1 addition & 1 deletion dist/rollup-plugin-typescript2.es.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,13 @@ const typescript: PluginImpl<Partial<IOptions>> = (options) =>
tsModule.sys.writeFile(fileName, entry.text, entry.writeByteOrderMark);
}
else
{
{
const relativePath = relative(process.cwd(), fileName);
context.debug(() => `${blue("emitting declarations")} for '${key}' to '${relativePath}'`);
this.emitFile({
type: "asset",
source: entry.text,
fileName: relativePath
fileName: relativePath,
});
}
};
Expand Down

0 comments on commit bc5b419

Please sign in to comment.