bun-git-hooks 0.2.12 → 0.2.14
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 +81 -10
- package/dist/bin/cli.js +5152 -594
- package/dist/bin/git-hooks.d.ts +13 -4
- package/dist/bin/types.d.ts +10 -37
- package/dist/git-hooks.d.ts +13 -4
- package/dist/index.js +4704 -507
- package/dist/types.d.ts +10 -37
- package/package.json +6 -17
package/dist/types.d.ts
CHANGED
|
@@ -1,45 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
export declare type StagedLintTask = string | string[]
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
height: number
|
|
6
|
-
data: T
|
|
7
|
-
}
|
|
8
|
-
export declare interface BufferRet {
|
|
9
|
-
data: Buffer | Uint8ClampedArray
|
|
10
|
-
width: number
|
|
11
|
-
height: number
|
|
12
|
-
exifBuffer?: ArrayBuffer
|
|
13
|
-
comments?: string[]
|
|
14
|
-
}
|
|
15
|
-
export declare type UintArrRet = ImageData & {
|
|
16
|
-
exifBuffer?: ArrayBuffer
|
|
17
|
-
comments?: string[]
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface ImageData {
|
|
21
|
-
width: number
|
|
22
|
-
height: number
|
|
23
|
-
data: Uint8ClampedArray | Buffer
|
|
24
|
-
colorSpace?: 'srgb'
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type BufferLike = Buffer | Uint8Array | ArrayLike<number> | Iterable<number> | ArrayBuffer
|
|
28
|
-
|
|
29
|
-
export interface DecoderOptions {
|
|
30
|
-
useTArray: boolean
|
|
31
|
-
colorTransform?: boolean
|
|
32
|
-
formatAsRGBA?: boolean
|
|
33
|
-
tolerantDecoding?: boolean
|
|
34
|
-
maxResolutionInMP?: number
|
|
35
|
-
maxMemoryUsageInMB?: number
|
|
3
|
+
export interface StagedLintConfig {
|
|
4
|
+
[pattern: string]: StagedLintTask
|
|
36
5
|
}
|
|
37
6
|
|
|
38
7
|
export type GitHooksConfig = {
|
|
39
|
-
[K in typeof VALID_GIT_HOOKS[number]]?: string
|
|
8
|
+
[K in typeof VALID_GIT_HOOKS[number]]?: string | {
|
|
9
|
+
'stagedLint'?: StagedLintConfig
|
|
10
|
+
'staged-lint'?: StagedLintConfig
|
|
11
|
+
}
|
|
40
12
|
} & {
|
|
41
|
-
preserveUnused?: boolean | typeof VALID_GIT_HOOKS[number][]
|
|
42
|
-
verbose?: boolean
|
|
13
|
+
'preserveUnused'?: boolean | typeof VALID_GIT_HOOKS[number][]
|
|
14
|
+
'verbose'?: boolean
|
|
15
|
+
'staged-lint'?: StagedLintConfig
|
|
43
16
|
}
|
|
44
17
|
|
|
45
18
|
export interface SetHooksFromConfigOptions {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bun-git-hooks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.14",
|
|
5
5
|
"description": "A modern, zero dependency tool for managing git hooks in Bun projects.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -73,29 +73,18 @@
|
|
|
73
73
|
"zip:darwin-arm64": "zip -j bin/git-hooks-darwin-arm64.zip bin/git-hooks-darwin-arm64"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
76
|
+
"@stacksjs/clarity": "0.3.14",
|
|
77
|
+
"@stacksjs/docs": "^0.70.23",
|
|
78
78
|
"@stacksjs/eslint-config": "^4.10.2-beta.3",
|
|
79
|
-
"@types/bun": "^1.2.
|
|
80
|
-
"@types/node": "^22.14.0",
|
|
81
|
-
"@vite-pwa/vitepress": "^1.0.0",
|
|
79
|
+
"@types/bun": "^1.2.11",
|
|
82
80
|
"bumpp": "^10.1.0",
|
|
83
81
|
"bun-plugin-dtsx": "^0.21.9",
|
|
84
|
-
"bunfig": "^0.8.
|
|
82
|
+
"bunfig": "^0.8.4",
|
|
85
83
|
"cac": "^6.7.14",
|
|
86
84
|
"changelogen": "^0.6.1",
|
|
87
|
-
"
|
|
88
|
-
"typescript": "^5.8.3",
|
|
89
|
-
"unocss": "^66.0.0",
|
|
90
|
-
"unplugin-icons": "^22.1.0",
|
|
91
|
-
"unplugin-vue-components": "^28.4.1",
|
|
92
|
-
"vite-plugin-pwa": "^1.0.0",
|
|
93
|
-
"vitepress": "^1.6.3"
|
|
85
|
+
"typescript": "^5.8.3"
|
|
94
86
|
},
|
|
95
87
|
"overrides": {
|
|
96
88
|
"unconfig": "0.3.10"
|
|
97
|
-
},
|
|
98
|
-
"lint-staged": {
|
|
99
|
-
"*.{js,ts}": "bunx --bun eslint . --fix"
|
|
100
89
|
}
|
|
101
90
|
}
|