-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
61 lines (61 loc) · 1.92 KB
/
package.json
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
{
"name": "@chatluna/luna-vdb",
"version": "0.0.9",
"description": "lightweight vector database implementation in rust",
"keywords": [
"rust",
"vector",
"luna-vdb",
"chatluna"
],
"license": "MIT",
"main": "./pkg/nodejs/luna_vdb.js",
"types": "./pkg/nodejs/luna_vdb.d.ts",
"exports": {
".": {
"node": {
"types": "./pkg/nodejs/luna_vdb.d.ts",
"default": "./pkg/nodejs/luna_vdb.js"
},
"browser": {
"types": "./pkg/web/luna_vdb.d.ts",
"default": "./pkg/web/luna_vdb.js"
},
"import": {
"types": "./pkg/web/luna_vdb.d.ts",
"default": "./pkg/web/luna_vdb.js"
},
"require": {
"types": "./pkg/nodejs/luna_vdb.d.ts",
"default": "./pkg/nodejs/luna_vdb.js"
}
}
},
"scripts": {
"build": "run-s build:cargo build:web build:node",
"build:cargo": "cargo build --release --target wasm32-unknown-unknown",
"build:web": "wasm-bindgen target/wasm32-unknown-unknown/release/luna_vdb.wasm --out-dir ./pkg/web --target web",
"build:node": "wasm-bindgen target/wasm32-unknown-unknown/release/luna_vdb.wasm --out-dir ./pkg/nodejs --target nodejs",
"pub": "cross-env-shell node ./scripts/publish.js",
"bump": "cross-env-shell node ./scripts/bump.js",
"test": "run-s test:web test:node",
"test:web": "wasm-pack test --chrome --headless",
"test:node": "wasm-pack test --node"
},
"files": [
"pkg/**/*",
"package.json",
"README.md"
],
"devDependencies": {
"@wasm-tool/wasm-pack-plugin": "^1.7.0",
"cross-env": "^7.0.3",
"npm-run-all": "^4.1.5"
},
"author": "dingyi222666 <dingyi222666@foxmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/ChatLunaLab/luna-vdb.git"
},
"packageManager": "yarn@4.5.0+sha512.837566d24eec14ec0f5f1411adb544e892b3454255e61fdef8fd05f3429480102806bac7446bc9daff3896b01ae4b62d00096c7e989f1596f2af10b927532f39"
}