From dd9d85edc31c2082d4e2bd1c7233222d7577e3b5 Mon Sep 17 00:00:00 2001 From: PupilTong <12288479+PupilTong@users.noreply.github.com> Date: Sat, 5 Mar 2022 21:56:37 +0800 Subject: [PATCH] fix import and tsc issues --- index.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 2fb7af0..2bf1851 100644 --- a/index.ts +++ b/index.ts @@ -100,4 +100,4 @@ const tuntap = function(options: any){ } return device; } -export = {Tap, Tun, tuntap}; \ No newline at end of file +export {Tap, Tun, tuntap}; \ No newline at end of file diff --git a/package.json b/package.json index a7a2efe..ec7ec92 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "description": "", "main": "./dist/index.js", - "types": "index.ts", + "types": "./dist/src/ts/index.d.ts", "scripts": { "install": "prebuild-install --runtime napi --tag-prefix '' || node-gyp rebuild", "build": "node-gyp rebuild && npx tsc --build",