Fix Wasm packaging

The `wasm-pack` too has a known bug where it forgets to add snippets to
`package.json`:

https://github.com/rustwasm/wasm-pack/issues/1206

Let's fix that with some bash magic.
This commit is contained in:
Pekka Enberg 2024-11-13 11:28:22 +02:00
parent 2ce57f6d34
commit 40f517b03f
4 changed files with 34 additions and 1 deletions

View file

@ -2,4 +2,4 @@ import { Database } from 'limbo-wasm';
const db = new Database('hello.db');
db.exec("SELECT 'hello, world' AS message");
console.log(db.exec("SELECT 'hello, world' AS message"));