- Replace all iterator spreads ([...map.values()] etc) with Array.from() across engine and viewer: under the TS->babel downlevel chain they compiled to __spreadArrays, which reads .length on an iterator and produced 'RangeError: invalid array length' on 'Sector rotations finished' (the reported boardgamers.space crash), plus several latent same-class sites. - Break the research-tracks.ts -> ../index barrel import cycle (imports Event/Expansion from leaf modules now): the cycle left Engine in TDZ and the whole bundle failed with 'Cannot access engine_Engine before initialization' at module eval under the rebuilt module order. - Fix stale cache-loader output producing raw vue_1.default accesses for the vue webpack external (window.Vue has no .default): 'Cannot read properties of undefined (reading extend)' at load. Clean rebuild emits babel interop wrappers correctly. vue-global-shim.js added as belt-and-braces doc for the external's shape. - Add autoprefixer as an explicit viewer devDependency (pnpm 11 no longer hoists it; the lib build failed on postCSS plugin load). - Update stale spec type signatures surfaced by the import change (tile position as EventSource, loadFaction arity, ChargeRequest literal cast, AvailableCommand data narrowing, FederationInfo new fields). Verified: engine 750 passing / 4 pending; viewer 809 passing; lint + prettier clean; rebuilt UMD has zero iterator-spread call sites and loads + completes sector rotation (with and without rotations) in Chromium against the real bundle with CDN-provided Vue 2.
64 lines
1.8 KiB
JSON
64 lines
1.8 KiB
JSON
{
|
|
"name": "@gaia-project/engine",
|
|
"version": "4.10.3",
|
|
"description": "Javascript engine for project gaia",
|
|
"main": "dist/index.js",
|
|
"types": "index.ts",
|
|
"source": "index.ts",
|
|
"repository": "git@github.com:boardgamers/gaia-project.git",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"dist",
|
|
"index.d.ts",
|
|
"index.ts",
|
|
"tsconfig.json",
|
|
"wrapper.ts",
|
|
"index.js",
|
|
"wrapper.js"
|
|
],
|
|
"scripts": {
|
|
"prepublishOnly": "npm run test && npm run clean && tsc",
|
|
"build": "npm run clean && tsc",
|
|
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
"lint": "eslint . --ext .ts",
|
|
"test": "mocha -r ts-node/register src/**/*.spec.ts src/*.spec.ts *.spec.ts",
|
|
"test-single": "mocha -r ts-node/register",
|
|
"fuzz": "node -r ts-node/register src/fuzz/run.ts"
|
|
},
|
|
"contributors": [
|
|
"coyotte508 <coyotte508@gmail.com>",
|
|
"rzulian <riccardo.zulian@gmail.com>"
|
|
],
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"eventemitter3": "^3.1.0",
|
|
"hexagrid": "^2.1.1",
|
|
"lodash": "^4.17.15",
|
|
"seedrandom": "2.4.3",
|
|
"semver-compare": "1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/chai": "^4.1.2",
|
|
"@types/lodash": "4.14.182",
|
|
"@types/mocha": "^2.2.48",
|
|
"@types/node": "^14.0.14",
|
|
"@types/seedrandom": "^2.4.27",
|
|
"@types/semver-compare": "^1.0.1",
|
|
"@types/shuffle-seed": "^1.1.0",
|
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
"@typescript-eslint/parser": "^4.33.0",
|
|
"chai": "^4.1.2",
|
|
"eslint": "^6.8.0",
|
|
"eslint-plugin-import": "^2.20.2",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-promise": "^4.2.1",
|
|
"eslint-plugin-standard": "^4.0.1",
|
|
"mocha": "^5.2.0",
|
|
"shuffle-seed": "1.1.6",
|
|
"ts-node": "^5.0.1",
|
|
"typescript": "^4.9.5"
|
|
}
|
|
}
|