Comparing version
@@ -1,17 +0,18 @@ | ||
import { BrowserifyObject, CustomOptions } from "browserify"; | ||
// Note that @types/browserify is not used for a reason: | ||
// https://github.com/TypeStrong/tsify/issues/267 | ||
import * as typescript from "typescript"; | ||
import { CompilerOptions, ModuleKind, ScriptTarget } from "typescript"; | ||
// Provide local definition of Omit for compatibility with TypeScript <3.5 | ||
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>; | ||
export interface Options extends CustomOptions, Omit<CompilerOptions, "project"> { | ||
export interface Options { | ||
exclude?: string[]; | ||
files?: string[]; | ||
global?: boolean; | ||
include?: string[]; | ||
m?: string; | ||
p?: string | Record<string, any>; | ||
project?: string | Record<string, any>; | ||
t?: string; | ||
typescript?: string | typeof typescript; | ||
global?: boolean; | ||
m?: ModuleKind; | ||
p?: string | CompilerOptions; | ||
project?: string | CompilerOptions; | ||
t?: ScriptTarget; | ||
} | ||
export default function tsify(b: BrowserifyObject, opts: Options): any; | ||
export default function tsify(b: any, opts: Options): any; |
{ | ||
"name": "tsify", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Browserify plugin for compiling Typescript", | ||
@@ -31,3 +31,2 @@ "main": "index.js", | ||
"dependencies": { | ||
"@types/browserify": "^12.0.36", | ||
"convert-source-map": "^1.1.0", | ||
@@ -34,0 +33,0 @@ "fs.realpath": "^1.0.0", |
@@ -132,2 +132,3 @@ # tsify | ||
* 5.0.2 - Remove `@types/browserify` and incorrect/undocumented use of TypeScript types in `tsify` signature. | ||
* 5.0.1 - Remove default import from `index.d.ts` and add `@types/browserify` dependency. | ||
@@ -134,0 +135,0 @@ * 5.0.0 - **Breaking**: Fix type declarations for TypeScript 4 compatibility. With this fix, the TypeScript version must be 2.8 or above. |
8
-11.11%645
0.16%235
0.43%43244
-0.24%- Removed
- Removed
- Removed
- Removed
- Removed