-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
85 lines (85 loc) · 3.21 KB
/
package.json
File metadata and controls
85 lines (85 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"name": "web-sqlite-js",
"version": "2.3.0",
"description": "web-sqlite-js is a friendly, out-of-the-box SQLite database for the web that makes persistent client-side storage simple for every developer.",
"workspaces": [
"vitepress-docs"
],
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"author": "wuchuheng <root@wuchuheng.com>",
"keywords": [
"sqlite",
"wasm",
"opfs",
"web-worker",
"database",
"typescript",
"web-sqlite"
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"scripts": {
"test": "npm run build && npm run lint && npm run test:unit && npm run test:e2e ",
"test:unit": "vitest run --config vitest.unit.config.ts --coverage",
"http": "tsx scripts/http-service.ts ./ --port 8500 --base-url /samples/index.html",
"http:docs": "tsx scripts/http-service.ts ./vitepress-docs/.vitepress/dist --port 8399",
"test:e2e": "HEADERS='true' vitest run --config vitest.e2e.config.ts",
"test:debug": "vitest run --config vitest.e2e.config.ts --no-file-parallelism",
"prebuild": "npx wasm-opt -Oz --all-features src/jswasm/sqlite3.wasm -o src/jswasm/sqlite3.wasm.tmp && gzip -9 -c src/jswasm/sqlite3.wasm.tmp | base64 -w 0 > src/jswasm/sqlite3.wasm.base64 && echo \"export const wasmBase64 = '$(cat src/jswasm/sqlite3.wasm.base64)';\" > src/jswasm/wasm-asset.js && rm src/jswasm/sqlite3.wasm.tmp src/jswasm/sqlite3.wasm.base64 && npx tsx scripts/bundle-proxy-asset.ts",
"build": "MINIFY=true vite build",
"build:dev": "SOURCE_MAP=true vite build",
"build:watch": "vite build --watch",
"lint": "eslint . --ext .ts --fix; npm run typecheck && npm run format",
"typecheck": "tsc --noEmit",
"format": "prettier --ignore-path .gitignore --write .",
"package:compress": "npm pack",
"package:publish": "npm run test && npm run build && npm publish --access public",
"docs:dev": "npm run dev --workspace=@web-sqlite-js/vitepress-docs",
"docs:build": "npm run build --workspace=@web-sqlite-js/vitepress-docs",
"docs:preview": "npm run preview --workspace=@web-sqlite-js/vitepress-docs",
"docs:icons": "npm run icons --workspace=@web-sqlite-js/vitepress-docs",
"docs:deploy": "cd vitepress-docs && ./deploy.sh"
},
"files": [
"dist"
],
"devDependencies": {
"@eslint/css": "^0.14.1",
"@eslint/js": "^9.39.2",
"@eslint/json": "^0.14.0",
"@types/node": "^25.0.1",
"@vitest/browser": "^4.0.15",
"@vitest/browser-playwright": "^4.0.15",
"@vitest/coverage-v8": "4.0.15",
"@vitest/ui": "^4.0.15",
"binaryen": "^125.0.0",
"commander": "^14.0.2",
"eslint": "^9.39.2",
"globals": "^16.5.0",
"http-server": "^14.1.1",
"jiti": "^2.6.1",
"playwright": "^1.57.0",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.49.0",
"vite": "^7.2.7",
"vite-plugin-dts": "^4.5.4",
"vitest": "^4.0.15"
},
"repository": {
"type": "git",
"url": "git+https://github.com/wuchuheng/web-sqlite-js.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/wuchuheng/web-sqlite-js/issues"
},
"homepage": "https://web-sqlite-js.wuchuheng.com"
}