Conversation
package.json
Outdated
| "gen:changelog": "node ./scripts/generate-changelog.js", | ||
| "debug": "node bin/prettier.js --ignore-path=.prettierignore" | ||
| "debug": "node bin/prettier.js --ignore-path=.prettierignore", | ||
| "postinstall": "node -e \"try{fs.existsSync('.vscode/settings.json')||fs.writeFileSync('.vscode/settings.json',fs.readFileSync('.vscode/settings.example.json'))}catch(_){}\"" |
There was a problem hiding this comment.
Turns out we can't use an extra script file to copy the file, because this will run when yarn install prettier@prettier/prettier
There was a problem hiding this comment.
Is there any reason we don't use prepare?
There was a problem hiding this comment.
yarn>=2 don't run prepare.
There was a problem hiding this comment.
I am surprised, which means that the prepare in the Babel repo did not work as expected.
But when we use Yarn 4, maybe we can use it to complete this.
https://yarnpkg.com/configuration/yarnrc#enableConstraintschecks
There was a problem hiding this comment.
I don't understand how enableConstraintschecks can do this. But yarn plugin should be able to do it.
There was a problem hiding this comment.
When EnableConstraintschecks is true, Yarn runs every time yarn.config.cjs.
https://github.com/babel/babel/blob/main/yarn.config.cjs
There was a problem hiding this comment.
I'm going to use yarn plugin instead. Since we don't want add yarn.config.cjs for this.
Description
Checklist
docs/directory).changelog_unreleased/*/XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.✨Try the playground for this PR✨