From c23e1c01dd1aa026edd00cbf0123ff2a98739b38 Mon Sep 17 00:00:00 2001 From: Nima Taheri Date: Sat, 15 Nov 2025 17:23:08 -0800 Subject: [PATCH 1/6] feat: poc --- .github/workflows/release.yml | 3 + charts/chart-card/package.json | 11 +++- charts/colors/package.json | 11 +++- charts/core/package.json | 11 +++- charts/drag-provider/package.json | 11 +++- charts/legend/package.json | 11 +++- charts/series-provider/package.json | 11 +++- chat/chat-layout/package.json | 17 ++++-- chat/chat-window/package.json | 9 ++- chat/input-bar/package.json | 9 ++- chat/leafygreen-chat-provider/package.json | 9 ++- chat/lg-markdown/package.json | 9 ++- chat/message-feed/package.json | 9 ++- chat/message-feedback/package.json | 11 +++- chat/message-prompts/package.json | 11 +++- chat/message-rating/package.json | 9 ++- chat/message/package.json | 9 ++- chat/rich-links/package.json | 11 +++- chat/suggestions/package.json | 11 +++- chat/title-bar/package.json | 9 ++- package.json | 1 + packages/a11y/package.json | 11 +++- packages/avatar/package.json | 11 +++- packages/badge/package.json | 11 +++- packages/banner/package.json | 11 +++- packages/button/package.json | 23 ++++++-- packages/callout/package.json | 11 +++- packages/card/package.json | 11 +++- packages/checkbox/package.json | 11 +++- packages/chip/package.json | 11 +++- packages/code-editor/package.json | 17 ++++-- packages/code/package.json | 15 ++++- packages/combobox/package.json | 11 +++- packages/compound-component/package.json | 5 +- packages/confirmation-modal/package.json | 11 +++- packages/context-drawer/package.json | 17 ++++-- packages/copyable/package.json | 11 +++- packages/date-picker/package.json | 11 +++- packages/date-utils/package.json | 17 ++++-- packages/descendants/package.json | 11 +++- packages/drawer/package.json | 17 ++++-- packages/emotion/package.json | 11 +++- packages/empty-state/package.json | 11 +++- packages/expandable-card/package.json | 17 ++++-- packages/feature-walls/package.json | 6 +- packages/form-field/package.json | 11 +++- packages/form-footer/package.json | 11 +++- packages/gallery-indicator/package.json | 17 ++++-- packages/guide-cue/package.json | 11 +++- packages/hooks/package.json | 11 +++- packages/icon-button/package.json | 11 +++- packages/icon/package.json | 21 +++++-- packages/info-sprinkle/package.json | 11 +++- packages/inline-definition/package.json | 11 +++- packages/input-option/package.json | 11 +++- packages/leafygreen-provider/package.json | 11 +++- packages/lib/package.json | 11 +++- packages/loading-indicator/package.json | 29 +++++++-- packages/logo/package.json | 11 +++- packages/marketing-modal/package.json | 11 +++- packages/menu/package.json | 11 +++- packages/modal/package.json | 11 +++- packages/number-input/package.json | 11 +++- packages/ordered-list/package.json | 11 +++- packages/pagination/package.json | 11 +++- packages/palette/package.json | 11 +++- packages/password-input/package.json | 11 +++- packages/pipeline/package.json | 11 +++- packages/polymorphic/package.json | 11 +++- packages/popover/package.json | 11 +++- packages/portal/package.json | 11 +++- packages/preview-card/package.json | 17 ++++-- packages/progress-bar/package.json | 17 ++++-- packages/radio-box-group/package.json | 11 +++- packages/radio-group/package.json | 11 +++- packages/resizable/package.json | 11 +++- packages/ripple/package.json | 11 +++- packages/search-input/package.json | 11 +++- packages/section-nav/package.json | 17 ++++-- packages/segmented-control/package.json | 11 +++- packages/select/package.json | 17 ++++-- packages/side-nav/package.json | 11 +++- packages/skeleton-loader/package.json | 11 +++- packages/split-button/package.json | 11 +++- packages/stepper/package.json | 11 +++- packages/table/package.json | 11 +++- packages/tabs/package.json | 17 ++++-- packages/testing-lib/package.json | 8 ++- packages/text-area/package.json | 17 ++++-- packages/text-input/package.json | 17 ++++-- packages/toast/package.json | 11 +++- packages/toggle/package.json | 17 ++++-- packages/tokens/package.json | 11 +++- packages/toolbar/package.json | 17 ++++-- packages/tooltip/package.json | 11 +++- packages/typography/package.json | 11 +++- packages/vertical-stepper/package.json | 6 +- pnpm-lock.yaml | 38 +++--------- tools/build/config/babel.config.js | 3 - tools/build/config/rollup.config.mjs | 6 +- tools/build/package.json | 2 +- tools/build/src/buildAll.ts | 2 +- tools/build/src/cli.ts | 14 +++++ tools/build/src/index.ts | 1 + tools/build/src/minify.ts | 68 ++++++++++++++++++++++ tools/build/src/typescript/build-ts.ts | 9 ++- tools/install/src/ALL_PACKAGES.ts | 2 + turbo.json | 4 ++ 108 files changed, 968 insertions(+), 335 deletions(-) create mode 100644 tools/build/src/minify.ts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a14e5a42f6..f3f1f1f680 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -183,6 +183,9 @@ jobs: tools/*/stories.js key: ${{needs.build.outputs.cache-primary-key}} + - name: Minify packages + run: pnpm build:minify + - name: Updating .npmrc run: | cat << EOF > "$HOME/.npmrc" diff --git a/charts/chart-card/package.json b/charts/chart-card/package.json index 92f698f82e..c5602460cb 100644 --- a/charts/chart-card/package.json +++ b/charts/chart-card/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -43,8 +44,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/charts/colors/package.json b/charts/colors/package.json index 068116a049..3f25d20307 100644 --- a/charts/colors/package.json +++ b/charts/colors/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -38,8 +39,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/charts/core/package.json b/charts/core/package.json index 07e5f8350e..722392a5df 100644 --- a/charts/core/package.json +++ b/charts/core/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -50,8 +51,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index bff3e898b9..1cb4ef34a9 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -38,8 +39,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/charts/legend/package.json b/charts/legend/package.json index c32d76b1d0..927c633394 100644 --- a/charts/legend/package.json +++ b/charts/legend/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -42,8 +43,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index 3a4377a800..4f2c710817 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -36,8 +37,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/chat-layout/package.json b/chat/chat-layout/package.json index cdcbaf5dcc..45f2346aa7 100644 --- a/chat/chat-layout/package.json +++ b/chat/chat-layout/package.json @@ -10,18 +10,27 @@ ".": { "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "require": "./dist/umd/testing/index.js", "import": "./dist/esm/testing/index.js", - "types": "./dist/types/testing/index.d.ts" + "types": "./dist/types/testing/index.d.ts", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -58,4 +67,4 @@ "bugs": { "url": "https://jira.mongodb.org/projects/LG/summary" } -} +} \ No newline at end of file diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index e8ef517827..3df95a20e9 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -7,6 +7,7 @@ "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", + "minify": "lg-build minify", "tsc": "lg-build tsc" }, "license": "Apache-2.0", @@ -39,8 +40,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index 25226480ab..9b291aed04 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -7,6 +7,7 @@ "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", + "minify": "lg-build minify", "tsc": "lg-build tsc" }, "license": "Apache-2.0", @@ -45,8 +46,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index 56d3e4bd42..2479639e87 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -7,6 +7,7 @@ "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", + "minify": "lg-build minify", "tsc": "lg-build tsc" }, "license": "Apache-2.0", @@ -21,8 +22,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index cae6a7faa2..1a3dd8c401 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -7,6 +7,7 @@ "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", + "minify": "lg-build minify", "tsc": "lg-build tsc" }, "license": "Apache-2.0", @@ -33,8 +34,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index f847e4db31..1dd00e012b 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -7,6 +7,7 @@ "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", + "minify": "lg-build minify", "tsc": "lg-build tsc" }, "license": "Apache-2.0", @@ -38,8 +39,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index 361f10efac..e9c27ff772 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -10,7 +10,11 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./stories": { "import": "./src/InlineMessageFeedback/InlineMessageFeedback.stories.tsx", @@ -22,7 +26,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -50,4 +55,4 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" } -} +} \ No newline at end of file diff --git a/chat/message-prompts/package.json b/chat/message-prompts/package.json index 3114d48305..9226bc1647 100644 --- a/chat/message-prompts/package.json +++ b/chat/message-prompts/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -42,8 +43,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index 7f4a2ca29d..df501991ee 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -7,6 +7,7 @@ "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", + "minify": "lg-build minify", "tsc": "lg-build tsc" }, "license": "Apache-2.0", @@ -34,8 +35,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/message/package.json b/chat/message/package.json index 499e629f60..989bea8c8c 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -7,6 +7,7 @@ "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", + "minify": "lg-build minify", "tsc": "lg-build tsc" }, "license": "Apache-2.0", @@ -44,8 +45,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/rich-links/package.json b/chat/rich-links/package.json index 684aaf7b86..0e2c6cda12 100644 --- a/chat/rich-links/package.json +++ b/chat/rich-links/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -43,8 +44,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/suggestions/package.json b/chat/suggestions/package.json index ed8404e01c..91b645acc3 100644 --- a/chat/suggestions/package.json +++ b/chat/suggestions/package.json @@ -11,7 +11,11 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", @@ -22,7 +26,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -51,4 +56,4 @@ "url": "https://jira.mongodb.org/projects/LG/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index c731531e11..edff62c8a1 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -7,6 +7,7 @@ "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-build bundle", + "minify": "lg-build minify", "tsc": "lg-build tsc" }, "license": "Apache-2.0", @@ -32,8 +33,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/package.json b/package.json index 196927163b..5dbde97c4e 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "build:docs": "turbo run docs", "build:tsc": "turbo run tsc", "build:ts-downlevel": "pnpm recursive exec lg-ts-downlevel", + "build:minify": "turbo run minify '--filter=!@lg-tools/*'", "build-storybook": "npx storybook build", "chromatic": "npx chromatic", "clean": "npx npm-run-all --parallel clean:*", diff --git a/packages/a11y/package.json b/packages/a11y/package.json index cabe71ae10..b91ad6318a 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -35,8 +36,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/avatar/package.json b/packages/avatar/package.json index f7ea37ab9b..60c6cfa53c 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -34,8 +35,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/badge/package.json b/packages/badge/package.json index 73c7dcfbb1..71258d22e5 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -40,8 +41,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/banner/package.json b/packages/banner/package.json index 8526af6aa4..a20db53d11 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -42,8 +43,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/button/package.json b/packages/button/package.json index d4d95a8ba9..f158493f1f 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -19,17 +20,29 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } }, "./constants": { "types": "./dist/types/constants.d.ts", "import": "./dist/esm/constants.js", - "require": "./dist/umd/constants.js" + "require": "./dist/umd/constants.js", + "production": { + "import": "./dist/esm/constants-min.js", + "require": "./dist/umd/constants-min.js" + } } }, "dependencies": { @@ -60,4 +73,4 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/callout/package.json b/packages/callout/package.json index b562861d22..33fd144e4c 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -42,8 +43,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/card/package.json b/packages/card/package.json index 447ce260b2..c86e03d249 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -41,8 +42,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index 0751373715..092ed01759 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -45,8 +46,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/chip/package.json b/packages/chip/package.json index 9288de54fb..a15683efbd 100644 --- a/packages/chip/package.json +++ b/packages/chip/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -41,8 +42,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/code-editor/package.json b/packages/code-editor/package.json index 5d1eb098d8..f220ae9c47 100644 --- a/packages/code-editor/package.json +++ b/packages/code-editor/package.json @@ -10,18 +10,27 @@ ".": { "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "require": "./dist/umd/testing/index.js", "import": "./dist/esm/testing/index.js", - "types": "./dist/types/testing/index.d.ts" + "types": "./dist/types/testing/index.d.ts", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -86,4 +95,4 @@ "bugs": { "url": "https://jira.mongodb.org/projects/LG/summary" } -} +} \ No newline at end of file diff --git a/packages/code/package.json b/packages/code/package.json index 0aadc8804c..f3d4325ba7 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -10,18 +10,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", "docs": "lg-build docs", + "minify": "lg-build minify", "prepare": "npx ts-node scripts/prepare.ts" }, "keywords": [], @@ -69,4 +78,4 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/combobox/package.json b/packages/combobox/package.json index 3fac3565d9..43c64967d1 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -52,8 +53,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/compound-component/package.json b/packages/compound-component/package.json index ecc0316223..827ecd97f6 100644 --- a/packages/compound-component/package.json +++ b/packages/compound-component/package.json @@ -16,7 +16,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -34,4 +35,4 @@ "bugs": { "url": "https://jira.mongodb.org/projects/LG/summary" } -} +} \ No newline at end of file diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index 92a2cc4b99..2ce53ae3c4 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -44,8 +45,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/context-drawer/package.json b/packages/context-drawer/package.json index 30027cbc1c..0099b2ca92 100644 --- a/packages/context-drawer/package.json +++ b/packages/context-drawer/package.json @@ -11,18 +11,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -55,4 +64,4 @@ "url": "https://jira.mongodb.org/projects/LG/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/copyable/package.json b/packages/copyable/package.json index 1a203aadb4..e3b3c8dddb 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -46,8 +47,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index ab1613e544..3fab373820 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -56,8 +57,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index feb3b47833..aceb32871a 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -11,18 +11,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -53,4 +62,4 @@ "date-fns" ], "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/descendants/package.json b/packages/descendants/package.json index b360383fac..6d18c72fc9 100644 --- a/packages/descendants/package.json +++ b/packages/descendants/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -43,8 +44,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/drawer/package.json b/packages/drawer/package.json index 349e1bf0f6..7b68c5fd5b 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -11,18 +11,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -62,4 +71,4 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 65a431b2f0..6d390eb57b 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -9,7 +9,8 @@ "prebuild": "ts-node scripts/prebuild.ts", "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "keywords": [], "license": "Apache-2.0", @@ -39,8 +40,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index e6bb89dd15..9214806ae4 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/empty-state", @@ -42,8 +43,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index 35307b2610..03622a257d 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -10,18 +10,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -55,4 +64,4 @@ "@lg-tools/build": "workspace:^" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/feature-walls/package.json b/packages/feature-walls/package.json index 10d86a70ff..231054109e 100644 --- a/packages/feature-walls/package.json +++ b/packages/feature-walls/package.json @@ -9,7 +9,11 @@ ".": { "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "license": "Apache-2.0", diff --git a/packages/form-field/package.json b/packages/form-field/package.json index 3a0d3c7711..057b1d45ff 100644 --- a/packages/form-field/package.json +++ b/packages/form-field/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -44,8 +45,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index 41ce4fb447..462899e20d 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -45,8 +46,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index 57ae997546..c1d7a17421 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -10,19 +10,28 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "license": "Apache-2.0", "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -49,4 +58,4 @@ "@lg-tools/build": "workspace:^" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index 35e3a1e797..43fca9cfcb 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/guide-cue", @@ -49,8 +50,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 07b69a6b8c..8b406d8b98 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -40,8 +41,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index 27ac8565c8..f316c61b3c 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -43,8 +44,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/icon/package.json b/packages/icon/package.json index 9d0fab623b..7812edd2d3 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -10,23 +10,36 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./dist/*": { "types": "./dist/types/generated/*.d.ts", "import": "./dist/esm/*.js", - "require": "./dist/umd/*.js" + "require": "./dist/umd/*.js", + "production": { + "import": "./dist/esm/*.js-min.js", + "require": "./dist/umd/*.js-min.js" + } }, "./*": { "types": "./dist/types/generated/*.d.ts", "import": "./dist/esm/*.js", - "require": "./dist/umd/*.js" + "require": "./dist/umd/*.js", + "production": { + "import": "./dist/esm/*.js-min.js", + "require": "./dist/umd/*.js-min.js" + } } }, "scripts": { "prebuild": "ts-node ./scripts/prebuild/index.ts", "build": "ts-node ./scripts/build/build.ts", "postbuild": "ts-node ./scripts/postbuild/index.ts", + "minify": "lg-build minify", "tsc": "lg-build tsc", "docs": "lg-build docs" }, @@ -66,4 +79,4 @@ "url": "https://jira.mongodb.org/projects/LG/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/info-sprinkle/package.json b/packages/info-sprinkle/package.json index 605b72fc6d..221470b9e8 100644 --- a/packages/info-sprinkle/package.json +++ b/packages/info-sprinkle/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -41,8 +42,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index bf58650915..0e347c20e0 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -41,8 +42,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/input-option/package.json b/packages/input-option/package.json index 35bc3dc708..b1f312e306 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/input-option", @@ -43,8 +44,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index e72b097955..05d119656f 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -36,8 +37,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/lib/package.json b/packages/lib/package.json index 1bef604426..fc1f7d84f3 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "keywords": [], "license": "Apache-2.0", @@ -39,8 +40,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index 3bb857870d..3d591b8b16 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -10,31 +10,48 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./page-loader": { "types": "./dist/types/page-loader/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/page-loader/index.d.ts", "import": "./dist/esm/page-loader/index.js", - "require": "./dist/umd/page-loader/index.js" + "require": "./dist/umd/page-loader/index.js", + "production": { + "import": "./dist/esm/page-loader/index-min.js", + "require": "./dist/umd/page-loader/index-min.js" + } }, "./spinner": { "types": "./dist/types/spinner/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/spinner/index.d.ts", "import": "./dist/esm/spinner/index.js", - "require": "./dist/umd/spinner/index.js" + "require": "./dist/umd/spinner/index.js", + "production": { + "import": "./dist/esm/spinner/index-min.js", + "require": "./dist/umd/spinner/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/loading-indicator", @@ -64,4 +81,4 @@ "@lg-tools/build": "workspace:^" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/logo/package.json b/packages/logo/package.json index f323568828..bdcf7a632b 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -35,8 +36,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index 236ddb1782..2108fac854 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -42,8 +43,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/menu/package.json b/packages/menu/package.json index 0049758856..9fe0c6bbf4 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -53,8 +54,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/modal/package.json b/packages/modal/package.json index 22df0e2368..e701c976d8 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -51,8 +52,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/number-input/package.json b/packages/number-input/package.json index 83464bea3a..0c09bbb4fd 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/number-input", @@ -48,8 +49,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/ordered-list/package.json b/packages/ordered-list/package.json index ea7f6b04a2..e8c2c7e379 100644 --- a/packages/ordered-list/package.json +++ b/packages/ordered-list/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -40,8 +41,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/pagination/package.json b/packages/pagination/package.json index 71bae4f506..98c1d28730 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/pagination", @@ -44,8 +45,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/palette/package.json b/packages/palette/package.json index 9365bc1f84..db1b570290 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -36,8 +37,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/password-input/package.json b/packages/password-input/package.json index 72d2d79084..c0ca5503b9 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/password-input", @@ -45,8 +46,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index c866503c26..3b94683db3 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -44,8 +45,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index 09b2b794c8..81ece99214 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/polymorphic", @@ -35,8 +36,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/popover/package.json b/packages/popover/package.json index a2d37d8d22..8b47347810 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -49,8 +50,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/portal/package.json b/packages/portal/package.json index 6ac7555ad5..5622d3d49a 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -39,8 +40,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/preview-card/package.json b/packages/preview-card/package.json index 3ef8d312f0..91debab74b 100644 --- a/packages/preview-card/package.json +++ b/packages/preview-card/package.json @@ -10,19 +10,28 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "license": "Apache-2.0", "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -54,4 +63,4 @@ "url": "https://jira.mongodb.org/projects/LG/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/progress-bar/package.json b/packages/progress-bar/package.json index 4c1f71b80d..4e292ccdcc 100644 --- a/packages/progress-bar/package.json +++ b/packages/progress-bar/package.json @@ -11,18 +11,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -52,4 +61,4 @@ "url": "https://jira.mongodb.org/projects/LG/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index c0d607eee5..6ba6b591de 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -42,8 +43,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index 7e506a0c51..ed18f9ad10 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -42,8 +43,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/resizable/package.json b/packages/resizable/package.json index ad8d5e71ec..d7f61296a3 100644 --- a/packages/resizable/package.json +++ b/packages/resizable/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -32,8 +33,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 021dd8917d..8b3c925ced 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -33,8 +34,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/search-input/package.json b/packages/search-input/package.json index b6ce68c66a..d372dc416d 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/search-input", @@ -49,8 +50,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/section-nav/package.json b/packages/section-nav/package.json index b89a221b5e..36f31302ce 100644 --- a/packages/section-nav/package.json +++ b/packages/section-nav/package.json @@ -11,18 +11,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "publishConfig": { "access": "public" @@ -47,4 +56,4 @@ "url": "https://jira.mongodb.org/projects/LG/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index 7b2974d249..ce8c953d38 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -46,8 +47,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/select/package.json b/packages/select/package.json index 9dd45c195d..6ef558a318 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -10,18 +10,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -60,4 +69,4 @@ "@lg-tools/build": "workspace:^" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index 3ee12c9887..7f4a7b232e 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -49,8 +50,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index 509fe62d7e..3beb77a956 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/skeleton-loader", @@ -44,8 +45,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/split-button/package.json b/packages/split-button/package.json index f5772992eb..a14c735d8d 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/split-button", @@ -45,8 +46,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/stepper/package.json b/packages/stepper/package.json index 5d4a6f7bfd..aec9372555 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -42,8 +43,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/table/package.json b/packages/table/package.json index 8d5af742f1..63f9776dfa 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -10,7 +10,11 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", @@ -21,7 +25,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -68,4 +73,4 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 700420ce5b..2213fa9eb4 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -10,18 +10,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -59,4 +68,4 @@ "@lg-tools/build": "workspace:^" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index 3b3facefee..2d5543ad5f 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -37,8 +37,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/text-area/package.json b/packages/text-area/package.json index 01bd075962..4d51556567 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -10,18 +10,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -53,4 +62,4 @@ "@lg-tools/build": "workspace:^" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/text-input/package.json b/packages/text-input/package.json index 0c37268c8c..d2ab520d85 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -10,18 +10,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -51,4 +60,4 @@ "@lg-tools/build": "workspace:^" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/toast/package.json b/packages/toast/package.json index f2a7440ff8..4cc8a73691 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -51,8 +52,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/toggle/package.json b/packages/toggle/package.json index ad3ec2f6c4..8ad88bc3ec 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -10,18 +10,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -52,4 +61,4 @@ "@lg-tools/build": "workspace:^" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 0e0e8bc078..59ef525d2c 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -36,8 +37,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/toolbar/package.json b/packages/toolbar/package.json index 78c34007e7..2431cac0fa 100644 --- a/packages/toolbar/package.json +++ b/packages/toolbar/package.json @@ -10,18 +10,27 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } }, "./testing": { "types": "./dist/types/testing/index.d.ts", "import": "./dist/esm/testing/index.js", - "require": "./dist/umd/testing/index.js" + "require": "./dist/umd/testing/index.js", + "production": { + "import": "./dist/esm/testing/index-min.js", + "require": "./dist/umd/testing/index-min.js" + } } }, "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -56,4 +65,4 @@ "url": "https://jira.mongodb.org/projects/LG/summary" }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index 87903339f0..1d804fd731 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -46,8 +47,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/typography/package.json b/packages/typography/package.json index 15ed5ad7dd..5fbb2f9452 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -8,7 +8,8 @@ "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", - "docs": "lg-build docs" + "docs": "lg-build docs", + "minify": "lg-build minify" }, "license": "Apache-2.0", "publishConfig": { @@ -41,8 +42,12 @@ "types": "./dist/types/index.d.ts", "types@<=5.0": "./dist/types/ts4.9/index.d.ts", "import": "./dist/esm/index.js", - "require": "./dist/umd/index.js" + "require": "./dist/umd/index.js", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "typesVersions": {} -} +} \ No newline at end of file diff --git a/packages/vertical-stepper/package.json b/packages/vertical-stepper/package.json index 5129607baf..9542ef4ef8 100644 --- a/packages/vertical-stepper/package.json +++ b/packages/vertical-stepper/package.json @@ -9,7 +9,11 @@ ".": { "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "production": { + "import": "./dist/esm/index-min.js", + "require": "./dist/umd/index-min.js" + } } }, "license": "Apache-2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e9437e6b2c..fff8dcd978 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3787,9 +3787,6 @@ importers: '@rollup/plugin-node-resolve': specifier: 15.1.0 version: 15.1.0(rollup@4.16.1) - '@rollup/plugin-terser': - specifier: 0.4.3 - version: 0.4.3(rollup@4.16.1) '@svgr/babel-plugin-replace-jsx-attribute-value': specifier: 8.0.0 version: 8.0.0(@babel/core@7.24.3) @@ -3844,6 +3841,9 @@ importers: rollup-plugin-polyfill-node: specifier: 0.13.0 version: 0.13.0(rollup@4.16.1) + terser: + specifier: ^5.44.1 + version: 5.44.1 turbo: specifier: ^2.0.6 version: 2.5.5 @@ -6138,15 +6138,6 @@ packages: rollup: optional: true - '@rollup/plugin-terser@0.4.3': - resolution: {integrity: sha512-EF0oejTMtkyhrkwCdg0HJ0IpkcaVg1MMSf2olHb2Jp+1mnLM04OhjpJWGma4HobiDTF0WCyViWuvadyE9ch2XA==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^2.x || ^3.x - peerDependenciesMeta: - rollup: - optional: true - '@rollup/plugin-url@8.0.2': resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==} engines: {node: '>=14.0.0'} @@ -10840,9 +10831,6 @@ packages: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} - smob@1.5.0: - resolution: {integrity: sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==} - snake-case@3.0.4: resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==} @@ -11101,8 +11089,8 @@ packages: uglify-js: optional: true - terser@5.43.1: - resolution: {integrity: sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg==} + terser@5.44.1: + resolution: {integrity: sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw==} engines: {node: '>=10'} hasBin: true @@ -14459,14 +14447,6 @@ snapshots: optionalDependencies: rollup: 4.16.1 - '@rollup/plugin-terser@0.4.3(rollup@4.16.1)': - dependencies: - serialize-javascript: 6.0.2 - smob: 1.5.0 - terser: 5.43.1 - optionalDependencies: - rollup: 4.16.1 - '@rollup/plugin-url@8.0.2(rollup@4.16.1)': dependencies: '@rollup/pluginutils': 5.2.0(rollup@4.16.1) @@ -17712,7 +17692,7 @@ snapshots: he: 1.2.0 param-case: 3.0.4 relateurl: 0.2.7 - terser: 5.43.1 + terser: 5.44.1 html-tokenize@2.0.1: dependencies: @@ -20427,8 +20407,6 @@ snapshots: slash@3.0.0: {} - smob@1.5.0: {} - snake-case@3.0.4: dependencies: dot-case: 3.0.4 @@ -20703,10 +20681,10 @@ snapshots: jest-worker: 27.5.1 schema-utils: 4.3.2 serialize-javascript: 6.0.2 - terser: 5.43.1 + terser: 5.44.1 webpack: 5.88.0 - terser@5.43.1: + terser@5.44.1: dependencies: '@jridgewell/source-map': 0.3.10 acorn: 8.15.0 diff --git a/tools/build/config/babel.config.js b/tools/build/config/babel.config.js index 1280d54fb2..22e86d9927 100644 --- a/tools/build/config/babel.config.js +++ b/tools/build/config/babel.config.js @@ -1,7 +1,5 @@ module.exports = function (api) { api.cache.using(() => process.env.NODE_ENV); - const isProduction = api.env('production'); - const modules = isProduction ? false : 'commonjs'; const presets = [ '@babel/preset-typescript', @@ -9,7 +7,6 @@ module.exports = function (api) { [ '@babel/preset-env', { - modules, targets: { browsers: ['last 2 versions', 'safari >= 7', 'ie >= 10'], }, diff --git a/tools/build/config/rollup.config.mjs b/tools/build/config/rollup.config.mjs index 400887c21c..28657ade86 100644 --- a/tools/build/config/rollup.config.mjs +++ b/tools/build/config/rollup.config.mjs @@ -3,7 +3,6 @@ import { fileURLToPath } from 'node:url'; import babel from '@rollup/plugin-babel'; import nodeResolve from '@rollup/plugin-node-resolve'; -import terser from '@rollup/plugin-terser'; import svgr from '@svgr/rollup'; import { glob } from 'glob'; import path from 'path'; @@ -63,13 +62,10 @@ const createConfigForFormat = (format, overrides) => { babelHelpers: 'bundled', extensions, configFile: babelConfigPath, - sourceMaps: 'inline', - envName: 'production', + sourceMaps: true, }), svgr(), - - terser(), ], external, strictDeprecations: true, diff --git a/tools/build/package.json b/tools/build/package.json index 19b298cfb7..f2ec98e22f 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -29,7 +29,6 @@ "@emotion/babel-plugin": "11.11.0", "@rollup/plugin-babel": "6.0.4", "@rollup/plugin-node-resolve": "15.1.0", - "@rollup/plugin-terser": "0.4.3", "@svgr/babel-plugin-replace-jsx-attribute-value": "8.0.0", "@svgr/cli": "8.0.1", "@svgr/rollup": "^8.1.0", @@ -48,6 +47,7 @@ "rollup-plugin-bundle-stats": "^4.18.2", "rollup-plugin-node-externals": "7.1.1", "rollup-plugin-polyfill-node": "0.13.0", + "terser": "^5.44.1", "typescript": "~5.8.0" }, "peerDependencies": { diff --git a/tools/build/src/buildAll.ts b/tools/build/src/buildAll.ts index c55a75d0f9..22542a22a4 100644 --- a/tools/build/src/buildAll.ts +++ b/tools/build/src/buildAll.ts @@ -6,7 +6,7 @@ interface BuildOptions { verbose: boolean; } -const validSteps = ['build', 'tsc', 'docs']; +const validSteps = ['build', 'tsc', 'docs', 'minify']; export function buildAll(packages: Array, { only }: BuildOptions) { console.log({ packages, only }); diff --git a/tools/build/src/cli.ts b/tools/build/src/cli.ts index 552cd83481..d787cbc82a 100644 --- a/tools/build/src/cli.ts +++ b/tools/build/src/cli.ts @@ -3,6 +3,7 @@ import { Command } from 'commander'; import { buildPackage } from './rollup/build-package'; import { buildTSDoc } from './tsdoc/build-tsdoc'; import { buildTypescript } from './typescript/build-ts'; +import { minifyPackage } from './minify'; const build = new Command('lg-build'); build.description('Build LeafyGreen packages'); @@ -22,6 +23,7 @@ build .command('tsc') .description('Build TypeScript packages') .option('-v, --verbose', 'Enable verbose logging', false) + .argument('[pass-through...]', 'Pass-through options for `tsc`') .option( '-d, --downlevel', 'Downlevel TypeScript packages based on the typesVersions field in package.json', @@ -32,6 +34,7 @@ build 'Update package.json typesVersions and exports fields', false, ) + .allowUnknownOption(true) .action(buildTypescript); build @@ -40,4 +43,15 @@ build .option('-v, --verbose', 'Enable verbose logging', false) .action(buildTSDoc); +build + .command('minify') + .description('Minify built JavaScript bundles') + .option( + '-p, --glob ', + 'Glob pattern to match javascript files to minify, prefixed with ! to exclude', + ['dist/**/*.js', '!dist/**/*-min.js'], + ) + .option('-v, --verbose', 'Enable verbose logging', false) + .action(minifyPackage); + build.parse(process.argv); diff --git a/tools/build/src/index.ts b/tools/build/src/index.ts index 154fa81026..d4de11c00e 100644 --- a/tools/build/src/index.ts +++ b/tools/build/src/index.ts @@ -1,4 +1,5 @@ export { buildAll as build } from './buildAll'; +export { minifyPackage } from './minify'; export { buildPackage } from './rollup/build-package'; export { buildTSDoc } from './tsdoc/build-tsdoc'; export { parseTSDoc } from './tsdoc/tsdocParser'; diff --git a/tools/build/src/minify.ts b/tools/build/src/minify.ts new file mode 100644 index 0000000000..89d3025670 --- /dev/null +++ b/tools/build/src/minify.ts @@ -0,0 +1,68 @@ +/* eslint-disable no-console */ +import fs from 'fs'; +import { glob } from 'glob'; +import path from 'path'; +import { minify_sync } from 'terser'; + +interface MinifyOptions { + verbose: boolean; + glob: Array; +} + +export function minifyPackage({ verbose, glob: globPatterns }: MinifyOptions) { + // Find all compiled JavaScript files in dist directories for this package + // Exclude already minified files (e.g., `*-min.js`) + const [include, exclude] = [ + globPatterns.filter(g => !g.startsWith('!')), + globPatterns.filter(g => g.startsWith('!')).map(g => g.slice(1)), + ]; + + const jsFiles = glob.sync(include, { + ignore: exclude, + }); + + if (verbose) { + console.log('Found JavaScript files to minify:', jsFiles); + } + + for (const jsFile of jsFiles) { + const dir = path.dirname(jsFile); + const baseName = path.basename(jsFile, '.js'); + const minifiedFile = path.join(dir, `${baseName}-min.js`); + const minifiedFileMap = path.join(dir, `${baseName}-min.js.map`); + const existingSourceMapFile = path.join(dir, `${baseName}.js.map`); + + try { + if (verbose) { + console.log(`Minifying ${jsFile} -> ${minifiedFile}`); + } + + const fileContent = fs.readFileSync(jsFile, 'utf8'); + const existingSourceMapContent = fs.readFileSync( + existingSourceMapFile, + 'utf8', + ); + + const minified = minify_sync(fileContent, { + sourceMap: { + filename: path.basename(minifiedFile), + content: existingSourceMapContent, + }, + compress: true, + mangle: true, + }); + + fs.writeFileSync(minifiedFile, minified.code!); + fs.writeFileSync(minifiedFileMap, minified.map! as string); + + if (verbose) { + console.log(`✓ Minified ${jsFile}`); + } + } catch (error) { + console.error(`✗ Failed to minify ${jsFile}:`, error); + throw error; + } + } + + console.log(`✓ Minified ${jsFiles.length} javascript files.`); +} diff --git a/tools/build/src/typescript/build-ts.ts b/tools/build/src/typescript/build-ts.ts index ed8ca506ac..b8ae1b79f7 100644 --- a/tools/build/src/typescript/build-ts.ts +++ b/tools/build/src/typescript/build-ts.ts @@ -16,6 +16,11 @@ interface BuildTypescriptOptions { * Builds all TS downlevel targets based on the typesVersions field in package.json */ downlevel?: boolean; + + /** + * Update package.json typesVersions and exports fields + */ + update?: boolean; } /** @@ -25,7 +30,7 @@ export function buildTypescript( passThru?: Array, options?: BuildTypescriptOptions, ) { - const { verbose } = options ?? { verbose: false }; + const { verbose, downlevel } = options ?? {}; const packageDir = process.cwd(); const tsConfigPath = path.join(packageDir, 'tsconfig.json'); @@ -61,7 +66,7 @@ export function buildTypescript( // Build the project const exitStatus = builder.build(); - if (options?.downlevel) { + if (downlevel) { runTypescriptDownlevel({ verbose, }); diff --git a/tools/install/src/ALL_PACKAGES.ts b/tools/install/src/ALL_PACKAGES.ts index c6e02aef04..3f608707d0 100644 --- a/tools/install/src/ALL_PACKAGES.ts +++ b/tools/install/src/ALL_PACKAGES.ts @@ -84,8 +84,10 @@ export const ALL_PACKAGES = [ '@lg-charts/drag-provider', '@lg-charts/legend', '@lg-charts/series-provider', + '@lg-chat/avatar', '@lg-chat/chat-layout', '@lg-chat/chat-window', + '@lg-chat/fixed-chat-window', '@lg-chat/input-bar', '@lg-chat/leafygreen-chat-provider', '@lg-chat/lg-markdown', diff --git a/turbo.json b/turbo.json index 1df11b6653..0c8c1302d3 100644 --- a/turbo.json +++ b/turbo.json @@ -30,6 +30,10 @@ "dev": { "cache": false, "persistent": true + }, + "minify": { + "dependsOn": ["build"], + "outputs": ["dist/**/*-min.js", "dist/**/*-min.js.map"] } } } From 7e42b407b9aade0067b80b0a94fcd125e25af753 Mon Sep 17 00:00:00 2001 From: Nima Taheri Date: Mon, 17 Nov 2025 21:56:02 -0800 Subject: [PATCH 2/6] feat: add rollup visualizer --- pnpm-lock.yaml | 659 ++------------------------- tools/build/config/rollup.config.mjs | 5 + tools/build/package.json | 1 + 3 files changed, 46 insertions(+), 619 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fff8dcd978..b7e07281bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3841,6 +3841,9 @@ importers: rollup-plugin-polyfill-node: specifier: 0.13.0 version: 0.13.0(rollup@4.16.1) + rollup-plugin-visualizer: + specifier: ^6.0.5 + version: 6.0.5(rollup@4.16.1) terser: specifier: ^5.44.1 version: 5.44.1 @@ -3919,7 +3922,7 @@ importers: version: 1.1.0 jscodeshift: specifier: 17.3.0 - version: 17.3.0(@babel/preset-env@7.24.3(@babel/core@7.28.0)) + version: 17.3.0(@babel/preset-env@7.24.3(@babel/core@7.24.3)) prettier: specifier: 2.8.8 version: 2.8.8 @@ -3959,7 +3962,7 @@ importers: dependencies: '@babel/eslint-parser': specifier: 7.28.4 - version: 7.28.4(@babel/core@7.28.0)(eslint@9.16.0) + version: 7.28.4(@babel/core@7.24.3)(eslint@9.16.0) '@typescript-eslint/types': specifier: 8.44.0 version: 8.44.0 @@ -4290,7 +4293,7 @@ importers: version: 2.1.0 babel-loader: specifier: 9.2.1 - version: 9.2.1(@babel/core@7.28.0)(webpack@5.88.0) + version: 9.2.1(@babel/core@7.24.3)(webpack@5.88.0) buffer: specifier: 6.0.3 version: 6.0.3 @@ -10658,6 +10661,19 @@ packages: vite: optional: true + rollup-plugin-visualizer@6.0.5: + resolution: {integrity: sha512-9+HlNgKCVbJDs8tVtjQ43US12eqaiHyyiLMdBwQ7vSZPiHMysGNo2E88TAp1si5wx8NAoYriI2A5kuKfIakmJg==} + engines: {node: '>=18'} + hasBin: true + peerDependencies: + rolldown: 1.x || ^1.0.0-beta + rollup: 2.x || 3.x || 4.x + peerDependenciesMeta: + rolldown: + optional: true + rollup: + optional: true + rollup-plugin-webpack-stats@2.1.0: resolution: {integrity: sha512-7cxCelMRPkqZvjQa4NuHSkdJ6nshLDuDYyPAky8YOjcaz+qEocg0DRcJoSd4r2mKSupz0uZpoav5vqpDm7bSxg==} engines: {node: '>=18'} @@ -10852,6 +10868,10 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} + source-map@0.7.6: + resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==} + engines: {node: '>= 12'} + space-separated-tokens@2.0.2: resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} @@ -11790,9 +11810,9 @@ snapshots: eslint-visitor-keys: 2.1.0 semver: 6.3.1 - '@babel/eslint-parser@7.28.4(@babel/core@7.28.0)(eslint@9.16.0)': + '@babel/eslint-parser@7.28.4(@babel/core@7.24.3)(eslint@9.16.0)': dependencies: - '@babel/core': 7.28.0 + '@babel/core': 7.24.3 '@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1 eslint: 9.16.0 eslint-visitor-keys: 2.1.0 @@ -11851,14 +11871,6 @@ snapshots: regexpu-core: 6.2.0 semver: 6.3.1 - '@babel/helper-create-regexp-features-plugin@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-annotate-as-pure': 7.27.3 - regexpu-core: 6.2.0 - semver: 6.3.1 - optional: true - '@babel/helper-define-polyfill-provider@0.6.5(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11870,18 +11882,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/helper-define-polyfill-provider@0.6.5(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-compilation-targets': 7.27.2 - '@babel/helper-plugin-utils': 7.27.1 - debug: 4.4.1 - lodash.debounce: 4.0.8 - resolve: 1.22.10 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/helper-globals@7.28.0': {} '@babel/helper-member-expression-to-functions@7.27.1': @@ -11940,16 +11940,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/helper-remap-async-to-generator@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-annotate-as-pure': 7.27.3 - '@babel/helper-wrap-function': 7.27.1 - '@babel/traverse': 7.28.0 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/helper-replace-supers@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12007,12 +11997,6 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12022,16 +12006,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 - '@babel/plugin-transform-optional-chaining': 7.27.1(@babel/core@7.28.0) - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12040,15 +12014,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/traverse': 7.28.0 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-proposal-export-default-from@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12059,22 +12024,11 @@ snapshots: dependencies: '@babel/core': 7.24.3 - '@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - optional: true - '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12085,34 +12039,16 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-export-default-from@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12123,12 +12059,6 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-flow@7.27.1(@babel/core@7.28.0)': dependencies: '@babel/core': 7.28.0 @@ -12139,45 +12069,21 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-import-assertions@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-import-attributes@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-import-attributes@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-jsx@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12193,89 +12099,41 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-syntax-typescript@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12292,24 +12150,11 @@ snapshots: '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-arrow-functions@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-arrow-functions@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-async-generator-functions@7.28.0(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12319,16 +12164,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-async-generator-functions@7.28.0(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/helper-remap-async-to-generator': 7.27.1(@babel/core@7.28.0) - '@babel/traverse': 7.28.0 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-async-to-generator@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12338,38 +12173,16 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-async-to-generator@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-module-imports': 7.27.1 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/helper-remap-async-to-generator': 7.27.1(@babel/core@7.28.0) - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-block-scoped-functions@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-block-scoped-functions@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-block-scoping@7.28.0(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-block-scoping@7.28.0(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-class-properties@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12394,15 +12207,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-class-static-block@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-classes@7.28.0(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12415,32 +12219,12 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-classes@7.28.0(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-annotate-as-pure': 7.27.3 - '@babel/helper-compilation-targets': 7.27.2 - '@babel/helper-globals': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/helper-replace-supers': 7.27.1(@babel/core@7.28.0) - '@babel/traverse': 7.28.0 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-computed-properties@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 '@babel/template': 7.27.2 - '@babel/plugin-transform-computed-properties@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/template': 7.27.2 - optional: true - '@babel/plugin-transform-destructuring@7.28.0(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12449,72 +12233,32 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-destructuring@7.28.0(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/traverse': 7.28.0 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-dotall-regex@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-dotall-regex@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-duplicate-keys@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-duplicate-keys@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-dynamic-import@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-dynamic-import@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-exponentiation-operator@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-exponentiation-operator@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-export-namespace-from@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-export-namespace-from@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-flow-strip-types@7.27.1(@babel/core@7.28.0)': dependencies: '@babel/core': 7.28.0 @@ -12529,15 +12273,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-for-of@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-function-name@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12547,60 +12282,26 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-function-name@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-compilation-targets': 7.27.2 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/traverse': 7.28.0 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-json-strings@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-json-strings@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-literals@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-literals@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-logical-assignment-operators@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-logical-assignment-operators@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-member-expression-literals@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-member-expression-literals@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-modules-amd@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12609,15 +12310,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-modules-amd@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-modules-commonjs@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12644,17 +12336,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-modules-systemjs@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - '@babel/helper-validator-identifier': 7.27.1 - '@babel/traverse': 7.28.0 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-modules-umd@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12663,39 +12344,17 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-modules-umd@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-named-capturing-groups-regex@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-named-capturing-groups-regex@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-new-target@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-new-target@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-nullish-coalescing-operator@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12711,12 +12370,6 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-numeric-separator@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-object-rest-spread@7.28.0(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12728,18 +12381,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-object-rest-spread@7.28.0(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-compilation-targets': 7.27.2 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-destructuring': 7.28.0(@babel/core@7.28.0) - '@babel/plugin-transform-parameters': 7.27.7(@babel/core@7.28.0) - '@babel/traverse': 7.28.0 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-object-super@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12748,26 +12389,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-object-super@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/helper-replace-supers': 7.27.1(@babel/core@7.28.0) - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-optional-catch-binding@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-optional-catch-binding@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-optional-chaining@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12789,12 +12415,6 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-parameters@7.27.7(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-private-methods@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12820,27 +12440,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-private-property-in-object@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-annotate-as-pure': 7.27.3 - '@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-property-literals@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-property-literals@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-react-constant-elements@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12880,34 +12484,16 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-regenerator@7.28.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-reserved-words@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-reserved-words@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-shorthand-properties@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-shorthand-properties@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-spread@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12916,48 +12502,21 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/plugin-transform-spread@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/plugin-transform-sticky-regex@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-sticky-regex@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-template-literals@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-template-literals@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-typeof-symbol@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-typeof-symbol@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-typescript@7.28.0(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -12985,51 +12544,24 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-unicode-escapes@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-unicode-property-regex@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-unicode-property-regex@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-unicode-regex@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-unicode-regex@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/plugin-transform-unicode-sets-regex@7.27.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.27.1 - '@babel/plugin-transform-unicode-sets-regex@7.27.1(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-create-regexp-features-plugin': 7.27.1(@babel/core@7.28.0) - '@babel/helper-plugin-utils': 7.27.1 - optional: true - '@babel/preset-env@7.24.3(@babel/core@7.24.3)': dependencies: '@babel/compat-data': 7.28.0 @@ -13116,93 +12648,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/preset-env@7.24.3(@babel/core@7.28.0)': - dependencies: - '@babel/compat-data': 7.28.0 - '@babel/core': 7.28.0 - '@babel/helper-compilation-targets': 7.27.2 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/helper-validator-option': 7.27.1 - '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/core@7.28.0) - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.28.0) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.28.0) - '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.28.0) - '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.28.0) - '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.28.0) - '@babel/plugin-syntax-import-assertions': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-syntax-import-attributes': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.28.0) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.28.0) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.28.0) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.28.0) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.28.0) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.28.0) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.28.0) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.28.0) - '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.28.0) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.28.0) - '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/core@7.28.0) - '@babel/plugin-transform-arrow-functions': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-async-generator-functions': 7.28.0(@babel/core@7.28.0) - '@babel/plugin-transform-async-to-generator': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-block-scoped-functions': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-block-scoping': 7.28.0(@babel/core@7.28.0) - '@babel/plugin-transform-class-properties': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-class-static-block': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-classes': 7.28.0(@babel/core@7.28.0) - '@babel/plugin-transform-computed-properties': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-destructuring': 7.28.0(@babel/core@7.28.0) - '@babel/plugin-transform-dotall-regex': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-duplicate-keys': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-dynamic-import': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-exponentiation-operator': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-export-namespace-from': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-for-of': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-function-name': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-json-strings': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-literals': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-logical-assignment-operators': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-member-expression-literals': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-modules-amd': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-modules-commonjs': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-modules-systemjs': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-modules-umd': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-named-capturing-groups-regex': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-new-target': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-nullish-coalescing-operator': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-numeric-separator': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-object-rest-spread': 7.28.0(@babel/core@7.28.0) - '@babel/plugin-transform-object-super': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-optional-catch-binding': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-optional-chaining': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-parameters': 7.27.7(@babel/core@7.28.0) - '@babel/plugin-transform-private-methods': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-private-property-in-object': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-property-literals': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-regenerator': 7.28.1(@babel/core@7.28.0) - '@babel/plugin-transform-reserved-words': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-shorthand-properties': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-spread': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-sticky-regex': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-template-literals': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-typeof-symbol': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-unicode-escapes': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-unicode-property-regex': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-unicode-regex': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-unicode-sets-regex': 7.27.1(@babel/core@7.28.0) - '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/core@7.28.0) - babel-plugin-polyfill-corejs2: 0.4.14(@babel/core@7.28.0) - babel-plugin-polyfill-corejs3: 0.10.6(@babel/core@7.28.0) - babel-plugin-polyfill-regenerator: 0.6.5(@babel/core@7.28.0) - core-js-compat: 3.44.0 - semver: 6.3.1 - transitivePeerDependencies: - - supports-color - optional: true - '@babel/preset-flow@7.27.1(@babel/core@7.28.0)': dependencies: '@babel/core': 7.28.0 @@ -13217,14 +12662,6 @@ snapshots: '@babel/types': 7.28.1 esutils: 2.0.3 - '@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.28.0)': - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-plugin-utils': 7.27.1 - '@babel/types': 7.28.1 - esutils: 2.0.3 - optional: true - '@babel/preset-react@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -15934,9 +15371,9 @@ snapshots: transitivePeerDependencies: - supports-color - babel-loader@9.2.1(@babel/core@7.28.0)(webpack@5.88.0): + babel-loader@9.2.1(@babel/core@7.24.3)(webpack@5.88.0): dependencies: - '@babel/core': 7.28.0 + '@babel/core': 7.24.3 find-cache-dir: 4.0.0 schema-utils: 4.3.2 webpack: 5.88.0 @@ -15973,16 +15410,6 @@ snapshots: transitivePeerDependencies: - supports-color - babel-plugin-polyfill-corejs2@0.4.14(@babel/core@7.28.0): - dependencies: - '@babel/compat-data': 7.28.0 - '@babel/core': 7.28.0 - '@babel/helper-define-polyfill-provider': 0.6.5(@babel/core@7.28.0) - semver: 6.3.1 - transitivePeerDependencies: - - supports-color - optional: true - babel-plugin-polyfill-corejs3@0.10.6(@babel/core@7.24.3): dependencies: '@babel/core': 7.24.3 @@ -15991,15 +15418,6 @@ snapshots: transitivePeerDependencies: - supports-color - babel-plugin-polyfill-corejs3@0.10.6(@babel/core@7.28.0): - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-define-polyfill-provider': 0.6.5(@babel/core@7.28.0) - core-js-compat: 3.44.0 - transitivePeerDependencies: - - supports-color - optional: true - babel-plugin-polyfill-regenerator@0.6.5(@babel/core@7.24.3): dependencies: '@babel/core': 7.24.3 @@ -16007,14 +15425,6 @@ snapshots: transitivePeerDependencies: - supports-color - babel-plugin-polyfill-regenerator@0.6.5(@babel/core@7.28.0): - dependencies: - '@babel/core': 7.28.0 - '@babel/helper-define-polyfill-provider': 0.6.5(@babel/core@7.28.0) - transitivePeerDependencies: - - supports-color - optional: true - babel-preset-current-node-syntax@1.1.0(@babel/core@7.24.3): dependencies: '@babel/core': 7.24.3 @@ -18449,7 +17859,7 @@ snapshots: dependencies: argparse: 2.0.1 - jscodeshift@17.3.0(@babel/preset-env@7.24.3(@babel/core@7.28.0)): + jscodeshift@17.3.0(@babel/preset-env@7.24.3(@babel/core@7.24.3)): dependencies: '@babel/core': 7.28.0 '@babel/parser': 7.28.0 @@ -18470,7 +17880,7 @@ snapshots: tmp: 0.2.3 write-file-atomic: 5.0.1 optionalDependencies: - '@babel/preset-env': 7.24.3(@babel/core@7.28.0) + '@babel/preset-env': 7.24.3(@babel/core@7.24.3) transitivePeerDependencies: - supports-color @@ -20206,6 +19616,15 @@ snapshots: optionalDependencies: rollup: 4.16.1 + rollup-plugin-visualizer@6.0.5(rollup@4.16.1): + dependencies: + open: 8.4.2 + picomatch: 4.0.3 + source-map: 0.7.6 + yargs: 17.7.2 + optionalDependencies: + rollup: 4.16.1 + rollup-plugin-webpack-stats@2.1.0(rollup@4.16.1): dependencies: rollup-plugin-stats: 1.4.0(rollup@4.16.1) @@ -20428,6 +19847,8 @@ snapshots: source-map@0.6.1: {} + source-map@0.7.6: {} + space-separated-tokens@2.0.2: {} spawndamnit@3.0.1: diff --git a/tools/build/config/rollup.config.mjs b/tools/build/config/rollup.config.mjs index 28657ade86..aab01b037a 100644 --- a/tools/build/config/rollup.config.mjs +++ b/tools/build/config/rollup.config.mjs @@ -8,6 +8,7 @@ import { glob } from 'glob'; import path from 'path'; import { nodeExternals } from 'rollup-plugin-node-externals'; import nodePolyfills from 'rollup-plugin-polyfill-node'; +import { visualizer } from 'rollup-plugin-visualizer'; import { getUMDGlobals } from './utils/getUMDGlobals.mjs'; import { defaultsDeep } from 'lodash-es'; @@ -66,6 +67,10 @@ const createConfigForFormat = (format, overrides) => { }), svgr(), + visualizer({ + open: false, + filename: `${moduleFormatToDirectory[format]}/bundle-stats.html`, + }), ], external, strictDeprecations: true, diff --git a/tools/build/package.json b/tools/build/package.json index f2ec98e22f..34f8c44b9d 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -47,6 +47,7 @@ "rollup-plugin-bundle-stats": "^4.18.2", "rollup-plugin-node-externals": "7.1.1", "rollup-plugin-polyfill-node": "0.13.0", + "rollup-plugin-visualizer": "^6.0.5", "terser": "^5.44.1", "typescript": "~5.8.0" }, From 67da269598c5e9752d144ecac34d5ca2449be4da Mon Sep 17 00:00:00 2001 From: Nima Taheri Date: Mon, 17 Nov 2025 21:56:27 -0800 Subject: [PATCH 3/6] feat: upload artifacts --- .github/workflows/pr.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4328b33204..33f81732a5 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -67,6 +67,18 @@ jobs: if: ${{ steps.build-cache.outputs.cache-hit != 'true' }} run: pnpm build:packages + - uses: actions/upload-artifact@v4 + name: Upload build artifacts + if: ${{ steps.build-cache.outputs.cache-hit != 'true' }} + with: + name: built-packages-${{ github.run_id }}.zip + path: | + charts/*/dist/ + chat/*/dist/ + packages/*/dist/ + tools/*/dist/ + retention-days: 30 + - uses: actions/cache/save@v4 name: Save build cache if: ${{ steps.build-cache.outputs.cache-hit != 'true' }} From 9558876b7ab8963e9371eb28b31b1cd16f603849 Mon Sep 17 00:00:00 2001 From: Nima Taheri Date: Mon, 17 Nov 2025 21:56:44 -0800 Subject: [PATCH 4/6] docs: make icon build verbose --- packages/icon/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icon/package.json b/packages/icon/package.json index 7812edd2d3..b8973eaac6 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -37,7 +37,7 @@ }, "scripts": { "prebuild": "ts-node ./scripts/prebuild/index.ts", - "build": "ts-node ./scripts/build/build.ts", + "build": "ts-node ./scripts/build/build.ts --verbose", "postbuild": "ts-node ./scripts/postbuild/index.ts", "minify": "lg-build minify", "tsc": "lg-build tsc", From a14f3b99b4451a727d80dffb1f44fa9e0ff0230c Mon Sep 17 00:00:00 2001 From: Nima Taheri Date: Mon, 17 Nov 2025 23:41:51 -0800 Subject: [PATCH 5/6] feat: correct cache hash --- .github/workflows/pr.yml | 2 +- .github/workflows/react17.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 33f81732a5..496ad89c48 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -35,7 +35,7 @@ jobs: mcp-ui/*/dist/* packages/*/dist/* tools/*/dist/* - key: ${{ runner.os }}-build-cache-${{ hashFiles('package.json', 'pnpm-lock.yaml', '**/src/') }} + key: ${{ runner.os }}-build-cache-${{ hashFiles('package.json', 'pnpm-lock.yaml', '**/src/', '**/scripts/', '**/config/') }} # @leafygreen-ui/icon has an additional built-in cache layer - uses: actions/cache/restore@v4 diff --git a/.github/workflows/react17.yml b/.github/workflows/react17.yml index 2797b3e063..2e11b15e04 100644 --- a/.github/workflows/react17.yml +++ b/.github/workflows/react17.yml @@ -35,7 +35,7 @@ jobs: mcp-ui/*/dist/* packages/*/dist/* tools/*/dist/* - key: ${{ runner.os }}-REACT17-build-cache-${{ hashFiles('package.json', 'pnpm-lock.yaml', '**/src/') }} + key: ${{ runner.os }}-REACT17-build-cache-${{ hashFiles('package.json', 'pnpm-lock.yaml', '**/src/', '**/scripts/', '**/config/') }} - name: Setup Node 18 uses: actions/setup-node@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3f1f1f680..3dfb4e58ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: tools/*/dist/* tools/*/tsdoc.json tools/*/stories.js - key: ${{ runner.os }}-build-cache-${{ hashFiles('package.json', 'pnpm-lock.yaml', '**/src/') }} + key: ${{ runner.os }}-build-cache-${{ hashFiles('package.json', 'pnpm-lock.yaml', '**/src/', '**/scripts/', '**/config/') }} # Only setup & build if there was no build cache hit - name: Use Node 18 From a9e439a131902b25ec8ae8ba9d00bd3113b0a131 Mon Sep 17 00:00:00 2001 From: Nima Taheri Date: Tue, 18 Nov 2025 11:05:02 -0800 Subject: [PATCH 6/6] auto: cache buster x1 --- packages/icon/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/icon/src/index.ts b/packages/icon/src/index.ts index 2ce18be35d..669719ae75 100644 --- a/packages/icon/src/index.ts +++ b/packages/icon/src/index.ts @@ -1,3 +1,4 @@ +// cache buster x5 export { createGlyphComponent } from './createGlyphComponent'; export type { IconProps } from './createIconComponent'; export { createIconComponent } from './createIconComponent';