diff --git a/.gitignore b/.gitignore index 3721a5c..a989717 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /coverage /jolt-config.schema.json /.jolt.json +*.tsbuildinfo ## Yarn .yarn/* diff --git a/package.json b/package.json index 86a36a0..705936d 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,13 @@ "@vitest/coverage-v8": "^4.1.1", "@vitest/ui": "^4.1.1", "rimraf": "^6.1.3", - "typescript": "^5.9.3", + "typescript": "^6.0.2", "vitest": "^4.1.1" }, + "jira-prepare-commit-msg": { + "messagePattern": "$J $M", + "ignoredBranchesPattern": "^(dependabot/|renovate/)" + }, "files": [ "/dist" ], diff --git a/src/Command/WP.ts b/src/Command/WP.ts index 7d2e548..33b1a4b 100644 --- a/src/Command/WP.ts +++ b/src/Command/WP.ts @@ -779,7 +779,7 @@ export class WPUpdateCommand extends JoltCommand { try { const result = await this.executeWpCli(['core', 'check-update', '--json'], { silent: true }) - if (!result.stdout || !result.stdout.trim() || result.stdout.trim() === '[]') { + if (!result.stdout?.trim() || result.stdout.trim() === '[]') { return false } diff --git a/tsconfig.json b/tsconfig.json index 23e0e4e..a5f11b8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "target": "es2018", "module": "NodeNext", "moduleResolution": "nodenext", + "rootDir": "./src", "outDir": "./dist", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, diff --git a/yarn.lock b/yarn.lock index dd1afb0..1406282 100644 --- a/yarn.lock +++ b/yarn.lock @@ -199,7 +199,7 @@ __metadata: object-resolve-path: "npm:^1.1.1" rimraf: "npm:^6.1.3" typanion: "npm:^3.14.0" - typescript: "npm:^5.9.3" + typescript: "npm:^6.0.2" vitest: "npm:^4.1.1" which: "npm:^6.0.1" zod: "npm:^4.3.6" @@ -1729,23 +1729,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.9.3": - version: 5.9.3 - resolution: "typescript@npm:5.9.3" +"typescript@npm:^6.0.2": + version: 6.0.2 + resolution: "typescript@npm:6.0.2" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/6bd7552ce39f97e711db5aa048f6f9995b53f1c52f7d8667c1abdc1700c68a76a308f579cd309ce6b53646deb4e9a1be7c813a93baaf0a28ccd536a30270e1c5 + checksum: 10c0/4b860b0bf87cc0fee0f66d8ef2640b5a8a8a8c74d1129adb82e389e5f97124383823c47946bef8a73ede371461143a3aa8544399d2133c7b2e4f07e81860af7f languageName: node linkType: hard -"typescript@patch:typescript@npm%3A^5.9.3#optional!builtin": - version: 5.9.3 - resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin::version=5.9.3&hash=5786d5" +"typescript@patch:typescript@npm%3A^6.0.2#optional!builtin": + version: 6.0.2 + resolution: "typescript@patch:typescript@npm%3A6.0.2#optional!builtin::version=6.0.2&hash=5786d5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430 + checksum: 10c0/49f0b84fc6ca55653e77752b8a61beabc09ee3dae5d965c31596225aa6ef213c5727b1d2e895b900416dc603854ba0872ac4a812c2a4ed6793a601f9c675de02 languageName: node linkType: hard