Frontmatter
| id | 8764 |
| title | Refactor buildScripts folder structure |
| state | Closed |
| labels | airefactoringbuild |
| assignees | tobiu |
| createdAt | Jan 17, 2026, 7:59 PM |
| updatedAt | Jan 17, 2026, 8:34 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8764 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 17, 2026, 8:34 PM |
Refactor buildScripts folder structure
tobiu assigned to @tobiu on Jan 17, 2026, 8:33 PM

tobiu
Jan 17, 2026, 8:33 PM
Input from Gemini 3 Pro:
✦ I have successfully refactored the
buildScriptsfolder structure as requested.Changes:
- Restructured Directory: Moved scripts into logical subdirectories (
ai,build,create,docs,helpers,release,util).- Updated Imports: Fixed all relative path imports within the moved scripts.
- Updated
package.json: Modified allnpm runscripts to point to the new file locations.- Updated Webpack Configs: Adjusted paths in webpack configurations to align with the new structure.
- Fixed Webpack Build: Updated
webpackExcludepatterns insrc/worker/App.mjs,src/worker/Task.mjs, andsrc/worker/Canvas.mjsto specifically exclude thebuildScriptsdirectory. This prevents Webpack from attempting to bundle node-only scripts (like those usingfs) into the browser-based worker bundles, resolving the "Module not found" errors encountered during the build.Verification:
The
npm run build-allcommand should now execute successfully without errors related to missing modules or incorrect paths.Note: I also removed the empty
buildScripts/toolsdirectory.
tobiu closed this issue on Jan 17, 2026, 8:34 PM
We need to restructure the
buildScripts/directory to improve organization and maintainability. Currently, it's a flat list of diverse scripts.Proposed Structure:
Tasks:
package.jsonscripts to point to new locations.buildScripts/README.md.