cpd 5.0.8 → 5.0.10
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 +17 -0
- package/package.json +8 -7
- package/run-cpd.js +1 -1
package/README.md
CHANGED
|
@@ -36,6 +36,22 @@ cargo install jscpd
|
|
|
36
36
|
|
|
37
37
|
Installs both `jscpd` and `cpd` binaries.
|
|
38
38
|
|
|
39
|
+
### Nix
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Run without installing
|
|
43
|
+
nix run github:kucherenko/jscpd -- /path/to/code
|
|
44
|
+
|
|
45
|
+
# Install permanently
|
|
46
|
+
nix profile install github:kucherenko/jscpd
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Homebrew
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
brew install jscpd
|
|
53
|
+
```
|
|
54
|
+
|
|
39
55
|
### From source
|
|
40
56
|
|
|
41
57
|
```bash
|
|
@@ -116,6 +132,7 @@ cargo test
|
|
|
116
132
|
|
|
117
133
|
See [docs/rust.md](../docs/rust.md) for the full differences table.
|
|
118
134
|
|
|
135
|
+
|
|
119
136
|
## License
|
|
120
137
|
|
|
121
138
|
MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cpd",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
4
4
|
"description": "Copy/paste detector — fast Rust-based CLI for code duplication detection",
|
|
5
|
+
"homepage": "https://jscpd.dev",
|
|
5
6
|
"bin": {
|
|
6
7
|
"cpd": "./run-cpd.js"
|
|
7
8
|
},
|
|
@@ -10,12 +11,12 @@
|
|
|
10
11
|
"platform-map.js"
|
|
11
12
|
],
|
|
12
13
|
"optionalDependencies": {
|
|
13
|
-
"cpd-linux-x64-gnu": "5.0.
|
|
14
|
-
"cpd-linux-arm64-gnu": "5.0.
|
|
15
|
-
"cpd-linux-x64-musl": "5.0.
|
|
16
|
-
"cpd-darwin-arm64": "5.0.
|
|
17
|
-
"cpd-darwin-x64": "5.0.
|
|
18
|
-
"cpd-windows-x64-msvc": "5.0.
|
|
14
|
+
"cpd-linux-x64-gnu": "5.0.10",
|
|
15
|
+
"cpd-linux-arm64-gnu": "5.0.10",
|
|
16
|
+
"cpd-linux-x64-musl": "5.0.10",
|
|
17
|
+
"cpd-darwin-arm64": "5.0.10",
|
|
18
|
+
"cpd-darwin-x64": "5.0.10",
|
|
19
|
+
"cpd-windows-x64-msvc": "5.0.10"
|
|
19
20
|
},
|
|
20
21
|
"repository": {
|
|
21
22
|
"type": "git",
|
package/run-cpd.js
CHANGED
|
@@ -19,7 +19,7 @@ const binaryName = process.platform === "win32" ? "cpd.exe" : "cpd";
|
|
|
19
19
|
let binaryPath;
|
|
20
20
|
try {
|
|
21
21
|
const pkgJson = require.resolve(`${entry.packageName}/package.json`, {
|
|
22
|
-
paths: [path.resolve(__dirname, "..")],
|
|
22
|
+
paths: [path.resolve(__dirname, ".."), __dirname],
|
|
23
23
|
});
|
|
24
24
|
binaryPath = path.join(path.dirname(pkgJson), "cpd-bin", binaryName);
|
|
25
25
|
} catch {
|