- updating package.json for minimum rollup version

- readme
- fix for linter warnings
- package version
This commit is contained in:
Eugene Zolenko 2019-10-28 10:51:27 -06:00
parent c20a19fe34
commit 6cfddd4f74
8 changed files with 15 additions and 13 deletions

View File

@ -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

View File

@ -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}`);
@ -27460,7 +27460,7 @@ const typescript = (options) => {
this.emitFile({
type: "asset",
source: entry.text,
fileName: relativePath
fileName: relativePath,
});
}
};

File diff suppressed because one or more lines are too long

View File

@ -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}`);
@ -27454,7 +27454,7 @@ const typescript = (options) => {
this.emitFile({
type: "asset",
source: entry.text,
fileName: relativePath
fileName: relativePath,
});
}
};

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "rollup-plugin-typescript2",
"version": "0.24.4",
"version": "0.25.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -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",
@ -36,7 +36,7 @@
"tslib": "1.10.0"
},
"peerDependencies": {
"rollup": ">=0.68.0",
"rollup": ">=1.26.0",
"typescript": ">=2.4.0"
},
"devDependencies": {
@ -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",

View File

@ -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,
});
}
};