Yarn dependencies upgrade & yarn lint update (#347)

* Run yarn upgrade in order to resolve security vulnerability

* Remove unneeded git add from pre-commit hook

* Update packages

* Update non-eslint packages
This commit is contained in:
David Finol 2022-02-28 05:30:59 -06:00 committed by GitHub
parent ff46e7645f
commit 693ff829de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 1359 additions and 1922 deletions

View File

@ -14,6 +14,7 @@
"rules": { "rules": {
"prettier/prettier": "error", "prettier/prettier": "error",
"import/no-extraneous-dependencies": 0, "import/no-extraneous-dependencies": 0,
"import/no-namespace": "off" "import/no-namespace": "off",
"no-undef": "off" // TODO: REMOVE THIS LINE WHEN UPDATING ESLINT RULES
} }
} }

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
. "$(dirname "$0")/_/husky.sh" . "$(dirname "$0")/_/husky.sh"
npx lint-staged yarn lint-staged
yarn lint
yarn test yarn test
yarn build yarn build
git add dist/index.*

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

BIN
dist/licenses.txt generated vendored

Binary file not shown.

BIN
dist/sourcemap-register.js generated vendored

Binary file not shown.

View File

@ -23,60 +23,57 @@
"test-i-k8s": "cross-env cloudRunnerTests=true cloudRunnerCluster=k8s yarn test -i -t \"cloud runner\"" "test-i-k8s": "cross-env cloudRunnerTests=true cloudRunnerCluster=k8s yarn test -i -t \"cloud runner\""
}, },
"dependencies": { "dependencies": {
"@actions/core": "^1.2.6", "@actions/core": "^1.6.0",
"@actions/exec": "^1.0.4", "@actions/exec": "^1.1.0",
"@actions/github": "^2.2.0", "@actions/github": "^5.0.0",
"@kubernetes/client-node": "^0.14.3", "@kubernetes/client-node": "^0.16.3",
"@octokit/core": "^3.5.1", "@octokit/core": "^3.5.1",
"async-wait-until": "^2.0.7", "async-wait-until": "^2.0.12",
"aws-sdk": "^2.812.0", "aws-sdk": "^2.1081.0",
"base-64": "^1.0.0", "base-64": "^1.0.0",
"commander": "^8.3.0", "commander": "^9.0.0",
"commander-ts": "^0.2.0", "commander-ts": "^0.2.0",
"kubernetes-client": "^9.0.0", "kubernetes-client": "^9.0.0",
"unity-changeset": "^1.6.0", "nanoid": "^3.3.1",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"semver": "^7.3.5", "semver": "^7.3.5",
"yaml": "^1.10.2", "unity-changeset": "^1.6.0",
"nanoid": "^3.1.31" "yaml": "^1.10.2"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^27.0.3", "@types/jest": "^27.4.1",
"@types/node": "^14.14.9", "@types/node": "^17.0.21",
"@types/semver": "^7.3.5", "@types/semver": "^7.3.9",
"@typescript-eslint/parser": "^4.8.1", "@typescript-eslint/parser": "4.8.1",
"@vercel/ncc": "^0.25.1", "@vercel/ncc": "^0.33.3",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"eslint": "^7.17.0", "eslint": "7.17.0",
"eslint-config-prettier": "^8.1.0", "eslint-config-prettier": "8.1.0",
"eslint-plugin-github": "^4.1.1", "eslint-plugin-github": "^4.1.1",
"eslint-plugin-jest": "^24.1.3", "eslint-plugin-jest": "24.1.3",
"eslint-plugin-prettier": "^3.3.1", "eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-unicorn": "^28.0.2", "eslint-plugin-unicorn": "28.0.2",
"husky": "^7.0.4", "husky": "^7.0.4",
"jest": "^26.6.3", "jest": "^27.5.1",
"jest-circus": "^26.6.3", "jest-circus": "^27.5.1",
"js-yaml": "^3.14.0", "js-yaml": "^4.1.0",
"lint-staged": "^12.1.2", "lint-staged": "^12.3.4",
"prettier": "^2.2.1", "prettier": "^2.5.1",
"ts-jest": "^26.4.2", "ts-jest": "^27.1.3",
"ts-node": "^10.4.0", "ts-node": "10.4.0",
"typescript": "^4.1.3" "typescript": "4.1.3"
}, },
"lint-staged": { "lint-staged": {
"*.{js,jsx,ts,tsx}": [ "*.{js,jsx,ts,tsx}": [
"prettier --write", "prettier --write",
"eslint", "eslint",
"git add",
"jest --findRelatedTests" "jest --findRelatedTests"
], ],
"*.{json,md,yaml,yml}": [ "*.{json,md,yaml,yml}": [
"prettier --write", "prettier --write"
"git add"
], ],
"*.sh": [ "*.sh": [
"git update-index --chmod=+x" "git update-index --chmod=+x"
], ]
"*.js": "eslint --cache --fix"
} }
} }

View File

@ -47,20 +47,8 @@ class ImageTag {
} }
static getTargetPlatformToImageSuffixMap(platform, version) { static getTargetPlatformToImageSuffixMap(platform, version) {
const { const { generic, webgl, mac, windows, windowsIl2cpp, wsaPlayer, linux, linuxIl2cpp, android, ios, tvos, facebook } =
generic, ImageTag.imageSuffixes;
webgl,
mac,
windows,
windowsIl2cpp,
wsaPlayer,
linux,
linuxIl2cpp,
android,
ios,
tvos,
facebook,
} = ImageTag.imageSuffixes;
const [major, minor] = version.split('.').map((digit) => Number(digit)); const [major, minor] = version.split('.').map((digit) => Number(digit));
// @see: https://docs.unity3d.com/ScriptReference/BuildTarget.html // @see: https://docs.unity3d.com/ScriptReference/BuildTarget.html

3197
yarn.lock

File diff suppressed because it is too large Load Diff