@goodfoot/claude-code-hooks 1.0.8 → 1.0.9

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.
Files changed (2) hide show
  1. package/dist/scaffold.js +17 -14
  2. package/package.json +1 -1
package/dist/scaffold.js CHANGED
@@ -116,13 +116,13 @@ function generatePackageJson(projectName, outputPath) {
116
116
  typecheck: 'tsc --noEmit'
117
117
  },
118
118
  dependencies: {
119
- '@goodfoot/claude-code-hooks': '^1.0.0'
119
+ '@goodfoot/claude-code-hooks': '^1.0.9'
120
120
  },
121
121
  devDependencies: {
122
- '@biomejs/biome': '^1.9.0',
123
- '@types/node': '^20.0.0',
124
- typescript: '^5.6.0',
125
- vitest: '^2.0.0'
122
+ '@biomejs/biome': '2.3.11',
123
+ '@types/node': '^22.0.0',
124
+ typescript: '^5.9.3',
125
+ vitest: '^4.0.16'
126
126
  },
127
127
  engines: {
128
128
  node: '>=20.11.0'
@@ -156,18 +156,14 @@ function generateTsConfig() {
156
156
  /**
157
157
  * Generates biome.json content for the scaffolded project.
158
158
  *
159
- * The ignore array is formatted on one line to match biome's own formatting preferences.
160
- * This avoids lint errors when running `biome check` on the generated project.
159
+ * Uses Biome v2 configuration format with:
160
+ * - assist.actions.source.organizeImports for import organization
161
+ * - files.includes for specifying which files to process
161
162
  * @returns JSON string for biome.json
162
163
  */
163
164
  function generateBiomeConfig() {
164
- // Generate JSON manually to ensure ignore array is on one line
165
- // (biome's formatter expects this format)
166
165
  return `{
167
- "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
168
- "organizeImports": {
169
- "enabled": true
170
- },
166
+ "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
171
167
  "formatter": {
172
168
  "enabled": true,
173
169
  "indentStyle": "space",
@@ -180,8 +176,15 @@ function generateBiomeConfig() {
180
176
  "recommended": true
181
177
  }
182
178
  },
179
+ "assist": {
180
+ "actions": {
181
+ "source": {
182
+ "organizeImports": "on"
183
+ }
184
+ }
185
+ },
183
186
  "files": {
184
- "ignore": ["node_modules", "dist", "bin", "*.json"]
187
+ "includes": ["src/**/*.ts", "test/**/*.ts", "*.ts"]
185
188
  }
186
189
  }
187
190
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodfoot/claude-code-hooks",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Type-safe Claude Code hooks library with camelCase types and output builders",
5
5
  "homepage": "https://github.com/goodfoot-io/marketplace/tree/main/packages/claude-code-hooks",
6
6
  "repository": {