@chen_258/audit-tool 1.0.3 → 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.
@@ -1,6 +1,6 @@
1
1
  import fs from 'fs';
2
2
  import { join } from 'path';
3
- import { uniqueId, getDirname } from '../common/utils';
3
+ import { uniqueId, getDirname } from '../common/utils.js';
4
4
  const __dirname = getDirname(import.meta.url); // 获取当前文件的目录名
5
5
  const basePath = join(__dirname, './'); // 获取上级目录
6
6
  const workBasePath = join(basePath, 'work'); // 定义工作目录路径
@@ -1,6 +1,6 @@
1
1
  import path from 'path';
2
2
  import fs from 'fs';
3
- import { runCommand } from '../common/utils';
3
+ import { runCommand } from '../common/utils.js';
4
4
  /**
5
5
  * 获取package.json 文件内容
6
6
  * @param url 判断当前项目的路径是远程还是本地
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chen_258/audit-tool",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "main": "./dist/mcp/index.js",
6
6
  "bin": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "files": [
10
10
  "dist/"
11
- ],
11
+ ],
12
12
  "engines": {
13
13
  "node": "16.0.0"
14
14
  },