Skip to content

meta: turn this repo into a monorepo - #15553

Merged
ephys merged 11 commits into
mainfrom
ephys/monorepo
Jan 15, 2023
Merged

ephys merged 11 commits into
mainfrom
ephys/monorepo

Conversation

@ephys

@ephys ephys commented Jan 14, 2023

Copy link
Copy Markdown
Member

Pull Request Checklist

  • Have you added new tests to prevent regressions?
  • If a documentation update is necessary, have you opened a PR to the documentation repository?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Does the name of your PR follow our conventions?

Description Of Change

Writing plugins & packages that depend on core is a headache without a proper monorepo setup. This PR sets that up.

This should make it trivial to create new packages such as @sequelize/postgres, and @sequelize/validator.js

I'm sure I have missed something. Let's find out 🤞

I haven't tested the publish setup. If it fails, I'll open a follow-up PR to debug it

@WikiRik

WikiRik commented Jan 14, 2023

Copy link
Copy Markdown
Member

Let's publish a new alpha on the latest channel after we merge this to check if it works.

Another thing we can't really check right now and might need to fix in a follow up PR is the behaviour of renovate

@WikiRik WikiRik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Haven't really worked with yarn workspaces before and might need to get used to it a bit, especially with running the scripts using yarn workspace @sequelize/core test-unit-all for example. In a future PR we might want to look into making some scripts available on the root package as well (test-unit-all and test-integration-{dialect} comes to my mind first)

Comment thread packages/validator-js/package.json Resolved
Comment thread packages/validator-js/package.json Resolved
Comment thread packages/core/package.json Resolved
Comment thread .github/workflows/ci.yml Resolved
@ephys
ephys requested a review from WikiRik January 14, 2023 16:37
WikiRik
WikiRik previously approved these changes Jan 14, 2023

@WikiRik WikiRik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we should be able to test this out

@ephys

ephys commented Jan 15, 2023

Copy link
Copy Markdown
Member Author

Had to merge the changes made by renovate. We'll need to merge this before renovate updates something again

Also changed how the CI installs node_modules: Running yarn install at the root of the repo installs the dependencies of all packages automatically. And removed the lockfile from packages/core, because yarn doesn't actually use it. It uses the one at the root of the repo

@ephys
ephys merged commit d2c23ae into main Jan 15, 2023
@ephys
ephys deleted the ephys/monorepo branch January 15, 2023 10:01
@ephys

ephys commented Jan 15, 2023

Copy link
Copy Markdown
Member Author

🙌

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