Skip to content

Commit

Permalink
fix: npm package export (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma233 committed Jan 22, 2024
1 parent 21b3f64 commit 40e1661
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
import init from "./rings_node";

export default init;

export * from "./rings_node";
export * from "./rings_node_proto";
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
],
"module": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"main": "dist/index.js",
"sideEffects": false,
"keywords": [
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"compilerOptions": {
"outDir": "./dist",
"module": "commonjs",
"target": "es5",
"target": "es6",
"declaration": true,
"esModuleInterop": true
}
Expand Down

0 comments on commit 40e1661

Please sign in to comment.