forked from libjpeg-turbo/libjpeg-turbo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeno.json
More file actions
58 lines (58 loc) · 3.39 KB
/
deno.json
File metadata and controls
58 lines (58 loc) · 3.39 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
{
"name": "@discere-os/libjpeg-turbo.wasm",
"version": "3.0.5-discere.1",
"description": "High-performance JPEG processing library with WebAssembly, SIMD acceleration, and TypeScript-first API",
"exports": {
".": "./src/lib/index.ts",
"./types": "./src/lib/types.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@^1.0.14",
"module": "data:application/javascript,export const createRequire = () => (id) => { if (id === 'path') return { dirname: () => '', join: (...args) => args.join('/') }; if (id === 'url') return { fileURLToPath: (url) => url.replace('file://', '') }; if (id === 'fs') return { readFileSync: () => { throw new Error('fs not supported'); } }; throw new Error(`Module ${id} not found`); }; export default { createRequire };",
"path": "data:application/javascript,export const dirname = () => ''; export const join = (...args) => args.join('/'); export default { dirname, join };",
"url": "data:application/javascript,export const fileURLToPath = (url) => url.replace('file://', ''); export default { fileURLToPath };",
"fs": "data:application/javascript,export const readFileSync = () => { throw new Error('fs not supported'); }; export default { readFileSync };"
},
"tasks": {
"demo": "deno run --allow-read --allow-write demo-deno-simple.ts",
"demo:full": "deno run --allow-read --allow-write demo-deno.ts",
"test": "deno test --allow-read --no-check tests/deno/",
"test:basic": "deno test --allow-read --no-check tests/deno/basic.test.ts",
"bench": "deno bench --allow-read bench/",
"bench:compression": "deno bench --allow-read bench/compression.bench.ts",
"build": "deno task build:wasm",
"build:main": "meson setup build-main --cross-file=scripts/emscripten.cross --prefix=$PWD/install -Dlibdir=wasm -Dbindir=wasm && meson compile -C build-main libjpeg-main && meson install -C build-main",
"build:side": "meson setup build-side --cross-file=scripts/emscripten.cross --prefix=$PWD/install -Dlibdir=wasm -Dbindir=wasm && meson compile -C build-side libjpeg-side && meson install -C build-side",
"build:wasm": "deno task build:main && deno task build:side && deno task manifest",
"manifest": "deno run --allow-read --allow-write --allow-run ../../../../scripts/generate-wasm-manifest.ts .",
"build:npm": "deno run --allow-all _build_npm.ts",
"build:all": "deno task build:wasm && deno task build:npm",
"publish:npm": "deno task build:all && cd npm && npm publish",
"publish:dry": "deno task build:all && cd npm && npm publish --dry-run",
"publish:jsr": "deno publish",
"clean": "rm -rf build-* install/ dist/ npm/",
"check": "deno check src/lib/index.ts",
"check:all": "deno check src/lib/index.ts && deno check demo-deno.ts",
"fmt": "deno fmt src/ tests/ demo-deno.ts bench/",
"lint": "deno lint src/ tests/ demo-deno.ts bench/"
},
"compilerOptions": {
"lib": ["deno.ns", "dom", "es2022", "deno.unstable"],
"strict": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"exactOptionalPropertyTypes": true
},
"fmt": {
"include": ["src/", "tests/", "demo-deno.ts", "bench/"],
"exclude": ["dist/", "build-main/", "build-side/", "npm/", "wasm/"]
},
"lint": {
"include": ["src/", "tests/", "demo-deno.ts", "bench/"],
"exclude": ["dist/", "build-main/", "build-side/", "npm/", "wasm/"]
},
"test": {
"include": ["tests/deno/"],
"exclude": ["tests/unit/"]
}
}