@zwa73/dev-utils 1.0.15 → 1.0.16

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.
@@ -27,7 +27,7 @@ const CmdMapPath = (program) => program
27
27
  const duplicateHandling = options.duplicateHandling;
28
28
  const basePath = process.cwd();
29
29
  // 遍历当前目录下的所有文件
30
- const filePaths = utils_1.UtilFT.fileSearchRegex(basePath, regex.source, { relative: options.recursive })
30
+ const filePaths = utils_1.UtilFT.fileSearchRegex(basePath, regex.source, { relative: options.recursive, normalize: "posix" })
31
31
  .map((filePath) => path_1.default.relative(basePath, filePath))
32
32
  .filter((filePath) => excludeRegex ? (!excludeRegex.test(filePath)) : true);
33
33
  //对单个路径映射
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/dev-utils",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "编译与调试工具",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  "author": "zwa73",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@zwa73/utils": "^1.0.105",
18
+ "@zwa73/utils": "^1.0.109",
19
19
  "commander": "^11.1.0",
20
20
  "ts-node": "^10.9.2",
21
21
  "tsconfig-paths": "^4.2.0",
@@ -25,7 +25,7 @@ export const CmdMapPath = (program: Command) => program
25
25
  const duplicateHandling = options.duplicateHandling as DupMethod;
26
26
  const basePath = process.cwd();
27
27
  // 遍历当前目录下的所有文件
28
- const filePaths = UtilFT.fileSearchRegex(basePath, regex.source,{relative:options.recursive})
28
+ const filePaths = UtilFT.fileSearchRegex(basePath, regex.source,{relative:options.recursive,normalize:"posix"})
29
29
  .map((filePath)=>path.relative(basePath, filePath))
30
30
  .filter((filePath)=>excludeRegex ? (!excludeRegex.test(filePath)) : true);
31
31