-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
57 lines (57 loc) · 1.64 KB
/
package.json
File metadata and controls
57 lines (57 loc) · 1.64 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
{
"name": "woff2-encode-wasm",
"version": "0.1.1",
"description": "Encode TTF/OTF fonts to WOFF2 using the official google/woff2 library compiled to WebAssembly",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./encoder.wasm": "./dist/encoder.wasm"
},
"files": [
"dist/index.js",
"dist/index.d.ts",
"dist/encoder.wasm"
],
"scripts": {
"fetch-deps": "bash scripts/fetch-deps.sh",
"build:wasm": "bash scripts/build-wasm.sh",
"build:js": "tsc",
"build": "npm run fetch-deps && npm run build:wasm && npm run build:js",
"test": "npm run test:node && npm run test:workers && npm run test:deno",
"test:node": "vitest run --config vitest.config.ts",
"test:workers": "vitest run --config vitest.workers.config.ts",
"test:deno": "deno run --allow-read test/deno-smoke.ts",
"prepack": "npm run build:js && test -f dist/encoder.wasm || (echo 'ERROR: dist/encoder.wasm missing. Run npm run build:wasm first.' >&2 && exit 1)",
"clean": "rm -rf dist vendor/google-woff2 vendor/brotli"
},
"keywords": [
"woff2",
"encode",
"wasm",
"webassembly",
"font",
"ttf",
"otf",
"cloudflare-workers"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/kyosuke/woff2-encode-wasm.git"
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.14.1",
"typescript": "^6.0.2",
"vitest": "^4.1.2",
"wrangler": "^4.80.0"
}
}