Skip to content

Commit

Permalink
fix import and tsc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PupilTong committed Mar 5, 2022
1 parent 680107b commit dd9d85e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ const tuntap = function(options: any){
}
return device;
}
export = {Tap, Tun, tuntap};
export {Tap, Tun, tuntap};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dd9d85e

Please sign in to comment.