-
Notifications
You must be signed in to change notification settings - Fork 29
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
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
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. |
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.
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: