Skip to content

Commit

Permalink
- updating package.json for minimum rollup version
Browse files Browse the repository at this point in the history
- readme
- fix for linter warnings
- package version
  • Loading branch information
ezolenko committed Oct 28, 2019
1 parent c20a19f commit 6cfddd4
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ 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.
If true, declaration files will be written in the directory given in the tsconfig. If false, the declaration files will be emitted and rollup will place them inside the destination directory given in the Rollup configuration.

Set to false if you want other plugins to see type declarations.

* `typescript`: typescript module installed with the plugin

Expand Down
4 changes: 2 additions & 2 deletions dist/rollup-plugin-typescript2.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -27283,7 +27283,7 @@ const typescript = (options) => {
context.info(`rollup version: ${this.meta.rollupVersion}`);
if (!semver_32(tsModule.version, ">=2.4.0", { includePrerelease: true }))
throw new Error(`Installed typescript version '${tsModule.version}' is outside of supported range '>=2.4.0'`);
context.info(`rollup-plugin-typescript2 version: 0.25.0`);
context.info(`rollup-plugin-typescript2 version: 0.25.1`);
context.debug(() => `plugin options:\n${JSON.stringify(pluginOptions, (key, value) => key === "typescript" ? `version ${value.version}` : value, 4)}`);
context.debug(() => `rollup config:\n${JSON.stringify(rollupOptions, undefined, 4)}`);
context.debug(() => `tsconfig path: ${tsConfigPath}`);
Expand Down 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.

4 changes: 2 additions & 2 deletions dist/rollup-plugin-typescript2.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -27277,7 +27277,7 @@ const typescript = (options) => {
context.info(`rollup version: ${this.meta.rollupVersion}`);
if (!semver_32(tsModule.version, ">=2.4.0", { includePrerelease: true }))
throw new Error(`Installed typescript version '${tsModule.version}' is outside of supported range '>=2.4.0'`);
context.info(`rollup-plugin-typescript2 version: 0.25.0`);
context.info(`rollup-plugin-typescript2 version: 0.25.1`);
context.debug(() => `plugin options:\n${JSON.stringify(pluginOptions, (key, value) => key === "typescript" ? `version ${value.version}` : value, 4)}`);
context.debug(() => `rollup config:\n${JSON.stringify(rollupOptions, undefined, 4)}`);
context.debug(() => `tsconfig path: ${tsConfigPath}`);
Expand Down 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.

2 changes: 1 addition & 1 deletion package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rollup-plugin-typescript2",
"version": "0.25.0",
"version": "0.25.1",
"description": "Seamless integration between Rollup and TypeScript. Now with errors.",
"main": "dist/rollup-plugin-typescript2.cjs.js",
"module": "dist/rollup-plugin-typescript2.es.js",
Expand Down Expand Up @@ -36,7 +36,7 @@
"tslib": "1.10.0"
},
"peerDependencies": {
"rollup": ">=0.68.0",
"rollup": ">=1.26.0",
"typescript": ">=2.4.0"
},
"devDependencies": {
Expand All @@ -54,7 +54,7 @@
"lodash": "4.17.15",
"object-hash": "1.3.1",
"rimraf": "3.0.0",
"rollup": "^1.25.1 ",
"rollup": "^1.26.0 ",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-re": "1.0.7",
Expand Down
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 6cfddd4

Please sign in to comment.