-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat(sdk): init sdk package with biome and a precommit hook #2599
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.
Couple thoughts in comments.
Looks like we've got pre-commit hooks failing. Fix those. And then not would be a good time to introduce some ts precommit / ci hooks. typechecking, linting, formatting, tests
sdk/src/utils/package.json
Outdated
@@ -0,0 +1,3 @@ | |||
{ | |||
"type": "module" | |||
} |
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.
Why do we need these (this and src/types/package.json)?
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.
for the pnpm workspaces setup, the presence of each package.json
indicates a new submodule within the workspace
sdk/pnpm-workspace.yaml
Outdated
@@ -0,0 +1,2 @@ | |||
packages: | |||
- 'src' |
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'm good with using a workspace but like we said live, might be best just to start with single package until we have need for multiple
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.
sounds good, i'll revert to a more simple setup
d8afac1
to
9557257
Compare
hey @kevinhalliday i've dropped the workspaces stuff, and added compilation / clean steps, i'll add precommit stuff in a followup |
9fb70b7
to
5b6b401
Compare
@kevinhalliday i've added biome for linting/formatting and a precommit hook |
4402595
to
e3fb674
Compare
0676a53
to
595d627
Compare
initialise the SDK package with:
issue: none