magicciv/src/simulator/package.json
Natalie 51a8b422a0 feat(@projects/@magic-civilization): update physics engine metadata and stub file
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-17 15:14:29 -07:00

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"]
}