pr-checkmate 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -0
- package/dist/scripts/index.js +0 -5
- package/package.json +4 -4
package/dist/cli.js
CHANGED
package/dist/scripts/index.js
CHANGED
|
@@ -19,7 +19,6 @@ const lint_1 = require("./lint");
|
|
|
19
19
|
* prettier - Run Prettier auto-format
|
|
20
20
|
* spellcheck - Run cspell spellcheck
|
|
21
21
|
*/
|
|
22
|
-
const job = process.argv[2];
|
|
23
22
|
async function runJob(jobName) {
|
|
24
23
|
switch (jobName) {
|
|
25
24
|
case 'all':
|
|
@@ -44,7 +43,3 @@ async function runJob(jobName) {
|
|
|
44
43
|
utils_1.logger.log('[runJob]: Available jobs: lint, deps, prettier, spellcheck');
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
|
-
runJob(job).catch(err => {
|
|
48
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
49
|
-
throw new Error(`[runJob]: ❌ CLI execution failed: ${message}`);
|
|
50
|
-
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pr-checkmate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Automated PR quality checks: linting, formatting, dependency analysis, and spellcheck",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github-actions",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"code-quality",
|
|
12
12
|
"automation"
|
|
13
13
|
],
|
|
14
|
-
"main": "./dist/
|
|
14
|
+
"main": "./dist/cli.js",
|
|
15
15
|
"type": "commonjs",
|
|
16
16
|
"bin": {
|
|
17
|
-
"pr-checkmate": "./dist/
|
|
17
|
+
"pr-checkmate": "./dist/cli.js"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
25
|
"check": "npm run build && npm run lint && npm run prettier && npm run spellcheck",
|
|
26
|
-
"build": "npm run clean && tsc",
|
|
26
|
+
"build": "npm run clean && tsc && chmod +x dist/cli.js",
|
|
27
27
|
"prepublishOnly": "npm run build",
|
|
28
28
|
"lint": "eslint \"src/**/*.{ts,tsx}\" --fix",
|
|
29
29
|
"prettier": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
|