Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/convert to monolith #164

Merged
merged 4 commits into from
May 30, 2023
Merged

Feature/convert to monolith #164

merged 4 commits into from
May 30, 2023

Conversation

codespool
Copy link
Collaborator

@codespool codespool commented May 23, 2023

Having a monorepo setup didn't really show much benefit, and likely contributed to the @polkadot/* dependency confusion and issues.
I believe reverting back to the monolith setup and exposing the utility functions that are likely to be used by other projects will lead to simpler and more maintainable project. (and also simplify the switch to ESM.

NOTE FOR REVIEW:

  • no need to check all the individual files, not much code has been changed, only directory structure and configs/paths

@codespool codespool marked this pull request as ready for review May 25, 2023 19:48
@codespool codespool requested a review from shunsukew May 25, 2023 19:48
@codespool codespool mentioned this pull request May 25, 2023
Copy link
Contributor

Choose a reason for hiding this comment

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

Repository structure has been changed, README updates also needed in my opinion.

Copy link
Collaborator Author

@codespool codespool May 29, 2023

Choose a reason for hiding this comment

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

I'll update readme (and docs) once this, ESM and the patches are merged, so I don't have to rewrite it 3 times
(or rather make a readme PR on top of those)

@shunsukew shunsukew self-requested a review May 30, 2023 02:49
@shunsukew
Copy link
Contributor

Any impacts on ecosystem toolings using core packages?

@codespool
Copy link
Collaborator Author

Any impacts on ecosystem toolings using core packages?

The package name will be different (@astar-network/swanky-cli), but the exports should stay the same.
Possibly needs a bit more config with the ESM PR merged.

@codespool codespool merged commit 166c078 into master May 30, 2023
3 checks passed
@codespool codespool deleted the feature/convert-to-monolith branch May 30, 2023 11:43
codespool added a commit that referenced this pull request May 30, 2023
This updates the module system to ESM, and updates all the dependencies.

Some additional changes:
- __dirname global does not exist anymore in ESM, patched with file url
api
- max node version that can be safely used for now is v19 (v20 has
breaking change with loader modules that are used by ts-node)
- @types/node kept at v18 (no spec for v19)
- ./bin/dev.js does not work because of ts-node error, will create a
watcher and an npm script to rebuild and use ./bin/run.js instead (if
solution is not found)

This will be kept in draft until #164 is merged, and this rebased to
master.
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.

None yet

2 participants