refactor: split codebase into workspaces#522
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the project by splitting the codebase into separate workspaces, reorganizing imports, and updating file paths to reflect the new structure.
- Updated import paths for internal dependencies across server and cache workspaces.
- Removed deprecated or redundant code such as unused mocks and extraneous configuration options.
- Added new configuration options (projectRootDir and componentsDir) for improved path resolution.
Reviewed Changes
Copilot reviewed 31 out of 43 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| workspaces/server/test/httpServer.test.js | Updated imports and adjusted options passed to buildServer. |
| workspaces/server/test/config.test.js | Updated import paths to reference the new config location. |
| workspaces/server/test/bodyPaser.test.js | Corrected import path for bodyParser; file name still appears misspelled. |
| workspaces/server/src/* | Changes reflect updated dependency paths and added configuration options for flexibility. |
| workspaces/cache/* | Refactored cache module imports to use the new workspace structure. |
| src/commands/* | Updated HTTP/server command imports to reference workspaces, removing deprecated code. |
| package.json, README.md, workflows | Adjusted workspace definitions and CI configurations. |
Comments suppressed due to low confidence (2)
workspaces/server/test/bodyPaser.test.js:6
- The file name 'bodyPaser.test.js' appears to be a typo; consider renaming it to 'bodyParser.test.js' for clarity.
import { bodyParser } from "../src/middlewares/bodyParser.js";
workspaces/server/README.md:35
- The code snippet for setting the data file path appears to be missing a closing quote in the string literal; please update it to include the missing quote.
"nsecure-result.json
fraxken
reviewed
Jun 24, 2025
a07d138 to
28ff50d
Compare
fraxken
approved these changes
Jun 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.