Skip to content

extract "core" package, small improvements#137

Draft
martin-mfg wants to merge 33 commits intomasterfrom
npm-package
Draft

extract "core" package, small improvements#137
martin-mfg wants to merge 33 commits intomasterfrom
npm-package

Conversation

@martin-mfg
Copy link
Copy Markdown
Member

@martin-mfg martin-mfg commented Apr 11, 2026

This PR mainly refactors the code by extracting a "core" package which is then used by the "backend" and "frontend" apps.

Apart from this the PR also contains several smaller changes like fixing dependabot, upgrading dependencies, aligned "package.json" files, added tests, ...

addresses step 1 of #32
closes #136

…ss pat-override to retryer, update snapshots
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
github-stats-extended-backend Ready Ready Preview, Comment Apr 12, 2026 2:27pm
github-stats-extended-frontend Ready Ready Preview, Comment Apr 12, 2026 2:27pm

@martin-mfg martin-mfg marked this pull request as draft April 11, 2026 08:47
@martin-mfg martin-mfg requested a review from marcalexiei April 11, 2026 08:48
Copy link
Copy Markdown

@marcalexiei marcalexiei left a comment

Choose a reason for hiding this comment

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

Apart from this the PR also contains several smaller changes like fixing dependabot, upgrading dependencies, aligned "package.json" files, added tests, ...

Reviewing all changes is too much,
The Github UI is not very responsive after viewing 74 / 144.

I’ve left a few comments, but in my opinion this PR contains too many changes to be fully reviewed.


In the future, please let’s aim to keep PRs smaller to make the review process easier.

@martin-mfg
Copy link
Copy Markdown
Member Author

Reviewing all changes is too much, The Github UI is not very responsive after viewing 74 / 144.

I’ve left a few comments, but in my opinion this PR contains too many changes to be fully reviewed.

In the future, please let’s aim to keep PRs smaller to make the review process easier.

Understandable. I wasn't sure if anyone would review my changes, which is why I didn't pay so much attention to PR size. But it's great that you are willing to review, and I'll keep this in mind for next time.
...Also, I hope that we're done with these big refactorings soon.

Copy link
Copy Markdown

@marcalexiei marcalexiei left a comment

Choose a reason for hiding this comment

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

Understandable. I wasn't sure if anyone would review my changes, which is why I didn't pay so much attention to PR size. But it's great that you are willing to review, and I'll keep this in mind for next time.

Great, we will eventually review part of this code when migrating core and backend to typescript!


...Also, I hope that we're done with these big refactorings soon.

I don't see any additional structure improvements that might lead to such big changes since we now have a clear distinction between packages and apps.
The only big refactor I could think of is migrating the core and the backend workspaces to typescript.


What are we going to do next?
Are we going to create a PR for building core package (dist with js and d.ts files) and squash it into this branch, so we can get rid of the type error?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We have some lint errors in this file:

   4:6  error  Use an `interface` instead of a `type`                                 @typescript-eslint/consistent-type-definitions
  17:9  error  Array type using 'string[]' is forbidden. Use 'Array<string>' instead  @typescript-eslint/array-type
  32:9  error  Array type using 'string[]' is forbidden. Use 'Array<string>' instead  @typescript-eslint/array-type
  39:9  error  Array type using 'string[]' is forbidden. Use 'Array<string>' instead  @typescript-eslint/array-type
  50:9  error  Array type using 'string[]' is forbidden. Use 'Array<string>' instead  @typescript-eslint/array-type
  62:9  error  Array type using 'string[]' is forbidden. Use 'Array<string>' instead  @typescript-eslint/array-type

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We have some lint errors in this file:

    1:13  error  Use an `interface` instead of a `type`                       @typescript-eslint/consistent-type-definitions
   10:13  error  Use an `interface` instead of a `type`                       @typescript-eslint/consistent-type-definitions
   32:13  error  Use an `interface` instead of a `type`                       @typescript-eslint/consistent-type-definitions
   52:13  error  Use an `interface` instead of a `type`                       @typescript-eslint/consistent-type-definitions
   60:13  error  Use an `interface` instead of a `type`                       @typescript-eslint/consistent-type-definitions
   61:15  error  Array type using 'T[]' is forbidden. Use 'Array<T>' instead  @typescript-eslint/array-type
   74:12  error  Array type using 'T[]' is forbidden. Use 'Array<T>' instead  @typescript-eslint/array-type
   95:14  error  Array type using 'T[]' is forbidden. Use 'Array<T>' instead  @typescript-eslint/array-type
  104:22  error  Array type using 'T[]' is forbidden. Use 'Array<T>' instead  @typescript-eslint/array-type
  124:13  error  Use an `interface` instead of a `type`                       @typescript-eslint/consistent-type-definitions

@martin-mfg
Copy link
Copy Markdown
Member Author

What are we going to do next?
Are we going to create a PR for building core package (dist with js and d.ts files) and squash it into this branch, so we can get rid of the type error?

Yes. Except I planned to merge it instead of squashing.

How do we approach this next step? Since you wrote "I can take care of generating the dist folder with the artifacts that will be published to npm (JavaScript and .d.ts files produced by tsc)", should I just wait for a PR from you?

@marcalexiei
Copy link
Copy Markdown

We have the CI broken so I would prefer to get it fixed before merge.
I will open a PR against npm-package branch where I will setup the core build logic so we can get the CI green here and fix all remaining issues

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.

core package - improvements suggestions

2 participants