Skip to content
This repository was archived by the owner on Oct 9, 2026. It is now read-only.

Reorganize src/ - #190

Draft
mcmire wants to merge 1 commit into
eslint-9from
reorganize-src
Draft

mcmire wants to merge 1 commit into
eslint-9from
reorganize-src

Conversation

@mcmire

@mcmire mcmire commented Dec 12, 2025 •

Copy link
Copy Markdown
Contributor

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

socket-security Bot commented Dec 12, 2025 •

Copy link
Copy Markdown

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.
Comment thread vite.config.mjs
export default defineConfig({
plugins: [react(), tailwindcss()],
root: 'src/ui',
root: 'src/ui/app',

Copy link
Copy Markdown
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
Copy Markdown
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).

@GuillaumeRx

Copy link
Copy Markdown
Contributor

This library has now been migrated into the release-tools monorepo. This PR has been locked and this repo will be archived shortly. Going forward, releases of this library will only include changes made in the release-tools repo.

  • Please push this branch to release-tools and open a new PR there.
  • Optionally, add a link pointing to the discussion in this PR to provide context.

@MetaMask MetaMask locked and limited conversation to collaborators Oct 9, 2026

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants