@goodfoot/claude-code-hooks 1.0.8 → 1.0.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/dist/scaffold.js +20 -18
- 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.
|
|
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'
|
|
@@ -145,29 +145,24 @@ function generateTsConfig() {
|
|
|
145
145
|
skipLibCheck: true,
|
|
146
146
|
declaration: true,
|
|
147
147
|
declarationMap: true,
|
|
148
|
-
outDir: './dist'
|
|
149
|
-
rootDir: './src'
|
|
148
|
+
outDir: './dist'
|
|
150
149
|
},
|
|
151
|
-
include: ['src/**/*.ts'],
|
|
152
|
-
exclude: ['node_modules', 'dist'
|
|
150
|
+
include: ['src/**/*.ts', 'test/**/*.ts'],
|
|
151
|
+
exclude: ['node_modules', 'dist']
|
|
153
152
|
};
|
|
154
153
|
return JSON.stringify(tsconfig, null, 2) + '\n';
|
|
155
154
|
}
|
|
156
155
|
/**
|
|
157
156
|
* Generates biome.json content for the scaffolded project.
|
|
158
157
|
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
158
|
+
* Uses Biome v2 configuration format with:
|
|
159
|
+
* - assist.actions.source.organizeImports for import organization
|
|
160
|
+
* - files.includes for specifying which files to process
|
|
161
161
|
* @returns JSON string for biome.json
|
|
162
162
|
*/
|
|
163
163
|
function generateBiomeConfig() {
|
|
164
|
-
// Generate JSON manually to ensure ignore array is on one line
|
|
165
|
-
// (biome's formatter expects this format)
|
|
166
164
|
return `{
|
|
167
|
-
"$schema": "https://biomejs.dev/schemas/
|
|
168
|
-
"organizeImports": {
|
|
169
|
-
"enabled": true
|
|
170
|
-
},
|
|
165
|
+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
|
171
166
|
"formatter": {
|
|
172
167
|
"enabled": true,
|
|
173
168
|
"indentStyle": "space",
|
|
@@ -180,8 +175,15 @@ function generateBiomeConfig() {
|
|
|
180
175
|
"recommended": true
|
|
181
176
|
}
|
|
182
177
|
},
|
|
178
|
+
"assist": {
|
|
179
|
+
"actions": {
|
|
180
|
+
"source": {
|
|
181
|
+
"organizeImports": "on"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
183
185
|
"files": {
|
|
184
|
-
"
|
|
186
|
+
"includes": ["src/**/*.ts", "test/**/*.ts", "*.ts"]
|
|
185
187
|
}
|
|
186
188
|
}
|
|
187
189
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodfoot/claude-code-hooks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
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": {
|