Skip to content

Commit 6cfddd4

Browse files
committed
- updating package.json for minimum rollup version
- readme - fix for linter warnings - package version
1 parent c20a19f commit 6cfddd4

8 files changed

+15
-13
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ See [#108](https://github.com/ezolenko/rollup-plugin-typescript2/issues/108)
164164

165165
* `useTsconfigDeclarationDir`: false
166166

167-
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.
167+
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.
168+
169+
Set to false if you want other plugins to see type declarations.
168170

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

dist/rollup-plugin-typescript2.cjs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27283,7 +27283,7 @@ const typescript = (options) => {
2728327283
context.info(`rollup version: ${this.meta.rollupVersion}`);
2728427284
if (!semver_32(tsModule.version, ">=2.4.0", { includePrerelease: true }))
2728527285
throw new Error(`Installed typescript version '${tsModule.version}' is outside of supported range '>=2.4.0'`);
27286-
context.info(`rollup-plugin-typescript2 version: 0.25.0`);
27286+
context.info(`rollup-plugin-typescript2 version: 0.25.1`);
2728727287
context.debug(() => `plugin options:\n${JSON.stringify(pluginOptions, (key, value) => key === "typescript" ? `version ${value.version}` : value, 4)}`);
2728827288
context.debug(() => `rollup config:\n${JSON.stringify(rollupOptions, undefined, 4)}`);
2728927289
context.debug(() => `tsconfig path: ${tsConfigPath}`);
@@ -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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rollup-plugin-typescript2.es.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27277,7 +27277,7 @@ const typescript = (options) => {
2727727277
context.info(`rollup version: ${this.meta.rollupVersion}`);
2727827278
if (!semver_32(tsModule.version, ">=2.4.0", { includePrerelease: true }))
2727927279
throw new Error(`Installed typescript version '${tsModule.version}' is outside of supported range '>=2.4.0'`);
27280-
context.info(`rollup-plugin-typescript2 version: 0.25.0`);
27280+
context.info(`rollup-plugin-typescript2 version: 0.25.1`);
2728127281
context.debug(() => `plugin options:\n${JSON.stringify(pluginOptions, (key, value) => key === "typescript" ? `version ${value.version}` : value, 4)}`);
2728227282
context.debug(() => `rollup config:\n${JSON.stringify(rollupOptions, undefined, 4)}`);
2728327283
context.debug(() => `tsconfig path: ${tsConfigPath}`);
@@ -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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rollup-plugin-typescript2",
3-
"version": "0.25.0",
3+
"version": "0.25.1",
44
"description": "Seamless integration between Rollup and TypeScript. Now with errors.",
55
"main": "dist/rollup-plugin-typescript2.cjs.js",
66
"module": "dist/rollup-plugin-typescript2.es.js",
@@ -36,7 +36,7 @@
3636
"tslib": "1.10.0"
3737
},
3838
"peerDependencies": {
39-
"rollup": ">=0.68.0",
39+
"rollup": ">=1.26.0",
4040
"typescript": ">=2.4.0"
4141
},
4242
"devDependencies": {
@@ -54,7 +54,7 @@
5454
"lodash": "4.17.15",
5555
"object-hash": "1.3.1",
5656
"rimraf": "3.0.0",
57-
"rollup": "^1.25.1 ",
57+
"rollup": "^1.26.0 ",
5858
"rollup-plugin-commonjs": "10.1.0",
5959
"rollup-plugin-node-resolve": "5.2.0",
6060
"rollup-plugin-re": "1.0.7",

src/index.ts

+2-2
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)