mirror of
https://github.com/gorules/zen.git
synced 2026-11-29 08:06:51 +00:00
* build(nodejs): declare the wasm32-wasip1 package as an optional dependency cli 3.10 drops WASI packages from the root optionalDependencies when native targets exist, which would leave browser.js importing an uninstalled package. Ignore and clear the root facades pre-publish now generates. * build(nodejs): keep the root package free of the threadless wasm facade napi prepublish copies the 15.6MB wasm into the root package and rewrites files and exports for workerd consumers. Run it through prepublish.mjs, which keeps its optionalDependencies but restores files and exports and removes the generated root files, so the root tarball is back to ~20kB.
113 lines
3.0 KiB
JSON
113 lines
3.0 KiB
JSON
{
|
|
"name": "@gorules/zen-engine",
|
|
"description": "Open-source Business Rules Engine for Node.js, powered by Rust",
|
|
"version": "2.1.5",
|
|
"main": "index.js",
|
|
"browser": "browser.js",
|
|
"types": "./index.d.ts",
|
|
"license": "MIT",
|
|
"typings": "index.d.ts",
|
|
"files": [
|
|
"index.js",
|
|
"index.d.ts",
|
|
"browser.js",
|
|
"ts-support.js",
|
|
"ts-support.d.ts",
|
|
"README.md"
|
|
],
|
|
"packageManager": "yarn@1.22.22",
|
|
"napi": {
|
|
"binaryName": "zen-engine",
|
|
"targets": [
|
|
"x86_64-apple-darwin",
|
|
"x86_64-unknown-linux-gnu",
|
|
"x86_64-unknown-linux-musl",
|
|
"x86_64-pc-windows-msvc",
|
|
"aarch64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-musl",
|
|
"aarch64-apple-darwin",
|
|
"wasm32-wasip1"
|
|
],
|
|
"dtsHeaderFile": "./dts-header.d.ts",
|
|
"npmClient": "yarn",
|
|
"wasm": {
|
|
"initialMemory": 1024,
|
|
"maximumMemory": 16384,
|
|
"browser": {
|
|
"fs": false,
|
|
"asyncInit": true
|
|
},
|
|
"asyncRuntime": true,
|
|
"optionalDependency": true
|
|
}
|
|
},
|
|
"keywords": [
|
|
"gorules",
|
|
"zen-engine",
|
|
"business rules engine",
|
|
"rules engine",
|
|
"rule engine",
|
|
"bre",
|
|
"rule",
|
|
"rules",
|
|
"engine",
|
|
"decision",
|
|
"decision table",
|
|
"rust",
|
|
"N-API",
|
|
"napi-rs",
|
|
"node-rs"
|
|
],
|
|
"author": "GoRules <hi@gorules.io> (https://gorules.io)",
|
|
"homepage": "https://gorules.io",
|
|
"engines": {
|
|
"node": ">= 14"
|
|
},
|
|
"devDependencies": {
|
|
"@emnapi/core": "2.0.0-alpha.6",
|
|
"@emnapi/runtime": "2.0.0-alpha.6",
|
|
"@jest/globals": "^30.2.0",
|
|
"@napi-rs/async-runtime": "^0.2.0",
|
|
"@napi-rs/cli": "^3.10.8",
|
|
"@napi-rs/wasm-runtime": "^1.2.5",
|
|
"@types/express": "^5.0.5",
|
|
"@types/node": "^24.10.0",
|
|
"babel-jest": "^30.2.0",
|
|
"cross-env": "^10.1.0",
|
|
"emnapi": "2.0.0-alpha.6",
|
|
"express": "^5.1.0",
|
|
"jest": "^30.2.0",
|
|
"lerna": "6.6.2",
|
|
"ts-jest": "^29.4.5",
|
|
"ts-node": "^10.9.2",
|
|
"tslib": "^2.8.1",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/gorules/zen/issues"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/gorules/zen.git"
|
|
},
|
|
"scripts": {
|
|
"build": "napi build --platform --release --dts index.d.ts",
|
|
"build:debug": "napi build --platform --js index.js --dts index.d.ts",
|
|
"watch": "cargo watch --ignore '{index.js,index.d.ts}' -- npm run build:debug",
|
|
"test": "cross-env __ZEN_MOCK_UTC_TIME=2025-08-19T16:55:02.078Z jest",
|
|
"test:wasm": "cross-env NAPI_RS_FORCE_WASI=error NAPI_RS_WASI_FLAVOR=wasm32-wasip1 __ZEN_MOCK_UTC_TIME=2025-08-19T16:55:02.078Z jest -c jest.wasm.config.js",
|
|
"artifacts": "napi artifacts -d ../../artifacts",
|
|
"createNpmDirs": "napi create-npm-dirs && node enrich-npm-dirs.mjs",
|
|
"prepublishOnly": "node prepublish.mjs --no-gh-release",
|
|
"version": "napi version"
|
|
},
|
|
"resolutions": {
|
|
"form-data@^4.0.0": "4.0.4",
|
|
"@napi-rs/cli/**/@octokit/request": "10.0.14"
|
|
}
|
|
}
|