@rollup/plugin-typescript
Advanced tools
Comparing version 4.0.0 to 4.1.0
# @rollup/plugin-typescript ChangeLog | ||
## v4.1.0 | ||
_2020-04-12_ | ||
### Features | ||
- feat: Refine options interface (#284) | ||
## v4.0.0 | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "@rollup/plugin-typescript", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"publishConfig": { | ||
@@ -47,3 +47,3 @@ "access": "public" | ||
"peerDependencies": { | ||
"rollup": "^1.20.0", | ||
"rollup": "^1.20.0||^2.0.0", | ||
"tslib": "*", | ||
@@ -61,3 +61,3 @@ "typescript": ">=2.1.0" | ||
"buble": "^0.19.8", | ||
"rollup": "^1.27.14", | ||
"rollup": "^2.0.0", | ||
"tslib": "^1.10.0", | ||
@@ -64,0 +64,0 @@ "typescript": "^3.7.4" |
import { FilterPattern } from '@rollup/pluginutils'; | ||
import { Plugin } from 'rollup'; | ||
import { CompilerOptionsValue, TsConfigSourceFile } from 'typescript'; | ||
import { CompilerOptions } from 'typescript'; | ||
export interface RollupTypescriptOptions { | ||
export interface RollupTypescriptPluginOptions { | ||
/** | ||
* Other Typescript compiler options. | ||
*/ | ||
[option: string]: | ||
| CompilerOptionsValue | ||
| TsConfigSourceFile | ||
| RollupTypescriptOptions['include'] | ||
| RollupTypescriptOptions['typescript'] | ||
| RollupTypescriptOptions['tslib'] | ||
| undefined; | ||
/** | ||
* Determine which files are transpiled by Typescript (all `.ts` and | ||
@@ -43,2 +32,14 @@ * `.tsx` files by default). | ||
/** Properties of `CompilerOptions` that are normally enums */ | ||
export type EnumCompilerOptions = 'module' | 'moduleResolution' | 'newLine' | 'jsx' | 'target'; | ||
/** JSON representation of Typescript compiler options */ | ||
export type JsonCompilerOptions = Omit<CompilerOptions, EnumCompilerOptions> & | ||
Record<EnumCompilerOptions, string>; | ||
/** Compiler options set by the plugin user. */ | ||
export type PartialCompilerOptions = Partial<CompilerOptions> | Partial<JsonCompilerOptions>; | ||
export type RollupTypescriptOptions = RollupTypescriptPluginOptions & PartialCompilerOptions; | ||
/** | ||
@@ -45,0 +46,0 @@ * Seamless integration between Rollup and Typescript. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
63289
7
0
1073