auto-cr-cmd 2.0.111 → 2.0.112
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/config.js +4 -4
- package/package.json +2 -2
package/dist/config.js
CHANGED
|
@@ -111,8 +111,8 @@ function isJsxEnabled(option) {
|
|
|
111
111
|
var normalized = option.toLowerCase();
|
|
112
112
|
return normalized !== 'none';
|
|
113
113
|
}
|
|
114
|
-
function createTsParserConfig(extension,
|
|
115
|
-
var shouldEnableJsx = extension === '.tsx'
|
|
114
|
+
function createTsParserConfig(extension, enableDecorators) {
|
|
115
|
+
var shouldEnableJsx = extension === '.tsx';
|
|
116
116
|
return {
|
|
117
117
|
syntax: 'typescript',
|
|
118
118
|
tsx: shouldEnableJsx,
|
|
@@ -139,13 +139,13 @@ function loadParseOptions(filePath) {
|
|
|
139
139
|
var target = normalizeTarget(compilerOptions === null || compilerOptions === void 0 ? void 0 : compilerOptions.target);
|
|
140
140
|
var parserConfig;
|
|
141
141
|
if (extension === '.ts' || extension === '.tsx') {
|
|
142
|
-
parserConfig = createTsParserConfig(extension,
|
|
142
|
+
parserConfig = createTsParserConfig(extension, enableDecorators);
|
|
143
143
|
}
|
|
144
144
|
else if (extension === '.js' || extension === '.jsx') {
|
|
145
145
|
parserConfig = createEsParserConfig(extension, compilerOptions, enableDecorators);
|
|
146
146
|
}
|
|
147
147
|
else {
|
|
148
|
-
parserConfig = createTsParserConfig('.ts',
|
|
148
|
+
parserConfig = createTsParserConfig('.ts', enableDecorators);
|
|
149
149
|
}
|
|
150
150
|
var options = __assign(__assign({}, parserConfig), { comments: true });
|
|
151
151
|
if (target) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auto-cr-cmd",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.112",
|
|
4
4
|
"description": "Fast automated code review CLI powered by SWC-based static analysis",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"consola": "^3.4.2",
|
|
40
40
|
"jsonc-parser": "^3.3.1",
|
|
41
41
|
"picomatch": "^4.0.3",
|
|
42
|
-
"auto-cr-rules": "2.0.
|
|
42
|
+
"auto-cr-rules": "2.0.112"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@eslint/js": "^9.39.2",
|