-
Notifications
You must be signed in to change notification settings - Fork 115
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
Begin process to replace Loom with Turbo #707
Conversation
dad8621
to
539a519
Compare
|
||
const packageName = pkg.name.substring(1); | ||
export const bannerConfig = { | ||
banner: `/*! ${packageName}@${pkg.version} -- Copyright (c) 2023-present, Shopify Inc. -- license (MIT): https://github.com/Shopify/shopify-app-js/blob/main/LICENSE.md */`, |
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.
banner: `/*! ${packageName}@${pkg.version} -- Copyright (c) 2023-present, Shopify Inc. -- license (MIT): https://github.com/Shopify/shopify-app-js/blob/main/LICENSE.md */`, | |
banner: `/*! ${packageName}@${pkg.version} -- Copyright (c) 2024-present, Shopify Inc. -- license (MIT): https://github.com/Shopify/shopify-app-js/blob/main/LICENSE.md */`, |
?
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 think we might want to keep it as it was - technically this is still the same package as before, so it still applies from 2023 onward.
Will any of these changes resolve the down compilation of the async await, like mentioned here? |
Yes, we'll start building with newer targets and move away from |
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 haven't top hatted (are we supposed to?) but it looks good.
Just some question inline below,
and why turbo? I've heard mixed things about turbo.
(I'm assuming we mean this turbo)
"es2022", | ||
"esnext.asynciterable" | ||
"esnext.asynciterable", | ||
"ES2021", |
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.
Just curious how you landed on ES2021?
Also curious why its the only one missing from the previous list?
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 was following the TS guide for which target to use for Node 16, which we still technically support. We might want to move that to 2022 when we move on to 18.
Also curious why its the only one missing from the previous list?
Most likely just a mistake on our part, especially since we don't really need to have all of those different lib versions - it might actually be more of a risk if we rely on some invalid types.
We've been using turbo successfully on We can always migrate off of turbo later once everything is in place, but for now I'd rather focus on getting better output transpiled code without messing with the toolset. |
@paulomarg 👍 |
It was only being used on the other repo so far, but the plan is to unify the build / run tools under turbo / rollup and merge the repos so we only have one repo to maintain. My plan was to:
|
I didn't mention that at first, but this PR is the first step in my list above - I have a couple more changes coming that will get every package in this repo building on turbo + other improvements. |
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.
LGTM
WHY are these changes introduced?
We want to revamp our build process for the packages in this repo for a few reasons:
These changes should have no effect on the final packages, other than the ones stated above.