{ "name": "munum", "version": "0.2.0", "description": "Micro 3D Math Library for JavaScript and WebAssembly", "type": "module", "sideEffects": false, "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": "./dist/index.js", "./js": "./dist/js/index.js", "./wasm": "./wasm/index.js" }, "files": [ "/dist", "/wasm", "/wit" ], "scripts": { "prepublishOnly": "npm run build && npm test && npm run docs", "clean": "rimraf coverage/ docs/ dist/ target/", "build": "npm run build:wasm && npm run build:wit-com && npm run build:js", "build:wasm": "cargo rustc -r --target wasm32-unknown-unknown --crate-type cdylib -F jsmath,wasm --no-default-features", "postbuild:wasm": "wasm-opt -Oz -o wasm/munum.wasm target/wasm32-unknown-unknown/release/munum.wasm", "build:wit-com": "jco embed -o wasm/munum.component.wasm --world root --wit wit/world.wit wasm/munum.wasm && jco new -o wasm/munum.component.wasm wasm/munum.component.wasm", "prebuild:js": "eslint js --ext .ts", "build:js": "tsc -p tsconfig.build.json && babel js -d dist -x .ts", "pretest": "npm run test:rust", "test": "npm run jest", "test:rust": "cargo test --all-features", "jest": "NODE_OPTIONS=--experimental-vm-modules jest", "docs": "typedoc --tsconfig tsconfig.build.json" }, "repository": { "type": "git", "url": "git+https://github.com/andykswong/munum.git" }, "keywords": [ "numeric", "matrix", "math", "typescript", "vector", "webassembly", "wasm" ], "author": "Andy K.S. Wong ", "license": "MIT", "bugs": { "url": "https://github.com/andykswong/munum/issues" }, "homepage": "https://github.com/andykswong/munum", "dependencies": { "libmath": "^0.1" }, "devDependencies": { "@babel/cli": "^7.20", "@babel/core": "^7.20", "@babel/plugin-proposal-explicit-resource-management": "^7.20", "@babel/preset-env": "^7.20", "@babel/preset-typescript": "^7.20", "@bytecodealliance/jco": "^1.0", "@types/jest": "^29.5", "@types/node": "^20.0", "@typescript-eslint/eslint-plugin": "^7.0", "@typescript-eslint/parser": "^7.0", "babel-jest": "^29.5", "babel-plugin-add-import-extension": "^1.6", "binaryen": "^116.0", "core-js": "^3.30", "copyfiles": "^2.4", "cross-env": "^7.0", "eslint": "^8.50", "jest": "^29.5", "rimraf": "^5.0", "typedoc": "^0.25", "typescript": "^5.4" }, "jest": { "extensionsToTreatAsEsm": [ ".ts" ], "testEnvironment": "node", "testMatch": [ "**/__tests__/**/*.spec.ts" ], "collectCoverage": true, "collectCoverageFrom": [ "js/**/*.ts", "!**/__tests__/**" ], "coverageDirectory": "coverage", "setupFiles": ["core-js"] }, "workspaces": [ "packages/libmath" ] }