dslop 1.0.5 → 1.0.6
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/CHANGELOG.md +32 -0
- package/dist/index.js +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## v1.0.6
|
|
6
|
+
|
|
7
|
+
[compare changes](https://github.com/turf-sports/dslop/compare/v1.0.5...v1.0.6)
|
|
8
|
+
|
|
9
|
+
### 🏡 Chore
|
|
10
|
+
|
|
11
|
+
- Add changelogen for automated changelogs ([7cb82db](https://github.com/turf-sports/dslop/commit/7cb82db))
|
|
12
|
+
|
|
13
|
+
### ❤️ Contributors
|
|
14
|
+
|
|
15
|
+
- Siddharth Sharma <sharmasiddharthcs@gmail.com>
|
|
16
|
+
|
|
17
|
+
## v1.0.5
|
|
18
|
+
|
|
19
|
+
### 🚀 Features
|
|
20
|
+
|
|
21
|
+
- Initial public release
|
|
22
|
+
- Detect duplicate and similar code blocks across your codebase
|
|
23
|
+
- Smart normalization (strings, numbers, colors) for structural comparison
|
|
24
|
+
- Monorepo mode with `--cross-package` flag
|
|
25
|
+
- JSON output support
|
|
26
|
+
- Configurable similarity threshold and minimum block size
|
|
27
|
+
|
|
28
|
+
### 📦 Publishing
|
|
29
|
+
|
|
30
|
+
- Available via `npx dslop`
|
|
31
|
+
- Auto-versioning with changelogs
|
|
32
|
+
|
package/dist/index.js
CHANGED
|
@@ -6559,7 +6559,7 @@ async function scanDirectory(targetPath, options) {
|
|
|
6559
6559
|
}
|
|
6560
6560
|
|
|
6561
6561
|
// index.ts
|
|
6562
|
-
var VERSION = process.env.npm_package_version || "1.0.
|
|
6562
|
+
var VERSION = process.env.npm_package_version || "1.0.6";
|
|
6563
6563
|
function showHelp() {
|
|
6564
6564
|
console.log(`
|
|
6565
6565
|
dslop - Detect Similar/Duplicate Lines Of Programming
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dslop",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Detect Similar/Duplicate Lines Of Programming - Find code duplication in your codebase",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
-
"README.md"
|
|
12
|
+
"README.md",
|
|
13
|
+
"CHANGELOG.md"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
16
|
"dev": "bun run --watch index.ts",
|
|
@@ -17,9 +18,10 @@
|
|
|
17
18
|
"build": "bun build ./index.ts --outdir ./dist --target node --format esm && VERSION=$(node -p \"require('./package.json').version\") && sed -i '' '1,3d' ./dist/index.js && sed -i '' \"s/__INJECT_VERSION__/$VERSION/g\" ./dist/index.js && echo '#!/usr/bin/env node\n' | cat - ./dist/index.js > temp && mv temp ./dist/index.js && chmod +x ./dist/index.js",
|
|
18
19
|
"build:binary": "bun build --compile ./index.ts --outfile dslop",
|
|
19
20
|
"prepublishOnly": "bun run build",
|
|
20
|
-
"
|
|
21
|
-
"release
|
|
22
|
-
"release:
|
|
21
|
+
"changelog": "bunx changelogen --output CHANGELOG.md",
|
|
22
|
+
"release": "bunx changelogen --release --push && npm publish",
|
|
23
|
+
"release:minor": "bunx changelogen --release --minor --push && npm publish",
|
|
24
|
+
"release:major": "bunx changelogen --release --major --push && npm publish"
|
|
23
25
|
},
|
|
24
26
|
"keywords": [
|
|
25
27
|
"duplicate",
|
|
@@ -42,7 +44,8 @@
|
|
|
42
44
|
"node": ">=18"
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {
|
|
45
|
-
"@types/bun": "latest"
|
|
47
|
+
"@types/bun": "latest",
|
|
48
|
+
"changelogen": "^0.6.2"
|
|
46
49
|
},
|
|
47
50
|
"peerDependencies": {
|
|
48
51
|
"typescript": "^5"
|