mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 09:45:13 +08:00
a328153ec2
When running `yarn install` in a yarn workspace, the lifecycle hooks in the root package.json are not triggered. https://github.com/yarnpkg/yarn/issues/5790 As a workaround, we can additionally run `patch-package` from the `javascripts/discourse/package.json` `postinstall` hook. `patch-package` is idempotent, so it doesn't matter if it is triggered multiple times. Longer term we intend to move to pnpm, which has built-in patch support.
31 lines
643 B
JSON
31 lines
643 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"postinstall": "patch-package"
|
|
},
|
|
"workspaces": [
|
|
"admin",
|
|
"bootstrap-json",
|
|
"dialog-holder",
|
|
"discourse",
|
|
"discourse-common",
|
|
"discourse-hbr",
|
|
"discourse-plugins",
|
|
"discourse-widget-hbs",
|
|
"ember-cli-progress-ci",
|
|
"ember-production-deprecations",
|
|
"pretty-text",
|
|
"select-kit",
|
|
"truth-helpers",
|
|
"wizard"
|
|
],
|
|
"resolutions": {
|
|
"**/babel-plugin-debug-macros": "npm:@discourse/babel-plugin-debug-macros@0.4.0-pre1"
|
|
},
|
|
"devDependencies": {},
|
|
"dependencies": {
|
|
"patch-package": "^6.5.1",
|
|
"postinstall-postinstall": "^2.1.0"
|
|
}
|
|
}
|