Skip to content

Commit

Permalink
Add support for Node.js
Browse files Browse the repository at this point in the history
This is a port of upstream sqlite/sqlite-wasm#48
  • Loading branch information
penberg committed Jan 15, 2024
1 parent 2b7521a commit 0c81588
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions node.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { default as sqlite3InitModule } from './sqlite-wasm/jswasm/sqlite3-node.mjs';

export default sqlite3InitModule;
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@
"origin-private-file-system"
],
"main": "index.mjs",
"node": "node.mjs",
"type": "module",
"files": [
"index.d.ts",
"index.mjs",
"node.mjs",
"sqlite-wasm/"
],
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"node": "./node.mjs",
"import": "./index.mjs",
"main": "./index.mjs",
"browser": "./index.mjs"
Expand Down

0 comments on commit 0c81588

Please sign in to comment.