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

Feat/romka/fix build #7

Merged
merged 9 commits into from
Feb 19, 2024
Merged

Feat/romka/fix build #7

merged 9 commits into from
Feb 19, 2024

Conversation

RomKadria
Copy link
Collaborator

@RomKadria RomKadria commented Feb 8, 2024

fix build
fix types
add new generated files

"exclude": ["dist"],
"include": ["lib"]
"exclude": ["dist", "node_modules"],
"include": ["./lib/**/*"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's the difference between ["lib"] and ["./lib/**/*"] ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

["lib"] includes files only at the top level of the lib directory, while ["./lib/**/*"] includes all files in lib and its subdirectories, providing a more extensive match for projects that organize code into nested directories within lib.

thats what chat told me when i asked him that couple of days ago

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm pretty sure it will include everything

Comment on lines +6 to +7
// Determine if we are in a production environment
// const production = !process.env.ROLLUP_WATCH;
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need still this comment?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope!

]
],
"devDependencies": {
"@graphql-codegen/typescript-operations": "^4.1.2",
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need this dependency?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nope wow


constructor(token: string, apiVersion = defaultVersion) {
constructor(token: string, apiVersion: AvailableVersions | string = defaultVersion) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not?

Suggested change
constructor(token: string, apiVersion: AvailableVersions | string = defaultVersion) {
constructor(token: string, apiVersion: AvailableVersions = defaultVersion) {

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

its in done that way so users can give custom and not only current, if dont want it to change automatically and also so we dont need to maintain the const...

Copy link
Collaborator

Choose a reason for hiding this comment

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

IMO we should not allow users to provide any string they want

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It won’t matter since it’s then used only for version. If we are talking security wise, if they give bad string it’ll give them an error (or a bad version)
So it’s either give them string they want to get the version they specifically want to be, or to actively update the const of versions
We should talk about this

Copy link
Collaborator

@gregra81 gregra81 left a comment

Choose a reason for hiding this comment

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

Very good! 🚀
Please see my comments

@RomKadria RomKadria requested a review from gregra81 February 12, 2024 20:44
Copy link
Collaborator

@gregra81 gregra81 left a comment

Choose a reason for hiding this comment

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

Great work! 🚀

@RomKadria RomKadria merged commit 2470c8c into main Feb 19, 2024
1 check passed
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