@@ -28,7 +28,7 @@ const { execSync } = require('child_process');
2828const BUILD_CONFIG = {
2929 sourceDir : process . cwd ( ) ,
3030 distDir : path . join ( process . cwd ( ) , 'dist' ) ,
31- maxSizeMB : 4 ,
31+ maxSizeMB : 10 ,
3232
3333 // Essential patterns to include
3434 include : [
@@ -59,19 +59,23 @@ const BUILD_CONFIG = {
5959 '**/test-*' ,
6060 '**/*.log' ,
6161 '**/.DS_Store' ,
62+ '**/node_modules' ,
6263 '**/node_modules/**' ,
64+ '**/*package-lock.json' ,
65+ '**/*tsconfig.json' ,
6366 '**/dist/**' ,
6467 '**/.git/**'
6568 ] ,
6669
6770 // Core files that must exist in dist
6871 requiredFiles : [
72+ '.claude/commands/core/feature.md' ,
6973 '.claude/commands/phases/clarify.md' ,
7074 '.claude/commands/phases/plan.md' ,
7175 '.claude/commands/phases/tasks.md' ,
7276 '.claude/commands/phases/implement.md' ,
7377 '.claude/commands/epic/epic.md' ,
74- '.claude/skills/clarify /references/question-bank.md' ,
78+ '.claude/skills/clarification-phase /references/question-bank.md' ,
7579 '.claude/skills/epic/references/question-bank.md' ,
7680 '.spec-flow/scripts/bash/create-new-feature.sh' ,
7781 '.spec-flow/scripts/powershell/create-new-feature.ps1' ,
@@ -130,14 +134,22 @@ function copyDirectory(src, dest, options = {}) {
130134 * Check if path should be excluded based on patterns
131135 */
132136function shouldExclude ( filePath , excludePatterns ) {
137+ // Normalize path to use forward slashes for consistent pattern matching
138+ const normalizedPath = filePath . replace ( / \\ / g, '/' ) ;
139+
140+ // Check if path contains node_modules directory
141+ if ( normalizedPath . includes ( 'node_modules' ) ) {
142+ return true ;
143+ }
144+
133145 return excludePatterns . some ( pattern => {
134146 const regex = new RegExp (
135147 pattern
136148 . replace ( / \* \* / g, '.*' )
137149 . replace ( / \* / g, '[^/]*' )
138150 . replace ( / \. / g, '\\.' )
139151 ) ;
140- return regex . test ( filePath ) ;
152+ return regex . test ( normalizedPath ) ;
141153 } ) ;
142154}
143155
@@ -426,7 +438,7 @@ Package size within ${BUILD_CONFIG.maxSizeMB}MB limit.
426438 deployment/ # Deployment workflows
427439 agents/ # Specialist agent configurations
428440 skills/ # Workflow skills with question banks
429- clarify /references/question-bank.md
441+ clarification-phase /references/question-bank.md
430442 epic/references/question-bank.md
431443
432444.spec-flow/
0 commit comments