auto-cr-cmd 2.0.110 → 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.
Files changed (2) hide show
  1. package/dist/config.js +4 -4
  2. package/package.json +7 -7
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, options, enableDecorators) {
115
- var shouldEnableJsx = extension === '.tsx' || (extension === '.ts' && isJsxEnabled(options === null || options === void 0 ? void 0 : options.jsx));
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, compilerOptions, enableDecorators);
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', compilerOptions, enableDecorators);
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.110",
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",
@@ -33,22 +33,22 @@
33
33
  },
34
34
  "sideEffects": false,
35
35
  "dependencies": {
36
- "@swc/core": "^1.15.10",
37
- "@swc/wasm": "^1.15.10",
38
- "commander": "^14.0.2",
36
+ "@swc/core": "^1.15.11",
37
+ "@swc/wasm": "^1.15.11",
38
+ "commander": "^14.0.3",
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.110"
42
+ "auto-cr-rules": "2.0.112"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@eslint/js": "^9.39.2",
46
46
  "@swc/types": "^0.1.25",
47
- "@types/node": "^25.0.10",
47
+ "@types/node": "^25.2.1",
48
48
  "@types/picomatch": "^4.0.2",
49
49
  "eslint": "^9.39.2",
50
50
  "eslint-plugin-prettier": "^5.5.5",
51
- "globals": "^17.2.0",
51
+ "globals": "^17.3.0",
52
52
  "jiti": "^2.5.1",
53
53
  "prettier": "^3.8.1",
54
54
  "ts-node": "^10.9.2",