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/dist/types.d.ts CHANGED
@@ -1,45 +1,18 @@
1
- import type { Buffer } from 'node:buffer';
1
+ export declare type StagedLintTask = string | string[]
2
2
 
3
- export declare interface RawImageData<T> {
4
- width: number
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.12",
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
- "@iconify-json/carbon": "^1.2.8",
77
- "@shikijs/vitepress-twoslash": "^3.2.2",
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.9",
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.2",
82
+ "bunfig": "^0.8.4",
85
83
  "cac": "^6.7.14",
86
84
  "changelogen": "^0.6.1",
87
- "lint-staged": "^15.5.0",
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
  }