Skip to content

Commit db6126b

Browse files
committed
Bump version to 0.2.0
1 parent ad63d08 commit db6126b

File tree

2 files changed

+29
-25
lines changed

2 files changed

+29
-25
lines changed

README.md

+28-24
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ Additional features not found the original version:
2525
2. Download the script
2626
- Install via jsr.io
2727
```shell
28-
curl https://jsr.io/@fry69/files-to-prompt-ts/0.1.7/files-to-prompt.ts > ftp.ts
28+
curl https://jsr.io/@fry69/files-to-prompt-ts/0.2.0/files-to-prompt.ts > ftp.ts
2929
```
3030

3131
- Install via GitHub
3232

3333
```shell
34-
curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.1.7/files-to-prompt.ts > ftp.ts
34+
curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.2.0/files-to-prompt.ts > ftp.ts
3535
```
3636

3737
3. Make the script executable with `chmod +x ftp.ts`
@@ -83,39 +83,43 @@ This tool includes a set of tests to ensure it works as expected. You can run th
8383
bun test --coverage
8484
```
8585
86-
Recent test status (v0.1.7):
86+
Recent test status (v0.2.0):
8787
8888
```
8989
bun test v1.1.4 (fbe2fe0c)
9090
9191
files-to-prompt.test.ts:
92-
✓ files-to-prompt.ts > should include single file passed on the command line [14.48ms]
93-
✓ files-to-prompt.ts > should include multiple files passed on the command line [7.38ms]
94-
✓ files-to-prompt.ts > should include files in directories passed on the command line [7.51ms]
95-
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.27ms]
96-
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [7.65ms]
97-
✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.41ms]
98-
✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.84ms]
99-
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [7.26ms]
100-
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [7.50ms]
101-
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.56ms]
102-
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [7.16ms]
103-
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [6.28ms]
104-
✓ files-to-prompt.ts > should skip binary files [6.94ms]
105-
✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [0.91ms]
106-
✓ files-to-prompt.ts > should skip FIFOs [16.39ms]
107-
✓ files-to-prompt.ts > should fail with error message if path does not exist [5.61ms]
92+
✓ files-to-prompt.ts > should include single file passed on the command line [11.76ms]
93+
✓ files-to-prompt.ts > should include multiple files passed on the command line [6.84ms]
94+
✓ files-to-prompt.ts > should include files in directories passed on the command line [7.63ms]
95+
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.67ms]
96+
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [7.41ms]
97+
✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.67ms]
98+
✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.96ms]
99+
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [6.81ms]
100+
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.08ms]
101+
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.91ms]
102+
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [8.42ms]
103+
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [6.80ms]
104+
✓ files-to-prompt.ts > should skip binary files [6.63ms]
105+
✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.22ms]
106+
✓ files-to-prompt.ts > should skip FIFOs [16.55ms]
107+
✓ files-to-prompt.ts > should fail with error message if path does not exist [6.71ms]
108+
✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.17ms]
109+
✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.04ms]
110+
✓ files-to-prompt.ts > should output version string when --version is passed [0.14ms]
111+
✓ files-to-prompt.ts > should output error for unsupported options [0.06ms]
108112
--------------------|---------|---------|-------------------
109113
File | % Funcs | % Lines | Uncovered Line #s
110114
--------------------|---------|---------|-------------------
111-
All files | 90.91 | 94.33 |
112-
files-to-prompt.ts | 90.91 | 94.33 | 28,39,62,100,274-277
115+
All files | 87.50 | 87.15 |
116+
files-to-prompt.ts | 87.50 | 87.15 | 30,41,64,102,229-240,315-317,335-338
113117
--------------------|---------|---------|-------------------
114118
115-
16 pass
119+
20 pass
116120
0 fail
117-
45 expect() calls
118-
Ran 16 tests across 1 files. [205.00ms]
121+
51 expect() calls
122+
Ran 20 tests across 1 files. [159.00ms]
119123
```
120124
121125
## Compatibility

jsr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@fry69/files-to-prompt-ts",
3-
"version": "0.1.7",
3+
"version": "0.2.0",
44
"exports": "./files-to-prompt.ts"
55
}

0 commit comments

Comments
 (0)