small fixes

This commit is contained in:
Nikita Sivukhin
2025-09-09 12:05:41 +04:00
parent 8160f4dc04
commit 816aa8b2bc
6 changed files with 3316 additions and 1213 deletions

View File

@@ -1,6 +1,8 @@
{
"scripts": {
"build": "npm run build --workspaces"
"build": "npm run build --workspaces",
"tsc-build": "npm run tsc-build --workspaces",
"test": "npm run test --workspaces"
},
"workspaces": [
"packages/core",

View File

@@ -11,7 +11,7 @@ const __wasi = new __WASI({
version: 'preview1',
})
const __wasmUrl = new URL('./turso.wasm32-wasi.debug.wasm', import.meta.url).href
const __wasmUrl = new URL('./turso.wasm32-wasi.wasm', import.meta.url).href
const __emnapiContext = __emnapiGetDefaultContext()

View File

@@ -8,6 +8,12 @@
"license": "MIT",
"main": "index.js",
"packageManager": "yarn@4.9.2",
"files": [
"index.js",
"worker.mjs",
"turso.wasm32-wasi.wasm",
"dist/**"
],
"devDependencies": {
"@napi-rs/cli": "^3.1.5",
"@napi-rs/wasm-runtime": "^1.0.3",

View File

@@ -18,6 +18,7 @@
},
"scripts": {
"tsc-build": "npm exec tsc",
"build": "npm run tsc-build"
"build": "npm run tsc-build",
"test": "echo 'no tests'"
}
}

View File

@@ -13,6 +13,10 @@
".": "./dist/promise.js",
"./compat": "./dist/compat.js"
},
"files": [
"index.js",
"dist/**"
],
"packageManager": "yarn@4.9.2",
"devDependencies": {
"@napi-rs/cli": "^3.1.5",
@@ -22,12 +26,13 @@
"vitest": "^3.2.4"
},
"scripts": {
"napi-build": "napi build --platform --release --esm --manifest-path ../../Cargo.toml --output-dir . && rm turso.wasi* wasi* browser.js",
"napi-build": "napi build --platform --release --esm --manifest-path ../../Cargo.toml --output-dir .",
"napi-dirs": "napi create-npm-dirs",
"napi-artifacts": "napi artifacts --output-dir .",
"tsc-build": "npm exec tsc",
"build": "npm run napi-build && npm run tsc-build",
"test": "vitest --run"
"test": "vitest --run",
"prepublishOnly": "npm run napi-dirs && npm run napi-artifacts && napi prepublish -t npm"
},
"napi": {
"binaryName": "turso",
@@ -35,8 +40,7 @@
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"universal-apple-darwin",
"aarch64-unknown-linux-gnu",
"wasm32-wasip1-threads"
"aarch64-unknown-linux-gnu"
]
},
"dependencies": {

File diff suppressed because it is too large Load Diff