From 8988f2248e8743d529bd20bcf3d2e6f8c7c3a876 Mon Sep 17 00:00:00 2001 From: Lene Gadewoll Date: Mon, 23 Sep 2024 09:42:08 +0200 Subject: [PATCH] build: add script for building workspace dependencies --- packages/eui/package.json | 1 + packages/eui/scripts/deploy/build_docs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/eui/package.json b/packages/eui/package.json index 6a42f8ef1c3..4a42420e7cd 100644 --- a/packages/eui/package.json +++ b/packages/eui/package.json @@ -16,6 +16,7 @@ ], "scripts": { "start": "cross-env BABEL_MODULES=false webpack serve --config=src-docs/webpack.config.js", + "init:workspaces": "yarn workspaces foreach -Rpti --from @elastic/eui --exclude @elastic/eui run build", "build-docs": "cross-env BABEL_MODULES=false cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 webpack --config=src-docs/webpack.config.js", "build": "node ./scripts/compile-i18n-strings.js && node ./scripts/compile-clean.js && node ./scripts/compile-eui.js && yarn compile-scss", "build-pack": "yarn build && npm pack", diff --git a/packages/eui/scripts/deploy/build_docs b/packages/eui/scripts/deploy/build_docs index ab1207b3337..d2a6168e8ed 100755 --- a/packages/eui/scripts/deploy/build_docs +++ b/packages/eui/scripts/deploy/build_docs @@ -12,4 +12,4 @@ docker run \ --volume "$PWD":/app \ --workdir /app \ "$DOCKER_BASE_IMAGE" \ - bash -c 'yarn && yarn --cwd packages/eui build && yarn --cwd packages/eui build-docs && yarn --cwd packages/eui build-storybook' + bash -c 'yarn && yarn --cwd packages/eui init:workspaces && yarn --cwd packages/eui build && yarn --cwd packages/eui build-docs && yarn --cwd packages/eui build-storybook'