-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
100 lines (100 loc) · 2.85 KB
/
package.json
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"name": "munum",
"version": "0.2.1",
"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 <[email protected]>",
"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"
]
}