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
Build: support build single file #11469
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.
Just a question, when do you use this feature?
scripts/build/build.mjs
Outdated
if (!params.playground) { | ||
await execa("mkdir", ["-p", "dist/esm"]); | ||
const shouldUseCache = !params.file && !params["purge-cache"]; | ||
const shouldBuildMetaFiles = !params.playground && !params.file; |
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.
This is actually only used as condition for if we should do preparePackage
. So what about rename to shouldPreparePackage
.
Also for some reason, our CI fails... |
Debug build problem, for example, when parser-postcss.js is broken, I have to disable many lines to only build that file, because I need other files to run test. |
} | ||
|
||
await execa("mkdir", ["-p", "dist"]); | ||
await execa("mkdir", ["-p", "dist/esm"]); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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 don't think it matters to make an empty dir.
Description
yarn build --file=parser-babel.js
Checklist
docs/
directory).changelog_unreleased/*/XXXX.md
file followingchangelog_unreleased/TEMPLATE.md
.✨Try the playground for this PR✨