diff --git a/index.js b/index.js new file mode 100644 index 0000000..f1bafa4 --- /dev/null +++ b/index.js @@ -0,0 +1,3 @@ +const Graph = require('bindings')('graph.node').Graph + +module.exports = Graph \ No newline at end of file diff --git a/package.json b/package.json index c5883fe..0ea9dd8 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@italocobains/graph", - "version": "1.0.6", + "version": "1.0.7", "description": "This is a lib write by c++ and nodejs addon api for graph algorithm.", - "main": "./dist/graph.js", + "main": "index.js", "scripts": { "test": "jest", "build": "tsc",