Patch definitions under exe-patches/ and gui-patches/ move from patch.json/locate.json to patch.jsonc/locate.jsonc. Each file now holds only the data needed to apply the patch plus a short English comment stating what it changes, why the local service cannot provide it, and what happens without it. Every definition records the game versions it was verified on (verified_on, required). GUI patches keep their stock text and replacement in find.nut and replace.nut next to patch.jsonc instead of escaped JSON strings, so the script edits are readable, diffable and can carry Quirrel comments. Matching treats CRLF and LF as the same line break because stock scripts mix both; only the matched span is rewritten. Loaders on both sides (packages/build, packages/exepatch, wtotools) reject unknown keys so analysis text cannot creep back into the data. JSONC parsing moves into a shared @wto/jsonc package; the build now parses tuning/store.jsonc instead of scanning it with a regex. Verified: npm run typecheck; check-patches (10/10 ready on 2.61.0.37); check-gui (33 patches, 24 scripts compile); the TypeScript and Python appliers produce identical scripts, byte-identical to the previous definitions except one stock script with mixed line endings. The 15 battle patches are migrated mechanically and still carry the pending-review comment; they are rewritten by the LocalMP review.
111 lines
2.8 KiB
JSON
111 lines
2.8 KiB
JSON
{
|
|
"name": "wto",
|
|
"lockfileVersion": 3,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"name": "wto",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"devDependencies": {
|
|
"@types/node": "^24.19.2",
|
|
"typescript": "5.9"
|
|
},
|
|
"engines": {
|
|
"node": ">=24"
|
|
}
|
|
},
|
|
"node_modules/@types/node": {
|
|
"version": "24.19.2",
|
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz",
|
|
"integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==",
|
|
"dev": true,
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"undici-types": ">=7.24.0 <7.24.7"
|
|
}
|
|
},
|
|
"node_modules/@wto/blk": {
|
|
"resolved": "packages/blk",
|
|
"link": true
|
|
},
|
|
"node_modules/@wto/build": {
|
|
"resolved": "packages/build",
|
|
"link": true
|
|
},
|
|
"node_modules/@wto/exepatch": {
|
|
"resolved": "packages/exepatch",
|
|
"link": true
|
|
},
|
|
"node_modules/@wto/jsonc": {
|
|
"resolved": "packages/jsonc",
|
|
"link": true
|
|
},
|
|
"node_modules/@wto/local-service": {
|
|
"resolved": "packages/local-service",
|
|
"link": true
|
|
},
|
|
"node_modules/@wto/vromfs": {
|
|
"resolved": "packages/vromfs",
|
|
"link": true
|
|
},
|
|
"node_modules/typescript": {
|
|
"version": "5.9.3",
|
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
|
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
|
"dev": true,
|
|
"license": "Apache-2.0",
|
|
"bin": {
|
|
"tsc": "bin/tsc",
|
|
"tsserver": "bin/tsserver"
|
|
},
|
|
"engines": {
|
|
"node": ">=14.17"
|
|
}
|
|
},
|
|
"node_modules/undici-types": {
|
|
"version": "7.24.6",
|
|
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",
|
|
"integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",
|
|
"dev": true,
|
|
"license": "MIT"
|
|
},
|
|
"packages/blk": {
|
|
"name": "@wto/blk",
|
|
"version": "0.1.0"
|
|
},
|
|
"packages/build": {
|
|
"name": "@wto/build",
|
|
"version": "0.1.0",
|
|
"dependencies": {
|
|
"@wto/jsonc": "*"
|
|
}
|
|
},
|
|
"packages/exepatch": {
|
|
"name": "@wto/exepatch",
|
|
"version": "0.1.0",
|
|
"dependencies": {
|
|
"@wto/jsonc": "*"
|
|
}
|
|
},
|
|
"packages/jsonc": {
|
|
"name": "@wto/jsonc",
|
|
"version": "0.1.0"
|
|
},
|
|
"packages/local-service": {
|
|
"name": "@wto/local-service",
|
|
"version": "0.1.0",
|
|
"dependencies": {
|
|
"@wto/blk": "*",
|
|
"@wto/jsonc": "*",
|
|
"@wto/vromfs": "*"
|
|
}
|
|
},
|
|
"packages/vromfs": {
|
|
"name": "@wto/vromfs",
|
|
"version": "0.1.0"
|
|
}
|
|
}
|
|
}
|