js-code-detector 0.0.53 → 0.0.55

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.
@@ -83,7 +83,7 @@ var ViteProjectService = class {
83
83
  async setAlias() {
84
84
  const targetDirPath = this.detectService.directoryInfo.targetBranchDir;
85
85
  this.helpInfo.parsedAlias = await (0, import_tsConfigPathsToWebpackAlias.tsConfigPathsToWebpackAlias)({
86
- tsconfigPath: (0, import_path.join)(targetDirPath, "tsConfig.json"),
86
+ tsconfigPath: (0, import_path.join)(targetDirPath, "tsconfig.json"),
87
87
  projectRoot: targetDirPath,
88
88
  excludeTypeOnly: false
89
89
  });
@@ -44,8 +44,8 @@ async function tsConfigPathsToWebpackAlias(options = {}) {
44
44
  if (!fs.existsSync(tsconfigPath)) {
45
45
  throw new Error(`未找到 tsconfig.json 文件:${tsconfigPath}`);
46
46
  }
47
- const tsconfig = await import_utils.tsconfigPaths.loadConfig(projectRoot);
48
- const { paths = {}, baseUrl = "." } = tsconfig.compilerOptions || {};
47
+ const compilerOptions = await import_utils.tsconfigPaths.loadConfig(projectRoot);
48
+ const { paths = {}, baseUrl = "." } = compilerOptions || {};
49
49
  const resolvedBaseUrl = path.isAbsolute(baseUrl) ? baseUrl : path.resolve(projectRoot, baseUrl);
50
50
  const alias = {};
51
51
  Object.entries(paths).forEach(([tsPath, tsPathTargets]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-code-detector",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",