From 2350dc6ae4ffb1f1159c3ab7ca24856d37d18cc8 Mon Sep 17 00:00:00 2001 From: Nicholas Jamieson Date: Wed, 12 Aug 2020 09:05:34 +1000 Subject: [PATCH] fix: remove default import from .d.ts And add @types/browserify dependency. --- index.d.ts | 3 ++- package-lock.json | 22 ++++++++++++++++++++++ package.json | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 8e8fd33..96d23c0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,6 @@ import { BrowserifyObject, CustomOptions } from "browserify"; -import typescript, { CompilerOptions, ModuleKind, ScriptTarget } from "typescript"; +import * as typescript from "typescript"; +import { CompilerOptions, ModuleKind, ScriptTarget } from "typescript"; // Provide local definition of Omit for compatibility with TypeScript <3.5 type Omit = Pick>; diff --git a/package-lock.json b/package-lock.json index 8eefeda..a93e1a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,28 @@ "lockfileVersion": 1, "requires": true, "dependencies": { + "@types/browserify": { + "version": "12.0.36", + "resolved": "https://registry.npmjs.org/@types/browserify/-/browserify-12.0.36.tgz", + "integrity": "sha512-hYXvPod5upkYTC7auziOATFsu/0MGxozbzNI80sZV044JTF7UtstHeNOM52b+bg7/taZ3fheK7oeb+jpm4C0/w==", + "requires": { + "@types/insert-module-globals": "*", + "@types/node": "*" + } + }, + "@types/insert-module-globals": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@types/insert-module-globals/-/insert-module-globals-7.0.1.tgz", + "integrity": "sha512-qtSfo/jdYHO4jNO6QCp4CwR/TPrvR39Yan5K4nPU1iCmxcnTWiERKDXcvFGuXEmfpjrHeOCvrZPa0UrUsy+mvA==", + "requires": { + "@types/node": "*" + } + }, + "@types/node": { + "version": "14.0.27", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.27.tgz", + "integrity": "sha512-kVrqXhbclHNHGu9ztnAwSncIgJv/FaxmzXJvGXNdcCpV1b8u1/Mi6z6m0vwy0LzKeXFTPLH0NzwmoJ3fNCIq0g==" + }, "JSONStream": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.1.tgz", diff --git a/package.json b/package.json index 77f38de..d6e96a0 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "node": ">=0.12" }, "dependencies": { + "@types/browserify": "^12.0.36", "convert-source-map": "^1.1.0", "fs.realpath": "^1.0.0", "object-assign": "^4.1.0",