mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
db446518ca
Fixes #25610 AI assistance: Codex was used to implement this change.
57 lines
1.4 KiB
JSON
57 lines
1.4 KiB
JSON
{
|
|
"name": "oxc-playground",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"files": [
|
|
"browser.js",
|
|
"index.d.ts",
|
|
"index.js",
|
|
"playground.wasi-browser.js",
|
|
"playground.wasi.cjs",
|
|
"playground.wasm32-wasi.debug.wasm",
|
|
"playground.wasm32-wasi.wasm",
|
|
"wasi-worker-browser.mjs",
|
|
"wasi-worker.mjs"
|
|
],
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"types": "./index.d.ts",
|
|
"browser": "./playground.wasi-browser.js",
|
|
"default": "./index.js"
|
|
},
|
|
"./*": "./*"
|
|
},
|
|
"scripts": {
|
|
"build-test": "echo 'Skipped because there are no tests.'",
|
|
"build-dev": "pnpm run build-wasm-dev && node scripts/patch.js",
|
|
"build": "pnpm run build-wasm-dev --release && node scripts/patch.js",
|
|
"build-wasm-dev": "napi build --platform --esm --target wasm32-wasip1-threads --dts playground.wasi.d.cts",
|
|
"postbuild-wasm-dev": "node scripts/patch-wasi-browser.js",
|
|
"postbuild": "publint"
|
|
},
|
|
"dependencies": {
|
|
"@napi-rs/wasm-runtime": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@emnapi/core": "catalog:",
|
|
"@emnapi/runtime": "catalog:",
|
|
"@napi-rs/cli": "catalog:",
|
|
"publint": "catalog:"
|
|
},
|
|
"napi": {
|
|
"binaryName": "playground",
|
|
"packageName": "@oxc-playground/binding",
|
|
"targets": [
|
|
"wasm32-wasip1-threads"
|
|
],
|
|
"wasm": {
|
|
"browser": {
|
|
"fs": false,
|
|
"asyncInit": true
|
|
}
|
|
}
|
|
}
|
|
}
|