@yuu1111/comment-check 2.2.0 → 2.2.1
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/bin/cli.js +4 -0
- package/dist/cli.js +5 -1
- package/package.json +3 -2
package/bin/cli.js
ADDED
package/dist/cli.js
CHANGED
|
@@ -647,10 +647,14 @@ function main(argv) {
|
|
|
647
647
|
}
|
|
648
648
|
return comparison.added.length > 0 ? 1 : 0;
|
|
649
649
|
}
|
|
650
|
-
|
|
650
|
+
function run() {
|
|
651
651
|
runCli(main);
|
|
652
652
|
}
|
|
653
|
+
if (import.meta.main) {
|
|
654
|
+
run();
|
|
655
|
+
}
|
|
653
656
|
export {
|
|
657
|
+
run,
|
|
654
658
|
parseArguments,
|
|
655
659
|
main
|
|
656
660
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuu1111/comment-check",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Shared comment and suppression checker",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"bin": {
|
|
12
|
-
"comment-check": "
|
|
12
|
+
"comment-check": "bin/cli.js"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": "./dist/scan.js"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"README.ja.md",
|
|
19
|
+
"bin",
|
|
19
20
|
"dist"
|
|
20
21
|
],
|
|
21
22
|
"scripts": {
|