-
Notifications
You must be signed in to change notification settings - Fork 86
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
Setup NPM workspaces #199
Setup NPM workspaces #199
Conversation
…es, update root package.json
Pull Request Test Coverage Report for Build 7503993801
💛 - Coveralls |
720cdb8
to
6eaeb6a
Compare
It looks like |
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.
One bug I found: the fmt
command defined globally doesn't respect the .prettierignore
file of individual packages. I ran it, and it formatted the FCL files despite being explicitly ignored in the package.
It seems like it's a long-awaited feature: prettier/prettier#4081
For now, I'd suggest:
- Define the
fmt
command in each package that will take into account all the package-specific configuration - Keep the global command for formatting everything but packages (markdown, GitHub actions, package.json, etc.)
ca87668
to
7e477dc
Compare
Here 1d03625. |
This doesn't check the formatting in packages (point 1 from my comment), does it? |
When ![]() Each of the package already has its own |
Yes, but how would it be used? I'd expect the ci to check package specific + global formatting, so Also I accidentally edited your message instead of replying, sorry 🤦 |
57fb232
to
a84bb58
Compare
a84bb58
to
06e1fbf
Compare
But this executes a check only on the global level without a check on the package level, or am I missing anything? Should it be |
I added |
Ahh, makes sense, my bad. All good then |
…actor-146-npm-workspaces
My bad, I created a bunch of conflicts here. Will resolve them |
…actor-146-npm-workspaces
Fixes #146
Summary: This PR proposes use of NPM workspaces which will work as a monorepo where the packages (Safe modules)
would be stored in
modules
directory. The rootpackage.json
of the project should store all the shared dependencies (code formatting, linting, and possibly typescript version as well).Changes in PR:
Remove modules:
Move below modules to
modules/
directory which is marked as a workspaces directory in rootpackage.json
packages/
directory?The root
package.json
contains dependencies related to code formatting and linting (eslint
andprettier
) instead of each of the package having individual configurations and dependency versionsChanges in
allowances
modules:1.4.1
versionChanges in github workflow files:
Update README.md: