project2txt 1.0.0 → 1.1.1

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.js +2 -1
  3. package/package.json +24 -18
package/README.md CHANGED
@@ -31,10 +31,10 @@ project2txt <path_or_repo> [flags]
31
31
  project2txt ./myProject --out bundle.txt --maxLines 5000
32
32
 
33
33
  # short repo syntax
34
- project2txt facebook/react --dir scans --name react.txt
34
+ project2txt facebook/react --dir scans --out react.txt
35
35
 
36
36
  # full URL
37
- project2txt https://github.com/vercel/next.js --dir output --name next.txt --maxMb 10
37
+ project2txt https://github.com/vercel/next.js --dir output --out next.txt --maxMb 10
38
38
 
39
39
  # keep clone folder
40
40
  project2txt user/repo --keep
package/index.js CHANGED
@@ -10,6 +10,7 @@ const ignore = require('ignore');
10
10
  const pino = require('pino');
11
11
  const { execSync } = require('child_process');
12
12
  const tmp = require('tmp');
13
+ const CWD = process.cwd();
13
14
  tmp.setGracefulCleanup();
14
15
 
15
16
  const logger = pino({ level: 'info' });
@@ -46,7 +47,7 @@ function cloneIfNeeded(input) {
46
47
  return clonePath;
47
48
  }
48
49
  projectRoot = cloneIfNeeded(projectRoot);
49
- outDir = path.resolve(projectRoot, outDir);
50
+ outDir = path.resolve(CWD, outDir);
50
51
  fs.mkdirSync(outDir, { recursive: true });
51
52
 
52
53
  const maxBytes = maxSizeMb * 1024 * 1024;
package/package.json CHANGED
@@ -1,32 +1,38 @@
1
1
  {
2
2
  "name": "project2txt",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Concatenate any project (local or GitHub repo) into a single text file for AI",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "project2txt": "./index.js"
8
8
  },
9
9
  "preferGlobal": true,
10
- "keywords": ["cli", "ai", "source", "concat"],
10
+ "keywords": [
11
+ "cli",
12
+ "ai",
13
+ "source",
14
+ "concat"
15
+ ],
11
16
  "author": {
12
- "name": "da-b1rmuda",
13
- "url": "https://github.com/da-b1rmuda"
14
- },
15
- "license": "MIT",
16
- "homepage": "https://github.com/da-b1rmuda/project2txt#readme",
17
- "repository": {
18
- "type": "git",
19
- "url": "https://github.com/da-b1rmuda/project2txt.git"
20
- },
21
- "bugs": {
22
- "url": "https://github.com/da-b1rmuda/project2txt/issues"
23
- },
24
- "engines": {
25
- "node": ">=18.0.0"
26
- },
17
+ "name": "da-b1rmuda",
18
+ "url": "https://github.com/da-b1rmuda"
19
+ },
20
+ "license": "MIT",
21
+ "homepage": "https://github.com/da-b1rmuda/project2txt#readme",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/da-b1rmuda/project2txt.git"
25
+ },
26
+ "bugs": {
27
+ "url": "https://github.com/da-b1rmuda/project2txt/issues"
28
+ },
29
+ "engines": {
30
+ "node": ">=18.0.0"
31
+ },
27
32
  "dependencies": {
28
33
  "glob": "^13.0.0",
29
34
  "ignore": "^7.0.5",
30
- "pino": "^10.1.1"
35
+ "pino": "^10.1.1",
36
+ "tmp": "^0.2.5"
31
37
  }
32
38
  }