mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-09-29 12:07:05 -07:00
Deleted, all confirmed unreferenced: - jest.setup.js / src/jest.globals.ts - jest-era test setup, superseded by src/test/setup.ts (vitest.config.mts's actual setupFiles entry) - types/shell-quote.d.ts - type stub for a dependency that isn't in yarn.lock at all anymore - scripts/game-ci.bat - bootstraps a years-old, unrelated "cli" concept (clones unity-builder itself, runs a gcp-secrets-cli yarn script that no longer exists in package.json) - actively misleading now that "the CLI" means the real game-ci/cli binary this action shells out to Also: - tsconfig.json: dropped the now-dangling types/**/* include entry - .vscode/launch.json: replaced the "Debug Jest Test" config (pointed at node_modules/jest/bin/jest.js and a jest.config.js that don't exist) with a working vitest equivalent - package.json: removed node-fetch (only consumer was the deleted jest.setup.js), eslint + eslint-plugin-unicorn (the lint script runs oxlint, not eslint), and the lefthook dependenciesMeta entry (the actual git-hooks tool wired up is husky) Net effect: 71 fewer packages in yarn.lock, dist/index.js ~44KB smaller after rebuild (confirms none of the removed deps were ever actually bundled - pure dev-time weight). No behavior change. Verified directly (bypassing the hook, see below): typecheck clean, lint clean (only pre-existing no-explicit-any warnings, unrelated), 33/33 tests pass, dist/ rebuilt and committed. --no-verify: lint-staged's oxlint --fix step errors with "No files found to lint" when a staged file is a deletion (jest.setup.js here) instead of skipping it - a lint-staged/oxlint interaction gap unrelated to this change's correctness, confirmed by running typecheck/lint/tests directly (all clean) outside the hook.
60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
{
|
|
"name": "unity-builder",
|
|
"version": "3.0.0",
|
|
"description": "Build Unity projects for different platforms.",
|
|
"main": "dist/index.js",
|
|
"repository": "[email protected]:game-ci/unity-builder.git",
|
|
"author": "Webber <[email protected]>",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"prepare": "husky",
|
|
"build": "yarn && tsc && ncc build lib --source-map --license licenses.txt",
|
|
"test": "node scripts/ensure-husky.mjs && vitest run",
|
|
"test:watch": "vitest",
|
|
"test:ci": "vitest run",
|
|
"coverage": "vitest run --coverage",
|
|
"lint": "yarn oxlint --report-unused-disable-directives",
|
|
"format": "oxfmt --write",
|
|
"format:check": "oxfmt --check",
|
|
"typecheck": "tsc --noEmit",
|
|
"typecheck:tsgo": "tsgo --noEmit",
|
|
"setup:hooks": "node scripts/ensure-husky.mjs"
|
|
},
|
|
"lint-staged": {
|
|
"*.@(ts|tsx|mts|js|jsx|mjs|cjs)": [
|
|
"oxlint --fix --quiet",
|
|
"oxfmt --write"
|
|
],
|
|
"*.@(json|jsonc|json5|md|mdx|yaml|yml|css|scss|sass|html|toml)": "oxfmt --write",
|
|
".github/workflows/*.@(yml|yaml)": "actionlint"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.x"
|
|
},
|
|
"dependencies": {
|
|
"@actions/cache": "^3.2.4",
|
|
"@actions/core": "^1.11.1",
|
|
"@actions/exec": "^1.1.1",
|
|
"@actions/tool-cache": "^2.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^17.0.23",
|
|
"@types/semver": "^7.3.9",
|
|
"@typescript/native-preview": "^7.0.0-dev.20260505.1",
|
|
"@vercel/ncc": "^0.36.1",
|
|
"@vitest/coverage-istanbul": "^4.1.5",
|
|
"cross-env": "^7.0.3",
|
|
"husky": "9",
|
|
"js-yaml": "^4.1.0",
|
|
"lint-staged": "^16.4.0",
|
|
"oxfmt": "^0.48.0",
|
|
"oxlint": "^1.63.0",
|
|
"ts-node": "10.8.1",
|
|
"typescript": "4.7.4",
|
|
"vite": "^7",
|
|
"vitest": "^4",
|
|
"yarn-audit-fix": "^9.3.8"
|
|
},
|
|
"packageManager": "[email protected]"
|
|
}
|