trealla-multibundle
Version:
Trealla Prolog bindings for JS
65 lines (64 loc) • 1.79 kB
JSON
{
"name": "trealla-multibundle",
"version": "0.27.7",
"description": "Trealla Prolog bindings for JS",
"main": "dist/trealla.js",
"type": "module",
"types": "dist/index.d.ts",
"files": [
"ATTRIBUTION",
"dist/index.d.ts",
"dist-unbundled/**.d.ts",
"dist-unbundled/**.js",
"dist-unbundled/**.wasm"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/trealla.js"
},
"./unbundled": {
"types": "./dist-unbundled/index.d.ts",
"default": "./dist-unbundled/trealla.js"
}
},
"typesVersions": {
"*": {
".": "./dist/index.d.ts",
"./unbundled": "./dist-unbundled/index.d.ts"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/guregu/trealla-js.git"
},
"scripts": {
"all": "npm run clean && npm run compile && npm run build",
"clean": "rm -f libtpl.wasm trealla.js trealla.js.map index.d.ts index.d.ts.map dist/*",
"update": "git submodule update --init --recursive && cd trealla && git fetch && git pull origin main",
"compile": "cd trealla && make clean && make -j8 libtpl-js && mv libtpl-js.wasm ../libtpl.wasm",
"build": "node make.cjs && npx tsc && npx tsc -p tsconfig.unbundled.json",
"watch": "nodemon --exec 'npm run build && cp dist/trealla.js example/browser/' --ignore 'example' --watch 'src' --watch 'libtpl.wasm' --ext ts,wasm",
"test": "npm run build && node test.js"
},
"keywords": [
"prolog",
"logic",
"logic-programming",
"interpreter",
"trealla-prolog"
],
"author": "guregu",
"license": "MIT",
"bugs": {
"url": "https://github.com/guregu/trealla-js/issues"
},
"homepage": "https://github.com/guregu/trealla-js#readme",
"dependencies": {
"browser_wasi_shim_gaiden": "^0.3.6"
},
"devDependencies": {
"esbuild": "^0.25.0",
"typescript": "^5.6.3"
}
}