bindings/javascript: Fix npm run build

Fixes the following error:

```
                This is not the tsc command you are looking for

To get access to the TypeScript compiler, tsc, from the command line either:

- Use npm install typescript to first add TypeScript to your project before using npx
- Use yarn to avoid accidentally running code from un-installed packages
```
This commit is contained in:
Pekka Enberg
2025-08-08 09:22:31 +03:00
parent ba6bf7057e
commit 5ef58db941
3 changed files with 1934 additions and 3375 deletions

View File

@@ -34,7 +34,6 @@
"@napi-rs/wasm-runtime": "^1.0.1",
"ava": "^6.0.1",
"better-sqlite3": "^11.9.1",
"tsc": "^2.0.4",
"typescript": "^5.9.2"
},
"ava": {
@@ -45,7 +44,7 @@
},
"scripts": {
"artifacts": "napi artifacts",
"build": "napi build --platform --release --esm && tsc",
"build": "napi build --platform --release --esm && npm exec tsc",
"build:debug": "napi build --platform",
"prepublishOnly": "napi prepublish -t npm",
"test": "true",