Repository navigation
Expand file tree
/
Copy pathdeno.json
More file actions
35 lines (35 loc) · 2.41 KB
/
Copy pathdeno.json
File metadata and controls
35 lines (35 loc) · 2.41 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
{
"name": "@discere-os/libtiff.wasm",
"version": "4.7.0",
"description": "High-performance libtiff TIFF image processing library with WebAssembly and TypeScript-first API",
"exports": {
".": "./src/lib/index.ts",
"./types": "./src/lib/types.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@^1.0.14",
"@std/testing": "jsr:@std/testing@^1.0.0",
"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.ts",
"test": "deno test --allow-read --allow-write --no-check tests/deno/",
"benchmark": "deno run --allow-read --allow-write bench/tiff.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 libtiff-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 libtiff-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",
"clean": "rm -rf build-* install/ dist/ npm/ && echo '✅ Cleaned all build artifacts'",
"check": "deno check src/lib/index.ts"
},
"compilerOptions": {
"lib": ["deno.ns", "dom", "es2022", "deno.unstable"],
"strict": true,
"noImplicitReturns": true
}
}