-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
63 lines (63 loc) · 2.11 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
62
63
{
"name": "unicode-shaper-rust",
"type": "module",
"version": "0.5.0",
"description": "Shape unicode text so that renderers like WebGL and WebGPU can properly display the glyphs.",
"keywords": [
"unicode",
"parser",
"shaper",
"Rust",
"LTR",
"Left to Right Text"
],
"exports": {
".": "./dist/index.js"
},
"directories": {
"lib": "dist"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"typescript": {
"main": "lib/index.ts"
},
"files": ["dist", "lib"],
"repository": {
"type": "git",
"url": "git+https://github.com/Open-S2/unicode-parser-rust.git"
},
"author": "Craig OConnor",
"license": "MIT",
"bugs": {
"url": "https://github.com/Open-S2/unicode-parser-rust/issues"
},
"homepage": "https://github.com/Open-S2/unicode-parser-rust#readme",
"devDependencies": {
"@skypack/package-check": "^0.2.2",
"@typescript-eslint/parser": "latest",
"bun-types": "^1.1.3",
"eslint": "^8.44.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-with-typescript": "^36.0.0",
"ts-standard": "*",
"typescript": "latest"
},
"scripts": {
"build": "bun run build:rust && bun run build:ts",
"build:ts": "rm -rf dist && mkdir dist && bun build.ts",
"build:rust": "bun build:rust:cargo && bun build:rust:optimize && bun build:rust:strip",
"build:rust:cargo": "cargo build --target wasm32-unknown-unknown --release",
"build:rust:optimize": "wasm-opt -O3 -o target/wasm32-unknown-unknown/release/optimized.wasm target/wasm32-unknown-unknown/release/unicode_shaper_rust.wasm",
"build:rust:strip": "wasm-strip target/wasm32-unknown-unknown/release/optimized.wasm",
"lint": "eslint lib/",
"lint:fix": "eslint lib/ --fix",
"types": "tsc --project tsconfig.types.json",
"prepare": "bun run lint && bun run build && bun run test && bun run types",
"package-check": "package-check",
"test": "cargo test && bun clippy && bun test",
"test:dev": "bun test --watch",
"clippy": "cargo clippy --target wasm32-unknown-unknown",
"bacon": "bacon -- --target wasm32-unknown-unknown"
}
}