Skip to content

Commit

Permalink
adds entry that forces require usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nitaliano committed Nov 20, 2024
1 parent 8a74f97 commit 137dde0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/toml-parser/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { parseToml } = require('./index.node');

module.exports = { parseToml };
3 changes: 1 addition & 2 deletions packages/toml-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "toml-parser",
"type": "module",
"main": "./index.node",
"version": "0.0.1",
"main": "./index.js",
"scripts": {
"build": "napi build --release",
"test": "cargo test",
Expand Down

0 comments on commit 137dde0

Please sign in to comment.