@goodfoot/claude-code-hooks 1.0.7 → 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.
- package/dist/scaffold.js +17 -14
- package/package.json +7 -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.
|
|
119
|
+
'@goodfoot/claude-code-hooks': '^1.0.9'
|
|
120
120
|
},
|
|
121
121
|
devDependencies: {
|
|
122
|
-
'@biomejs/biome': '
|
|
123
|
-
'@types/node': '^
|
|
124
|
-
typescript: '^5.
|
|
125
|
-
vitest: '^
|
|
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
|
-
*
|
|
160
|
-
*
|
|
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/
|
|
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
|
-
"
|
|
187
|
+
"includes": ["src/**/*.ts", "test/**/*.ts", "*.ts"]
|
|
185
188
|
}
|
|
186
189
|
}
|
|
187
190
|
`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodfoot/claude-code-hooks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Type-safe Claude Code hooks library with camelCase types and output builders",
|
|
5
|
+
"homepage": "https://github.com/goodfoot-io/marketplace/tree/main/packages/claude-code-hooks",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/goodfoot-io/marketplace.git",
|
|
9
|
+
"directory": "packages/claude-code-hooks"
|
|
10
|
+
},
|
|
5
11
|
"type": "module",
|
|
6
12
|
"sideEffects": false,
|
|
7
13
|
"engines": {
|