srcpack 0.1.8 → 0.1.10
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 +2 -1
- package/dist/bundle.d.ts +2 -1
- package/dist/cli.js +592 -423
- package/dist/config.d.ts +3 -0
- package/dist/index.js +5 -2
- package/package.json +3 -3
- package/src/bundle.ts +63 -5
- package/src/cli.ts +8 -8
- package/src/config.ts +12 -1
package/README.md
CHANGED
|
@@ -73,7 +73,8 @@ Or add to `package.json`:
|
|
|
73
73
|
{
|
|
74
74
|
include: "src/**/*",
|
|
75
75
|
outfile: "~/Downloads/bundle.txt", // custom output path
|
|
76
|
-
index: true
|
|
76
|
+
index: true, // include index header (default)
|
|
77
|
+
prompt: "./prompts/review.md" // prepend from file (or inline text)
|
|
77
78
|
}
|
|
78
79
|
```
|
|
79
80
|
|
package/dist/bundle.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BundleConfigInput } from "./config.ts";
|
|
2
2
|
export interface FileEntry {
|
|
3
3
|
path: string;
|
|
4
4
|
lines: number;
|
|
@@ -26,6 +26,7 @@ export declare function resolvePatterns(config: BundleConfigInput, cwd: string):
|
|
|
26
26
|
export declare function formatIndex(index: FileEntry[]): string;
|
|
27
27
|
export interface BundleOptions {
|
|
28
28
|
includeIndex?: boolean;
|
|
29
|
+
prompt?: string;
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* Create a bundle from a list of files.
|