Skip to content

Conversation

@mcmire
Copy link
Contributor

@mcmire mcmire commented Dec 12, 2025

It's hard to tell how the UI code is using the code that was originally added for the CLI. This commit splits out common code into a core/ directory while keeping the code unique to the CLI and UI in separate cli/ and ui/ directories.

Manual testing steps

  • Check out this branch.
  • Run yarn build.
  • Update core to use the local version of this repo.
  • Run create-release-branch. Test that it works as expected.
  • Run create-release-branch -i. Test that it works as expected.

@socket-security
Copy link

socket-security bot commented Dec 12, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​types/​node@​17.0.45 ⏵ 22.19.210010081 +196100

View full report

@mcmire mcmire force-pushed the reorganize-src branch 3 times, most recently from e058a38 to 803ad00 Compare December 12, 2025 19:36
It's hard to tell how the UI code is using the code that was originally
added for the CLI. This commit splits out common code into a `core/`
directory while keeping the code unique to the CLI and UI in separate
`cli/` and `ui/` directories.
export default defineConfig({
plugins: [react(), tailwindcss()],
root: 'src/ui',
root: 'src/ui/app',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pay particular attention to this. We want to make sure that these paths are correct and match what is being used in (what is now) ui/app/start.ts. (Note, I moved dist/ui to dist/ui/build so that the source for the app is in a different place than the compiled output.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this from src/, renamed it from dirname.ts, and changed it to return the "root" directory from the perspective of the source files (either src/ or dest/ depending on development or production).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants