Skip to content

Commit

Permalink
Bump version to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fry69 committed Apr 17, 2024
1 parent 4d3746a commit 752a04b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 29 deletions.
62 changes: 35 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ Additional features not found the original version:
2. Download the script
- Install via jsr.io
```shell
curl https://jsr.io/@fry69/files-to-prompt-ts/0.2.0/files-to-prompt.ts > ftp.ts
curl https://jsr.io/@fry69/files-to-prompt-ts/0.2.1/files-to-prompt.ts > ftp.ts
```

- Install via GitHub

```shell
curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.2.0/files-to-prompt.ts > ftp.ts
curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.2.1/files-to-prompt.ts > ftp.ts
```

3. Make the script executable with `chmod +x ftp.ts`
Expand Down Expand Up @@ -83,43 +83,51 @@ This tool includes a set of tests to ensure it works as expected. You can run th
bun test --coverage
```

Recent test status (v0.2.0):
Recent test status (v0.2.1):

```
bun test v1.1.4 (fbe2fe0c)
files-to-prompt.test.ts:
✓ files-to-prompt.ts > should include single file passed on the command line [11.76ms]
✓ files-to-prompt.ts > should include multiple files passed on the command line [6.84ms]
✓ files-to-prompt.ts > should include files in directories passed on the command line [7.63ms]
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.67ms]
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [7.41ms]
✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.67ms]
✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.96ms]
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [6.81ms]
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.08ms]
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.91ms]
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [8.42ms]
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [6.80ms]
✓ files-to-prompt.ts > should skip binary files [6.63ms]
✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.22ms]
✓ files-to-prompt.ts > should skip FIFOs [16.55ms]
✓ files-to-prompt.ts > should fail with error message if path does not exist [6.71ms]
✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.17ms]
✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.04ms]
✓ files-to-prompt.ts > should output version string when --version is passed [0.14ms]
✓ files-to-prompt.ts > should include single file passed on the command line [11.59ms]
✓ files-to-prompt.ts > should include multiple files passed on the command line [6.86ms]
✓ files-to-prompt.ts > should include files in directories passed on the command line [7.73ms]
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.64ms]
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [6.61ms]
✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.47ms]
✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.89ms]
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [6.75ms]
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.17ms]
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.77ms]
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [6.85ms]
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [7.62ms]
✓ files-to-prompt.ts > should skip binary files [6.88ms]
✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.14ms]
✓ files-to-prompt.ts > should skip FIFOs [20.92ms]
✓ files-to-prompt.ts > should fail with error message if path does not exist [6.70ms]
✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.32ms]
✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.06ms]
✓ files-to-prompt.ts > should parse file paths with one file path per line [0.07ms]
✓ files-to-prompt.ts > should handle mixed input formats [0.03ms]
✓ files-to-prompt.ts > should handle empty lines in stdin data [0.03ms]
✓ files-to-prompt.ts > should handle binary data in stdin [0.09ms]
✓ files-to-prompt.ts > should handle common text/code files in stdin [0.04ms]
✓ files-to-prompt.ts > should handle long file paths in stdin [0.26ms]
✓ files-to-prompt.ts > should ignore file paths with the null character [0.04ms]
✓ files-to-prompt.ts > should ignore file paths with control characters [0.03ms]
✓ files-to-prompt.ts > should output version string when --version is passed [0.10ms]
✓ files-to-prompt.ts > should output error for unsupported options [0.06ms]
--------------------|---------|---------|-------------------
File | % Funcs | % Lines | Uncovered Line #s
--------------------|---------|---------|-------------------
All files | 87.50 | 87.15 |
files-to-prompt.ts | 87.50 | 87.15 | 30,41,64,102,229-240,315-317,335-338
All files | 88.00 | 88.38 |
files-to-prompt.ts | 88.00 | 88.38 | 30,41,64,102,229-240,349-351,369-372
--------------------|---------|---------|-------------------
20 pass
28 pass
0 fail
51 expect() calls
Ran 20 tests across 1 files. [159.00ms]
59 expect() calls
Ran 28 tests across 1 files. [165.00ms]
```

## Compatibility
Expand Down
2 changes: 1 addition & 1 deletion files-to-prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import fs from 'node:fs';
import path from 'node:path';

const VERSION = '0.2.0';
const VERSION = '0.2.1';

/**
* Represents the configuration for the file processing.
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fry69/files-to-prompt-ts",
"version": "0.2.0",
"version": "0.2.1",
"exports": "./files-to-prompt.ts"
}

0 comments on commit 752a04b

Please sign in to comment.