repomeld 3.0.2 → 3.0.4
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 +3 -8
- package/bin/cli.js +1 -1
- package/package.json +4 -4
- package/src/utils/constants.js +3 -2
- package/src/utils/version.js +24 -0
package/README.md
CHANGED
|
@@ -328,7 +328,7 @@ repomeld --include src --style markdown --output analysis.md
|
|
|
328
328
|
|
|
329
329
|
```bash
|
|
330
330
|
# Clone the repo
|
|
331
|
-
git clone https://github.com/
|
|
331
|
+
git clone https://github.com/susheelhbti/repomeld.git
|
|
332
332
|
cd repomeld
|
|
333
333
|
|
|
334
334
|
# Install dependencies
|
|
@@ -383,11 +383,6 @@ MIT © [Susheel](mailto:susheelhbti@gmail.com)
|
|
|
383
383
|
> Got a project? Let's talk — 📧 **[susheelhbti@gmail.com](mailto:susheelhbti@gmail.com)**
|
|
384
384
|
|
|
385
385
|
---
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
[](https://star-history.com/#susheel/repomeld&Date)
|
|
390
|
-
|
|
391
|
-
---
|
|
392
|
-
|
|
386
|
+
|
|
387
|
+
|
|
393
388
|
**Made with ❤️ for developers who need better context for AI tools**
|
package/bin/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repomeld",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Meld your entire repo into a single file — perfect for AI context & code reviews",
|
|
5
5
|
"main": "bin/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
|
35
|
-
"url": "git+https://github.com/
|
|
35
|
+
"url": "git+https://github.com/susheelhbti/repomeld.git"
|
|
36
36
|
},
|
|
37
37
|
"bugs": {
|
|
38
|
-
"url": "https://github.com/
|
|
38
|
+
"url": "https://github.com/susheelhbti/repomeld/issues"
|
|
39
39
|
},
|
|
40
|
-
"homepage": "https://github.com/
|
|
40
|
+
"homepage": "https://github.com/susheelhbti/repomeld#readme"
|
|
41
41
|
}
|
package/src/utils/constants.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
const path = require("path");
|
|
2
|
+
const { getVersion } = require("./version");
|
|
2
3
|
|
|
3
4
|
// Normalize paths for cross-platform compatibility
|
|
4
5
|
const normalizePath = (p) => p.split(path.sep).join('/');
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
const PACKAGE_NAME =
|
|
7
|
+
// Auto-read version from package.json
|
|
8
|
+
const { version: VERSION, name: PACKAGE_NAME } = getVersion();
|
|
8
9
|
|
|
9
10
|
const DEFAULT_IGNORE = [
|
|
10
11
|
"node_modules", ".git", ".env", ".env.local", ".env.production",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const fs = require("fs");
|
|
3
|
+
|
|
4
|
+
// Cache the version to avoid reading file multiple times
|
|
5
|
+
let cachedVersion = null;
|
|
6
|
+
let cachedPackageName = null;
|
|
7
|
+
|
|
8
|
+
function getVersion() {
|
|
9
|
+
if (!cachedVersion) {
|
|
10
|
+
try {
|
|
11
|
+
const packageJsonPath = path.join(__dirname, "../../package.json");
|
|
12
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
|
|
13
|
+
cachedVersion = packageJson.version;
|
|
14
|
+
cachedPackageName = packageJson.name;
|
|
15
|
+
} catch (error) {
|
|
16
|
+
console.warn(`⚠️ Could not read package.json: ${error.message}`);
|
|
17
|
+
cachedVersion = "0.0.0";
|
|
18
|
+
cachedPackageName = "repomeld";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return { version: cachedVersion, name: cachedPackageName };
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
module.exports = { getVersion };
|