feat(rapier2d): 新增Rapier2D WASM绑定包

This commit is contained in:
yhh
2025-12-03 16:18:37 +08:00
parent e6fb80d0be
commit b3f7676452
46 changed files with 9888 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{
"name": "@esengine/rapier2d",
"version": "0.14.0",
"description": "Rapier2D physics engine with dynamic WASM loading support",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./pkg/*": "./pkg/*"
},
"files": [
"dist",
"pkg/*.wasm"
],
"scripts": {
"gen:src": "node scripts/gen-src.mjs",
"build": "pnpm gen:src && tsup",
"clean": "rimraf dist src"
},
"license": "Apache-2.0",
"devDependencies": {
"rimraf": "^5.0.0",
"tsup": "^8.0.0",
"typescript": "^5.0.0"
}
}