dslop 1.0.1 → 1.0.2
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/dist/index.js +1 -1
- package/package.json +6 -3
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 = "1.0.
|
|
6562
|
+
var VERSION = process.env.npm_package_version || "1.0.2";
|
|
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.2",
|
|
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",
|
|
@@ -13,9 +13,12 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"dev": "bun run --watch index.ts",
|
|
15
15
|
"start": "bun run index.ts",
|
|
16
|
-
"build": "bun build ./index.ts --outdir ./dist --target node --format esm && sed -i '' '1,3d' ./dist/index.js && echo '#!/usr/bin/env node\n' | cat - ./dist/index.js > temp && mv temp ./dist/index.js && chmod +x ./dist/index.js",
|
|
16
|
+
"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",
|
|
17
17
|
"build:binary": "bun build --compile ./index.ts --outfile dslop",
|
|
18
|
-
"prepublishOnly": "bun run build"
|
|
18
|
+
"prepublishOnly": "bun run build",
|
|
19
|
+
"release": "npm version patch && git push && git push --tags && npm publish",
|
|
20
|
+
"release:minor": "npm version minor && git push && git push --tags && npm publish",
|
|
21
|
+
"release:major": "npm version major && git push && git push --tags && npm publish"
|
|
19
22
|
},
|
|
20
23
|
"keywords": [
|
|
21
24
|
"duplicate",
|