mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-02 07:51:47 +01:00
Install shared components during EW install (#31196)
* fix: install shared components during EW install * chore: ignore `@element-hq/web-shared-components` for knip * chore: remove shared-components operation in layered.sh EW `yarn install` is also installing shared-componenents dependencies. `link:` in `package.json` works nearly like `yarn link`. * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b50fbe2eea
commit
e883b05206
3
knip.ts
3
knip.ts
@ -48,6 +48,9 @@ export default {
|
|||||||
// would with a normal library).
|
// would with a normal library).
|
||||||
"@types/content-type",
|
"@types/content-type",
|
||||||
"@types/sdp-transform",
|
"@types/sdp-transform",
|
||||||
|
|
||||||
|
// Used in EW but failed because of "link:"
|
||||||
|
"@element-hq/web-shared-components",
|
||||||
],
|
],
|
||||||
ignoreBinaries: [
|
ignoreBinaries: [
|
||||||
// Used in scripts & workflows
|
// Used in scripts & workflows
|
||||||
|
|||||||
@ -65,6 +65,7 @@
|
|||||||
"coverage": "yarn test --coverage",
|
"coverage": "yarn test --coverage",
|
||||||
"analyse:webpack-bundles": "webpack-bundle-analyzer webpack-stats.json webapp",
|
"analyse:webpack-bundles": "webpack-bundle-analyzer webpack-stats.json webapp",
|
||||||
"update:jitsi": "curl -s https://meet.element.io/libs/external_api.min.js > ./res/jitsi_external_api.min.js",
|
"update:jitsi": "curl -s https://meet.element.io/libs/external_api.min.js > ./res/jitsi_external_api.min.js",
|
||||||
|
"install": "yarn --cwd packages/shared-components install --frozen-lockfile",
|
||||||
"postinstall": "patch-package"
|
"postinstall": "patch-package"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
@ -83,7 +84,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.12.5",
|
"@babel/runtime": "^7.12.5",
|
||||||
"@element-hq/element-web-module-api": "1.5.0",
|
"@element-hq/element-web-module-api": "1.5.0",
|
||||||
"@element-hq/web-shared-components": "file:packages/shared-components",
|
"@element-hq/web-shared-components": "link:packages/shared-components",
|
||||||
"@fontsource/inconsolata": "^5",
|
"@fontsource/inconsolata": "^5",
|
||||||
"@fontsource/inter": "^5",
|
"@fontsource/inter": "^5",
|
||||||
"@formatjs/intl-segmenter": "^11.5.7",
|
"@formatjs/intl-segmenter": "^11.5.7",
|
||||||
|
|||||||
@ -18,9 +18,4 @@ fi
|
|||||||
|
|
||||||
DIST_VERSION=$("$DIR"/normalize-version.sh "$DIST_VERSION")
|
DIST_VERSION=$("$DIR"/normalize-version.sh "$DIST_VERSION")
|
||||||
|
|
||||||
yarn --cwd packages/shared-components install
|
|
||||||
yarn --cwd packages/shared-components link
|
|
||||||
|
|
||||||
yarn link @element-hq/web-shared-components
|
|
||||||
|
|
||||||
VERSION=$DIST_VERSION yarn build
|
VERSION=$DIST_VERSION yarn build
|
||||||
|
|||||||
@ -44,11 +44,3 @@ fi
|
|||||||
yarn link matrix-js-sdk
|
yarn link matrix-js-sdk
|
||||||
[ -d matrix-analytics-events ] && yarn link @matrix-org/analytics-events
|
[ -d matrix-analytics-events ] && yarn link @matrix-org/analytics-events
|
||||||
yarn install --frozen-lockfile $@
|
yarn install --frozen-lockfile $@
|
||||||
|
|
||||||
# Link shared components
|
|
||||||
pushd packages/shared-components
|
|
||||||
yarn link
|
|
||||||
yarn install --frozen-lockfile
|
|
||||||
popd
|
|
||||||
|
|
||||||
yarn link @element-hq/web-shared-components
|
|
||||||
|
|||||||
13
yarn.lock
13
yarn.lock
@ -1598,16 +1598,9 @@
|
|||||||
testcontainers "^11.0.0"
|
testcontainers "^11.0.0"
|
||||||
yaml "^2.7.0"
|
yaml "^2.7.0"
|
||||||
|
|
||||||
"@element-hq/web-shared-components@file:packages/shared-components":
|
"@element-hq/web-shared-components@link:packages/shared-components":
|
||||||
version "0.0.0-test.7"
|
version "0.0.0"
|
||||||
dependencies:
|
uid ""
|
||||||
classnames "^2.5.1"
|
|
||||||
counterpart "^0.18.6"
|
|
||||||
lodash "^4.17.21"
|
|
||||||
matrix-web-i18n "^3.4.0"
|
|
||||||
patch-package "^8.0.1"
|
|
||||||
react-merge-refs "^3.0.2"
|
|
||||||
temporal-polyfill "^0.3.0"
|
|
||||||
|
|
||||||
"@emnapi/core@^1.5.0":
|
"@emnapi/core@^1.5.0":
|
||||||
version "1.5.0"
|
version "1.5.0"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user