dslop 1.4.1 → 1.5.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/CHANGELOG.md +12 -0
- package/dist/index.cjs +52003 -0
- package/package.json +9 -5
- package/dist/index.js +0 -7215
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dslop",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Detect Similar/Duplicate Lines Of Programming - Find code duplication in your codebase",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./dist/index.
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
7
|
"bin": {
|
|
8
|
-
"dslop": "./dist/index.
|
|
8
|
+
"dslop": "./dist/index.cjs"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"dev": "bun run --watch index.ts",
|
|
17
17
|
"start": "bun run index.ts",
|
|
18
|
-
"build": "
|
|
18
|
+
"build": "esbuild index.ts --bundle --platform=node --format=cjs --outfile=dist/index.cjs && sed -i '' '1d' ./dist/index.cjs && VERSION=$(node -p \"require('./package.json').version\") && sed -i '' \"s/__INJECT_VERSION__/$VERSION/g\" ./dist/index.cjs && echo '#!/usr/bin/env node' | cat - ./dist/index.cjs > temp && mv temp ./dist/index.cjs && chmod +x ./dist/index.cjs",
|
|
19
19
|
"build:binary": "bun build --compile ./index.ts --outfile dslop",
|
|
20
20
|
"prepublishOnly": "bun run build",
|
|
21
21
|
"changelog": "bunx changelogen --output CHANGELOG.md",
|
|
@@ -45,12 +45,16 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/bun": "latest",
|
|
48
|
-
"changelogen": "^0.6.2"
|
|
48
|
+
"changelogen": "^0.6.2",
|
|
49
|
+
"esbuild": "^0.27.2"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"typescript": "^5"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
55
|
+
"@babel/parser": "^7.28.5",
|
|
56
|
+
"@babel/traverse": "^7.28.5",
|
|
57
|
+
"@babel/types": "^7.28.5",
|
|
54
58
|
"glob": "^13.0.0"
|
|
55
59
|
}
|
|
56
60
|
}
|