Skip to content

Commit

Permalink
fix: add dirname to fix binary import
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac Pullen committed Oct 14, 2021
1 parent da046b1 commit ebfc0fd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as nbind from '@mcesystems/nbind';
import * as LibTypes from './lib-types';

const lib = nbind.init<typeof LibTypes>().lib;
const lib = nbind.init<typeof LibTypes>(__dirname).lib;

export const TeosSea = lib.TeosSea;

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"homepage": "https://github.com/Greenroom-Robotics/GSW-node#readme",
"dependencies": {
"@mcesystems/nbind": "^0.3.18",
"@types/node": "^16.10.9",
"autogypi": "^0.2.2",
"cmake-js": "^6.2.1",
"copyfiles": "^2.4.1",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"types": ["jest"]
"types": ["jest", "node"]
},
"include": [
"lib-types.d.ts",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,11 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.10.4.tgz#592f12b0b5f357533ddc3310b0176d42ea3e45d1"
integrity sha512-EITwVTX5B4nDjXjGeQAfXOrm+Jn+qNjDmyDRtWoD+wZsl/RDPRTFRKivs4Mt74iOFlLOrE5+Kf+p5yjyhm3+cA==

"@types/node@^16.10.9":
version "16.10.9"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.10.9.tgz#8f1cdd517972f76a3b928298f4c0747cd6fef25a"
integrity sha512-H9ReOt+yqIJPCutkTYjFjlyK6WEMQYT9hLZMlWtOjFQY2ItppsWZ6RJf8Aw+jz5qTYceuHvFgPIaKOHtLAEWBw==

"@types/normalize-package-data@^2.4.0":
version "2.4.1"
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301"
Expand Down

0 comments on commit ebfc0fd

Please sign in to comment.