@rollup/plugin-typescript
Advanced tools
Comparing version 8.1.0 to 8.1.1
# @rollup/plugin-typescript ChangeLog | ||
## v8.1.1 | ||
_2021-01-29_ | ||
### Bugfixes | ||
- fix: fix plugin type declarations (#647) | ||
- fix: only emit tsbuildinfo file when there is something to emit (#771) | ||
## v8.1.0 | ||
@@ -4,0 +13,0 @@ |
@@ -736,7 +736,11 @@ import path, { resolve, dirname, relative, win32, posix, normalize } from 'path'; | ||
if (tsBuildInfoPath) { | ||
this.emitFile({ | ||
type: 'asset', | ||
fileName: normalizePath(relative(outputOptions.dir, tsBuildInfoPath)), | ||
source: emittedFiles.get(tsBuildInfoPath) | ||
}); | ||
const tsBuildInfoSource = emittedFiles.get(tsBuildInfoPath); | ||
// https://github.com/rollup/plugins/issues/681 | ||
if (tsBuildInfoSource) { | ||
this.emitFile({ | ||
type: 'asset', | ||
fileName: normalizePath(relative(outputOptions.dir, tsBuildInfoPath)), | ||
source: tsBuildInfoSource | ||
}); | ||
} | ||
} | ||
@@ -743,0 +747,0 @@ } |
@@ -764,7 +764,11 @@ 'use strict'; | ||
if (tsBuildInfoPath) { | ||
this.emitFile({ | ||
type: 'asset', | ||
fileName: normalizePath(path.relative(outputOptions.dir, tsBuildInfoPath)), | ||
source: emittedFiles.get(tsBuildInfoPath) | ||
}); | ||
const tsBuildInfoSource = emittedFiles.get(tsBuildInfoPath); | ||
// https://github.com/rollup/plugins/issues/681 | ||
if (tsBuildInfoSource) { | ||
this.emitFile({ | ||
type: 'asset', | ||
fileName: normalizePath(path.relative(outputOptions.dir, tsBuildInfoPath)), | ||
source: tsBuildInfoSource | ||
}); | ||
} | ||
} | ||
@@ -771,0 +775,0 @@ } |
{ | ||
"name": "@rollup/plugin-typescript", | ||
"version": "8.1.0", | ||
"version": "8.1.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -41,3 +41,3 @@ import { FilterPattern } from '@rollup/pluginutils'; | ||
type ElementType<T extends Array<any>> = T extends (infer U)[] ? U : never; | ||
type ElementType<T extends Array<any> | undefined> = T extends (infer U)[] ? U : never; | ||
@@ -44,0 +44,0 @@ export type TransformerStage = keyof CustomTransformers; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88196
1556