-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
"exclude": ["dist"], | ||
"include": ["lib"] | ||
"exclude": ["dist", "node_modules"], | ||
"include": ["./lib/**/*"] |
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.
what's the difference between ["lib"]
and ["./lib/**/*"]
?
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.
["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
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 pretty sure it will include everything
// Determine if we are in a production environment | ||
// const production = !process.env.ROLLUP_WATCH; |
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.
do we need still this comment?
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.
Nope!
packages/api/package.json
Outdated
] | ||
], | ||
"devDependencies": { | ||
"@graphql-codegen/typescript-operations": "^4.1.2", |
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 this dependency?
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.
nope wow
|
||
constructor(token: string, apiVersion = defaultVersion) { | ||
constructor(token: string, apiVersion: AvailableVersions | string = defaultVersion) { |
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 not?
constructor(token: string, apiVersion: AvailableVersions | string = defaultVersion) { | |
constructor(token: string, apiVersion: AvailableVersions = defaultVersion) { |
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.
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...
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.
IMO we should not allow users to provide any string they want
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.
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
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.
Very good! 🚀
Please see my comments
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.
Great work! 🚀
fix build
fix types
add new generated files