-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpackage.json
39 lines (39 loc) · 1.36 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
{
"name": "modern-wasm-starter",
"version": "0.0.1",
"description": "A starter project for wasm node modules",
"main": "dist/index.js",
"author": "Lars Melchior",
"license": "Unlicense",
"repository": {
"type": "git",
"url": "https://github.com/TheLartians/modern-wasm-starter.git"
},
"devDependencies": {
"@types/jest": "^27.0.2",
"jest": "^27.2.5",
"prettier": "^2.2.1",
"ts-jest": "^27.0.5",
"typescript": "^4.1.3"
},
"files": [
"dist"
],
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc && cp source/WasmModule.d.ts source/WasmModule.js dist/",
"watch": "tsc --watch",
"prepare": "rm -rf dist && yarn run configure:wasm && npm run build:wasm && npm run build",
"configure:wasm": "emcmake cmake -Hwasm -Bbuild/wasm -DCMAKE_BUILD_TYPE=Release",
"build:wasm": "cmake --build build/wasm -j8",
"build:wasm:debug": "emcmake cmake -Hwasm -Bbuild/wasm-debug && cmake --build build/wasm-debug -j8",
"start": "jest --config jestconfig.json --watchAll",
"check:style": "prettier --check \"./**/*[!.d].ts\" && cmake --build build/wasm --target check-format",
"fix:style": "prettier --check \"./**/**[!.d].ts\" --write && cmake --build build/wasm --target fix-format",
"test": "jest --config jestconfig.json"
},
"dependencies": {},
"peerDependencies": {
"typescript": ">= 3.8.3"
}
}