-
Notifications
You must be signed in to change notification settings - Fork 29
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
refactor: compile and bundle monorepo using preconstruct cli #1871
Conversation
🦋 Changeset detectedLatest commit: 67ddadb The changes in this PR will be included in the next version bump. This PR includes changesets to release 26 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/commercetools/merchant-center-application-kit/qd5jnp5si |
203622c
to
b9c797f
Compare
bc478c6
to
7f4a934
Compare
f557b79
to
3d9d6aa
Compare
3d9d6aa
to
d5f3e1a
Compare
44802f4
to
e8c370b
Compare
"preconstruct": { | ||
"entrypoints": ["./index.ts", "./test-utils/index.ts"] | ||
}, |
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.
@adnasa FYI: this is how you would define multiple entrypoints.
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.
looks nice 🤩
{ | ||
"main": "dist/commercetools-frontend-application-shell-connectors-test-utils.cjs.js", | ||
"module": "dist/commercetools-frontend-application-shell-connectors-test-utils.esm.js" | ||
} |
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.
@adnasa ...and here.
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.
Looks good! 🔥
"preconstruct": { | ||
"entrypoints": ["./index.ts", "./test-utils/index.ts"] | ||
}, |
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.
looks nice 🤩
"packages/sentry", | ||
"packages/url-utils", | ||
"packages-backend/express", | ||
"packages-backend/loggers" |
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.
We could also specify packages/*
and !packages/foo
to have exclusion. At least that's what I did in the flopper.
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.
Yes but there are several packages to exclude. For now I think being explicit is better
👏 |
Use
@preconstruct/cli
to manage compiling and bundling monorepos, which means:Note that we still need to bundle app-shell on our own because we still use css modules (#1884 )