cpd 5.0.16 → 5.1.0

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/README.md CHANGED
@@ -26,7 +26,7 @@ npm install -g jscpd
26
26
  npm install -g cpd
27
27
  ```
28
28
 
29
- Prebuilt binaries for 6 platforms — no Node.js runtime required.
29
+ Prebuilt binaries for 7 platforms — no Node.js runtime required.
30
30
 
31
31
  ### crates.io
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cpd",
3
- "version": "5.0.16",
3
+ "version": "5.1.0",
4
4
  "description": "Copy/paste detector — fast Rust-based CLI for code duplication detection",
5
5
  "homepage": "https://jscpd.dev",
6
6
  "bin": {
@@ -11,12 +11,13 @@
11
11
  "platform-map.js"
12
12
  ],
13
13
  "optionalDependencies": {
14
- "jscpd-linux-x64-gnu": "5.0.16",
15
- "jscpd-linux-arm64-gnu": "5.0.16",
16
- "jscpd-linux-x64-musl": "5.0.16",
17
- "jscpd-darwin-arm64": "5.0.16",
18
- "jscpd-darwin-x64": "5.0.16",
19
- "jscpd-windows-x64-msvc": "5.0.16"
14
+ "jscpd-linux-x64-gnu": "5.1.0",
15
+ "jscpd-linux-arm64-gnu": "5.1.0",
16
+ "jscpd-linux-x64-musl": "5.1.0",
17
+ "jscpd-darwin-arm64": "5.1.0",
18
+ "jscpd-darwin-x64": "5.1.0",
19
+ "jscpd-windows-x64-msvc": "5.1.0",
20
+ "jscpd-windows-arm64-msvc": "5.1.0"
20
21
  },
21
22
  "repository": {
22
23
  "type": "git",
package/platform-map.js CHANGED
@@ -48,6 +48,13 @@ const PLATFORM_MAP = {
48
48
  rustTarget: "x86_64-pc-windows-msvc",
49
49
  runner: "windows-latest",
50
50
  },
51
+ "windows-arm64-msvc": {
52
+ packageName: "jscpd-windows-arm64-msvc",
53
+ os: "win32",
54
+ cpu: "arm64",
55
+ rustTarget: "aarch64-pc-windows-msvc",
56
+ runner: "windows-11-arm",
57
+ },
51
58
  };
52
59
 
53
60
  function detectLinuxLibc() {
@@ -81,4 +88,4 @@ function getPlatformKey() {
81
88
  return undefined;
82
89
  }
83
90
 
84
- module.exports = { PLATFORM_MAP, getPlatformKey };
91
+ module.exports = { PLATFORM_MAP, getPlatformKey };