12 lines
825 B
JSON
12 lines
825 B
JSON
{
|
|
"name": "@magic-civ/physics-rs",
|
|
"version": "0.1.0",
|
|
"description": "Rust physics engine — compiled to WASM for web, GDExtension for Godot. Build output lives at repo-root .local/build/wasm/ (gitignored, per-host; see .claude/instructions/build-output-locations.md). Browser / Vite / Vitest consumers resolve via the explicit alias in vite.config.ts pointing directly at .local/build/wasm/. Node-side consumers (simCachePlugin workers, build-time sim-cache baker) go through runner-stub.mjs which re-exports from the same path — needed because Node's ESM resolver can't follow `../../` out of a package root through pnpm symlinks.",
|
|
"type": "module",
|
|
"main": "./runner-stub.mjs",
|
|
"scripts": {
|
|
"build": "bash build-wasm.sh",
|
|
"build:gdext": "bash build-gdext.sh"
|
|
},
|
|
"files": ["runner-stub.mjs"]
|
|
}
|