From 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 3 Apr 2025 16:49:51 -0400 Subject: [PATCH 001/123] Bump to TS5.0 --- package.json | 4 +- pnpm-lock.yaml | 312 +++++++++++++++++++-------------------- tools/build/package.json | 2 +- tools/lint/package.json | 2 +- 4 files changed, 160 insertions(+), 160 deletions(-) diff --git a/package.json b/package.json index 17ce3537d3..c42e838d22 100644 --- a/package.json +++ b/package.json @@ -64,11 +64,11 @@ "prettier": "2.8.8", "react": "^18.2.0", "react-dom": "^18.2.0", - "stream": "^0.0.3", "storybook": "^8.5.3", + "stream": "^0.0.3", "ts-node": "10.9.2", "turbo": "^2.0.6", - "typescript": "~4.9.0" + "typescript": "~5.0.4" }, "pnpm": { "overrides": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 94ac2ce3f3..3716d8004b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,7 +49,7 @@ importers: version: link:tools/test '@storybook/react': specifier: ^8.5.3 - version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5) + version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) '@testing-library/react': specifier: ^14.0.0 version: 14.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -82,7 +82,7 @@ importers: version: 3.2.3 npm-package-json-lint: specifier: 8.0.0 - version: 8.0.0(typescript@4.9.5) + version: 8.0.0(typescript@5.0.4) npm-run-all: specifier: ^4.1.5 version: 4.1.5 @@ -103,13 +103,13 @@ importers: version: 0.0.3 ts-node: specifier: 10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4) turbo: specifier: ^2.0.6 version: 2.0.6 typescript: - specifier: ~4.9.0 - version: 4.9.5 + specifier: ~5.0.4 + version: 5.0.4 charts/chart-card: dependencies: @@ -1626,7 +1626,7 @@ importers: version: 6.1.1 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -2947,10 +2947,10 @@ importers: version: 8.0.0(@babel/core@7.24.3) '@svgr/cli': specifier: 8.0.1 - version: 8.0.1(typescript@4.9.5) + version: 8.0.1(typescript@5.0.4) '@svgr/rollup': specifier: ^8.1.0 - version: 8.1.0(rollup@4.16.1)(typescript@4.9.5) + version: 8.1.0(rollup@4.16.1)(typescript@5.0.4) '@types/cross-spawn': specifier: 6.0.2 version: 6.0.2 @@ -2974,7 +2974,7 @@ importers: version: 4.17.21 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@4.9.5) + version: 2.2.2(typescript@5.0.4) rollup: specifier: 4.16.1 version: 4.16.1 @@ -2991,8 +2991,8 @@ importers: specifier: ^2.0.6 version: 2.0.6 typescript: - specifier: ~4.9.0 - version: 4.9.5 + specifier: ~5.0.0 + version: 5.0.4 tools/cli: dependencies: @@ -3148,7 +3148,7 @@ importers: version: 7.25.9(@babel/core@7.23.2)(eslint@9.16.0) '@emotion/eslint-plugin': specifier: 11.12.0 - version: 11.12.0(eslint@9.16.0)(typescript@4.9.5) + version: 11.12.0(eslint@9.16.0)(typescript@5.0.4) '@eslint/compat': specifier: ^1.2.3 version: 1.2.3(eslint@9.16.0) @@ -3166,10 +3166,10 @@ importers: version: 6.0.2 '@typescript-eslint/eslint-plugin': specifier: 8.17.0 - version: 8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@4.9.5))(eslint@9.16.0)(typescript@4.9.5) + version: 8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(typescript@5.0.4) '@typescript-eslint/parser': specifier: 8.17.0 - version: 8.17.0(eslint@9.16.0)(typescript@4.9.5) + version: 8.17.0(eslint@9.16.0)(typescript@5.0.4) chalk: specifier: 4.1.2 version: 4.1.2 @@ -3184,10 +3184,10 @@ importers: version: 9.1.0(eslint@9.16.0) eslint-plugin-import: specifier: 2.31.0 - version: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@4.9.5))(eslint@9.16.0) + version: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0) eslint-plugin-jest: specifier: 28.9.0 - version: 28.9.0(@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@4.9.5))(eslint@9.16.0)(typescript@4.9.5))(eslint@9.16.0)(jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)))(typescript@4.9.5) + version: 28.9.0(@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)))(typescript@5.0.4) eslint-plugin-jsx-a11y: specifier: 6.10.2 version: 6.10.2(eslint@9.16.0) @@ -3202,22 +3202,22 @@ importers: version: 12.1.1(eslint@9.16.0) eslint-plugin-storybook: specifier: 0.11.1 - version: 0.11.1(eslint@9.16.0)(typescript@4.9.5) + version: 0.11.1(eslint@9.16.0)(typescript@5.0.4) globals: specifier: ^15.13.0 version: 15.13.0 npm-package-json-lint: specifier: 8.0.0 - version: 8.0.0(typescript@4.9.5) + version: 8.0.0(typescript@5.0.4) npm-package-json-lint-config-default: specifier: 7.0.1 - version: 7.0.1(npm-package-json-lint@8.0.0(typescript@4.9.5)) + version: 7.0.1(npm-package-json-lint@8.0.0(typescript@5.0.4)) prettier: specifier: 2.8.8 version: 2.8.8 typescript: - specifier: ~4.9.0 - version: 4.9.5 + specifier: ~5.0.0 + version: 5.0.4 tools/meta: dependencies: @@ -3320,10 +3320,10 @@ importers: version: 8.5.3(storybook@8.5.3(prettier@2.8.8)) '@storybook/react': specifier: 8.5.3 - version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5) + version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) '@storybook/react-webpack5': specifier: 8.5.3 - version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5) + version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) '@storybook/test': specifier: 8.5.3 version: 8.5.3(storybook@8.5.3(prettier@2.8.8)) @@ -3332,7 +3332,7 @@ importers: version: 8.5.3(storybook@8.5.3(prettier@2.8.8)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@4.9.5) + version: 8.0.1(typescript@5.0.4) babel-loader: specifier: 9.2.1 version: 9.2.1(@babel/core@7.24.3)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) @@ -3359,7 +3359,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@4.9.5) + version: 2.2.2(typescript@5.0.4) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3407,7 +3407,7 @@ importers: version: link:../storybook-utils '@storybook/react': specifier: ^8.5.3 - version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5) + version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) lodash: specifier: 4.17.21 version: 4.17.21 @@ -3419,7 +3419,7 @@ importers: version: 0.1.13 '@storybook/react': specifier: 8.5.3 - version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5) + version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) lodash: specifier: ^4.17.21 version: 4.17.21 @@ -3491,7 +3491,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -10356,9 +10356,9 @@ packages: resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==} engines: {node: '>= 0.4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.0.4: + resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} + engines: {node: '>=12.20'} hasBin: true unbox-primitive@1.0.2: @@ -11979,9 +11979,9 @@ snapshots: optionalDependencies: '@babel/core': 7.24.3 - '@emotion/eslint-plugin@11.12.0(eslint@9.16.0)(typescript@4.9.5)': + '@emotion/eslint-plugin@11.12.0(eslint@9.16.0)(typescript@5.0.4)': dependencies: - '@typescript-eslint/utils': 5.62.0(eslint@9.16.0)(typescript@4.9.5) + '@typescript-eslint/utils': 5.62.0(eslint@9.16.0)(typescript@5.0.4) eslint: 9.16.0 transitivePeerDependencies: - supports-color @@ -12342,7 +12342,7 @@ snapshots: jest-util: 29.7.0 slash: 3.0.0 - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12356,7 +12356,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12378,7 +12378,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12392,7 +12392,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12953,7 +12953,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.5.3(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5)': + '@storybook/builder-webpack5@8.5.3(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4)': dependencies: '@storybook/core-webpack': 8.5.3(storybook@8.5.3(prettier@2.8.8)) '@types/semver': 7.5.0 @@ -12963,7 +12963,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@4.9.5)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) magic-string: 0.30.10 path-browserify: 1.0.1 @@ -12981,7 +12981,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 4.9.5 + typescript: 5.0.4 transitivePeerDependencies: - '@swc/core' - esbuild @@ -13056,11 +13056,11 @@ snapshots: dependencies: storybook: 8.5.3(prettier@2.8.8) - '@storybook/preset-react-webpack@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5)': + '@storybook/preset-react-webpack@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4)': dependencies: '@storybook/core-webpack': 8.5.3(storybook@8.5.3(prettier@2.8.8)) - '@storybook/react': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@4.9.5)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) + '@storybook/react': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.10 @@ -13073,7 +13073,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19) optionalDependencies: - typescript: 4.9.5 + typescript: 5.0.4 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13086,16 +13086,16 @@ snapshots: dependencies: storybook: 8.5.3(prettier@2.8.8) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@4.9.5)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19))': dependencies: debug: 4.3.4 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@4.9.5) + react-docgen-typescript: 2.2.2(typescript@5.0.4) tslib: 2.6.2 - typescript: 4.9.5 + typescript: 5.0.4 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19) transitivePeerDependencies: - supports-color @@ -13106,16 +13106,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.5.3(prettier@2.8.8) - '@storybook/react-webpack5@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5)': + '@storybook/react-webpack5@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4)': dependencies: - '@storybook/builder-webpack5': 8.5.3(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5) - '@storybook/preset-react-webpack': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5) - '@storybook/react': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5) + '@storybook/builder-webpack5': 8.5.3(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) + '@storybook/preset-react-webpack': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) + '@storybook/react': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.5.3(prettier@2.8.8) optionalDependencies: - typescript: 4.9.5 + typescript: 5.0.4 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13124,7 +13124,7 @@ snapshots: - uglify-js - webpack-cli - '@storybook/react@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@4.9.5)': + '@storybook/react@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4)': dependencies: '@storybook/components': 8.5.3(storybook@8.5.3(prettier@2.8.8)) '@storybook/global': 5.0.0 @@ -13137,7 +13137,7 @@ snapshots: storybook: 8.5.3(prettier@2.8.8) optionalDependencies: '@storybook/test': 8.5.3(storybook@8.5.3(prettier@2.8.8)) - typescript: 4.9.5 + typescript: 5.0.4 '@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8))': dependencies: @@ -13242,12 +13242,12 @@ snapshots: '@svgr/babel-plugin-transform-react-native-svg': 8.1.0(@babel/core@7.24.3) '@svgr/babel-plugin-transform-svg-component': 8.0.0(@babel/core@7.24.3) - '@svgr/cli@8.0.1(typescript@4.9.5)': + '@svgr/cli@8.0.1(typescript@5.0.4)': dependencies: - '@svgr/core': 8.0.0(typescript@4.9.5) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@4.9.5)) - '@svgr/plugin-prettier': 8.0.1(@svgr/core@8.0.0(typescript@4.9.5)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@4.9.5))(typescript@4.9.5) + '@svgr/core': 8.0.0(typescript@5.0.4) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) + '@svgr/plugin-prettier': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4) camelcase: 6.3.0 chalk: 4.1.2 commander: 9.5.0 @@ -13266,23 +13266,23 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/core@8.0.0(typescript@4.9.5)': + '@svgr/core@8.0.0(typescript@5.0.4)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@4.9.5) + cosmiconfig: 8.3.6(typescript@5.0.4) snake-case: 3.0.4 transitivePeerDependencies: - supports-color - typescript - '@svgr/core@8.1.0(typescript@4.9.5)': + '@svgr/core@8.1.0(typescript@5.0.4)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.1.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@4.9.5) + cosmiconfig: 8.3.6(typescript@5.0.4) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13306,51 +13306,51 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@4.9.5))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@4.9.5) + '@svgr/core': 8.0.0(typescript@5.0.4) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0(typescript@4.9.5))': + '@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0(typescript@5.0.4))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.1.0(@babel/core@7.24.3) - '@svgr/core': 8.1.0(typescript@4.9.5) + '@svgr/core': 8.1.0(typescript@5.0.4) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: - supports-color - '@svgr/plugin-prettier@8.0.1(@svgr/core@8.0.0(typescript@4.9.5))': + '@svgr/plugin-prettier@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))': dependencies: - '@svgr/core': 8.0.0(typescript@4.9.5) + '@svgr/core': 8.0.0(typescript@5.0.4) deepmerge: 4.3.1 prettier: 2.8.8 - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@4.9.5))(typescript@4.9.5)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4)': dependencies: - '@svgr/core': 8.0.0(typescript@4.9.5) - cosmiconfig: 8.3.6(typescript@4.9.5) + '@svgr/core': 8.0.0(typescript@5.0.4) + cosmiconfig: 8.3.6(typescript@5.0.4) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.1.0(@svgr/core@8.1.0(typescript@4.9.5))(typescript@4.9.5)': + '@svgr/plugin-svgo@8.1.0(@svgr/core@8.1.0(typescript@5.0.4))(typescript@5.0.4)': dependencies: - '@svgr/core': 8.1.0(typescript@4.9.5) - cosmiconfig: 8.3.6(typescript@4.9.5) + '@svgr/core': 8.1.0(typescript@5.0.4) + cosmiconfig: 8.3.6(typescript@5.0.4) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: - typescript - '@svgr/rollup@8.1.0(rollup@4.16.1)(typescript@4.9.5)': + '@svgr/rollup@8.1.0(rollup@4.16.1)(typescript@5.0.4)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) @@ -13358,24 +13358,24 @@ snapshots: '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) '@rollup/pluginutils': 5.0.2(rollup@4.16.1) - '@svgr/core': 8.1.0(typescript@4.9.5) - '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@4.9.5)) - '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0(typescript@4.9.5))(typescript@4.9.5) + '@svgr/core': 8.1.0(typescript@5.0.4) + '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@5.0.4)) + '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0(typescript@5.0.4))(typescript@5.0.4) transitivePeerDependencies: - rollup - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@4.9.5)': + '@svgr/webpack@8.0.1(typescript@5.0.4)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@4.9.5) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@4.9.5)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@4.9.5))(typescript@4.9.5) + '@svgr/core': 8.0.0(typescript@5.0.4) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4) transitivePeerDependencies: - supports-color - typescript @@ -13741,34 +13741,34 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.0 - '@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@4.9.5))(eslint@9.16.0)(typescript@4.9.5)': + '@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(typescript@5.0.4)': dependencies: '@eslint-community/regexpp': 4.12.1 - '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@4.9.5) + '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@5.0.4) '@typescript-eslint/scope-manager': 8.17.0 - '@typescript-eslint/type-utils': 8.17.0(eslint@9.16.0)(typescript@4.9.5) - '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@4.9.5) + '@typescript-eslint/type-utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) + '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) '@typescript-eslint/visitor-keys': 8.17.0 eslint: 9.16.0 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.4.3(typescript@4.9.5) + ts-api-utils: 1.4.3(typescript@5.0.4) optionalDependencies: - typescript: 4.9.5 + typescript: 5.0.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@4.9.5)': + '@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4)': dependencies: '@typescript-eslint/scope-manager': 8.17.0 '@typescript-eslint/types': 8.17.0 - '@typescript-eslint/typescript-estree': 8.17.0(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.0.4) '@typescript-eslint/visitor-keys': 8.17.0 debug: 4.3.4 eslint: 9.16.0 optionalDependencies: - typescript: 4.9.5 + typescript: 5.0.4 transitivePeerDependencies: - supports-color @@ -13782,15 +13782,15 @@ snapshots: '@typescript-eslint/types': 8.17.0 '@typescript-eslint/visitor-keys': 8.17.0 - '@typescript-eslint/type-utils@8.17.0(eslint@9.16.0)(typescript@4.9.5)': + '@typescript-eslint/type-utils@8.17.0(eslint@9.16.0)(typescript@5.0.4)': dependencies: - '@typescript-eslint/typescript-estree': 8.17.0(typescript@4.9.5) - '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.0.4) + '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) debug: 4.3.4 eslint: 9.16.0 - ts-api-utils: 1.4.3(typescript@4.9.5) + ts-api-utils: 1.4.3(typescript@5.0.4) optionalDependencies: - typescript: 4.9.5 + typescript: 5.0.4 transitivePeerDependencies: - supports-color @@ -13798,7 +13798,7 @@ snapshots: '@typescript-eslint/types@8.17.0': {} - '@typescript-eslint/typescript-estree@5.62.0(typescript@4.9.5)': + '@typescript-eslint/typescript-estree@5.62.0(typescript@5.0.4)': dependencies: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 @@ -13806,13 +13806,13 @@ snapshots: globby: 11.1.0 is-glob: 4.0.3 semver: 7.6.3 - tsutils: 3.21.0(typescript@4.9.5) + tsutils: 3.21.0(typescript@5.0.4) optionalDependencies: - typescript: 4.9.5 + typescript: 5.0.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/typescript-estree@8.17.0(typescript@4.9.5)': + '@typescript-eslint/typescript-estree@8.17.0(typescript@5.0.4)': dependencies: '@typescript-eslint/types': 8.17.0 '@typescript-eslint/visitor-keys': 8.17.0 @@ -13821,20 +13821,20 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.4.3(typescript@4.9.5) + ts-api-utils: 1.4.3(typescript@5.0.4) optionalDependencies: - typescript: 4.9.5 + typescript: 5.0.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@5.62.0(eslint@9.16.0)(typescript@4.9.5)': + '@typescript-eslint/utils@5.62.0(eslint@9.16.0)(typescript@5.0.4)': dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.0.4) eslint: 9.16.0 eslint-scope: 5.1.1 semver: 7.6.3 @@ -13842,15 +13842,15 @@ snapshots: - supports-color - typescript - '@typescript-eslint/utils@8.17.0(eslint@9.16.0)(typescript@4.9.5)': + '@typescript-eslint/utils@8.17.0(eslint@9.16.0)(typescript@5.0.4)': dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0) '@typescript-eslint/scope-manager': 8.17.0 '@typescript-eslint/types': 8.17.0 - '@typescript-eslint/typescript-estree': 8.17.0(typescript@4.9.5) + '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.0.4) eslint: 9.16.0 optionalDependencies: - typescript: 4.9.5 + typescript: 5.0.4 transitivePeerDependencies: - supports-color @@ -14638,14 +14638,14 @@ snapshots: path-type: 4.0.0 yaml: 1.10.2 - cosmiconfig@8.3.6(typescript@4.9.5): + cosmiconfig@8.3.6(typescript@5.0.4): dependencies: import-fresh: 3.3.0 js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 optionalDependencies: - typescript: 4.9.5 + typescript: 5.0.4 create-require@1.1.1: {} @@ -15240,17 +15240,17 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@4.9.5))(eslint-import-resolver-node@0.3.9)(eslint@9.16.0): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint@9.16.0): dependencies: debug: 3.2.7 optionalDependencies: - '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@4.9.5) + '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@5.0.4) eslint: 9.16.0 eslint-import-resolver-node: 0.3.9 transitivePeerDependencies: - supports-color - eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@4.9.5))(eslint@9.16.0): + eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -15261,7 +15261,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.16.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@4.9.5))(eslint-import-resolver-node@0.3.9)(eslint@9.16.0) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint@9.16.0) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -15273,19 +15273,19 @@ snapshots: string.prototype.trimend: 1.0.8 tsconfig-paths: 3.15.0 optionalDependencies: - '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@4.9.5) + '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@5.0.4) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack - supports-color - eslint-plugin-jest@28.9.0(@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@4.9.5))(eslint@9.16.0)(typescript@4.9.5))(eslint@9.16.0)(jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)))(typescript@4.9.5): + eslint-plugin-jest@28.9.0(@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)))(typescript@5.0.4): dependencies: - '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@4.9.5) + '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) eslint: 9.16.0 optionalDependencies: - '@typescript-eslint/eslint-plugin': 8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@4.9.5))(eslint@9.16.0)(typescript@4.9.5) - jest: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)) + '@typescript-eslint/eslint-plugin': 8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(typescript@5.0.4) + jest: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) transitivePeerDependencies: - supports-color - typescript @@ -15339,10 +15339,10 @@ snapshots: dependencies: eslint: 9.16.0 - eslint-plugin-storybook@0.11.1(eslint@9.16.0)(typescript@4.9.5): + eslint-plugin-storybook@0.11.1(eslint@9.16.0)(typescript@5.0.4): dependencies: '@storybook/csf': 0.1.12 - '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@4.9.5) + '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) eslint: 9.16.0 ts-dedent: 2.2.0 transitivePeerDependencies: @@ -15611,7 +15611,7 @@ snapshots: cross-spawn: 7.0.6 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@4.9.5)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15625,7 +15625,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 4.9.5 + typescript: 5.0.4 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19) form-data@2.5.1: @@ -16234,16 +16234,16 @@ snapshots: - babel-plugin-macros - supports-color - jest-cli@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)): + jest-cli@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)) + jest-config: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16255,16 +16255,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16275,7 +16275,7 @@ snapshots: - supports-color - ts-node - jest-config@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)): + jest-config@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16301,13 +16301,13 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.17.12 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4) transitivePeerDependencies: - babel-plugin-macros - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16333,13 +16333,13 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4) transitivePeerDependencies: - babel-plugin-macros - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16365,7 +16365,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16620,12 +16620,12 @@ snapshots: merge-stream: 2.0.0 supports-color: 8.1.1 - jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)): + jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5)) + jest-cli: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -16633,12 +16633,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -17603,16 +17603,16 @@ snapshots: normalize-path@3.0.0: {} - npm-package-json-lint-config-default@7.0.1(npm-package-json-lint@8.0.0(typescript@4.9.5)): + npm-package-json-lint-config-default@7.0.1(npm-package-json-lint@8.0.0(typescript@5.0.4)): dependencies: - npm-package-json-lint: 8.0.0(typescript@4.9.5) + npm-package-json-lint: 8.0.0(typescript@5.0.4) - npm-package-json-lint@8.0.0(typescript@4.9.5): + npm-package-json-lint@8.0.0(typescript@5.0.4): dependencies: ajv: 6.12.6 ajv-errors: 1.0.1(ajv@6.12.6) chalk: 4.1.2 - cosmiconfig: 8.3.6(typescript@4.9.5) + cosmiconfig: 8.3.6(typescript@5.0.4) debug: 4.3.4 globby: 11.1.0 ignore: 5.3.2 @@ -18019,9 +18019,9 @@ snapshots: range-parser@1.2.1: {} - react-docgen-typescript@2.2.2(typescript@4.9.5): + react-docgen-typescript@2.2.2(typescript@5.0.4): dependencies: - typescript: 4.9.5 + typescript: 5.0.4 react-docgen@7.0.3: dependencies: @@ -18944,13 +18944,13 @@ snapshots: trough@2.1.0: {} - ts-api-utils@1.4.3(typescript@4.9.5): + ts-api-utils@1.4.3(typescript@5.0.4): dependencies: - typescript: 4.9.5 + typescript: 5.0.4 ts-dedent@2.2.0: {} - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@4.9.5): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -18964,13 +18964,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 4.9.5 + typescript: 5.0.4 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@4.9.5): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -18984,7 +18984,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 4.9.5 + typescript: 5.0.4 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19010,10 +19010,10 @@ snapshots: tslib@2.6.2: {} - tsutils@3.21.0(typescript@4.9.5): + tsutils@3.21.0(typescript@5.0.4): dependencies: tslib: 1.14.1 - typescript: 4.9.5 + typescript: 5.0.4 tty-browserify@0.0.1: {} @@ -19111,7 +19111,7 @@ snapshots: possible-typed-array-names: 1.0.0 reflect.getprototypeof: 1.0.7 - typescript@4.9.5: {} + typescript@5.0.4: {} unbox-primitive@1.0.2: dependencies: diff --git a/tools/build/package.json b/tools/build/package.json index 37720d2f99..ee7dd84203 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -47,6 +47,6 @@ "peerDependencies": { "@babel/core": "7.24.0", "turbo": "^2.0.6", - "typescript": "~4.9.0" + "typescript": "~5.0.0" } } diff --git a/tools/lint/package.json b/tools/lint/package.json index e4c0cfb994..e57e7ce389 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -40,6 +40,6 @@ "prettier": "2.8.8" }, "peerDependencies": { - "typescript": "~4.9.0" + "typescript": "~5.0.0" } } From d008dc17570b5672e5a06ebc8ba935c0252e992e Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 16:13:47 -0400 Subject: [PATCH 002/123] use typescript node API --- tools/build/src/typescript/build-ts.ts | 61 ++++++++++++++++--- .../src/typescript/report-ts-diagnostic.ts | 22 +++++++ 2 files changed, 76 insertions(+), 7 deletions(-) create mode 100644 tools/build/src/typescript/report-ts-diagnostic.ts diff --git a/tools/build/src/typescript/build-ts.ts b/tools/build/src/typescript/build-ts.ts index 8c1163cb20..6c727fb2a5 100644 --- a/tools/build/src/typescript/build-ts.ts +++ b/tools/build/src/typescript/build-ts.ts @@ -1,8 +1,9 @@ /* eslint-disable no-console */ import chalk from 'chalk'; -import { spawn } from 'cross-spawn'; import fse from 'fs-extra'; import path from 'path'; +import ts from 'typescript'; +import { reportTypescriptDiagnostic } from './report-ts-diagnostic'; /** * Builds Typescript definitions for the current directory @@ -20,12 +21,58 @@ export function buildTypescript( process.exit(1); } - verbose && console.log(chalk.gray('Building TypeScript')); + verbose && console.log(chalk.blue('Building TypeScript')); - spawn('tsc', ['--build', tsConfigPath, ...(passThru ?? [''])], { - cwd: packageDir, - stdio: 'inherit', - }).on('exit', code => { - process.exit(code ?? undefined); + // Read tsconfig.json + const configFile = ts.readConfigFile(tsConfigPath, ts.sys.readFile); + + if (configFile.error) { + reportTypescriptDiagnostic(configFile.error); + process.exit(1); + } + verbose && + console.log( + chalk.blue(' Loaded tsconfig.json: '), + chalk.white(tsConfigPath), + '\n', + chalk.gray(JSON.stringify(configFile, null, 2)), + ); + + // Parse the config + const parsedConfig = ts.parseJsonConfigFileContent( + configFile.config, + ts.sys, + path.dirname(tsConfigPath), + ); + + if (parsedConfig.errors.length > 0) { + parsedConfig.errors.forEach(reportTypescriptDiagnostic); + process.exit(1); + } + + // Create the program + const program = ts.createProgram({ + rootNames: parsedConfig.fileNames, + options: parsedConfig.options, + projectReferences: parsedConfig.projectReferences, }); + + // Emit output + const emitResult = program.emit(); + + // Report diagnostics + const allDiagnostics = ts + .getPreEmitDiagnostics(program) + .concat(emitResult.diagnostics); + + if (verbose && allDiagnostics.length > 0) { + allDiagnostics.forEach(reportTypescriptDiagnostic); + } + + // Exit with appropriate code + const hasErrors = allDiagnostics.some( + diagnostic => diagnostic.category === ts.DiagnosticCategory.Error, + ); + const exitCode = emitResult.emitSkipped || hasErrors ? 1 : 0; + process.exit(exitCode); } diff --git a/tools/build/src/typescript/report-ts-diagnostic.ts b/tools/build/src/typescript/report-ts-diagnostic.ts new file mode 100644 index 0000000000..994e6b20c3 --- /dev/null +++ b/tools/build/src/typescript/report-ts-diagnostic.ts @@ -0,0 +1,22 @@ +import chalk from 'chalk'; +import ts from 'typescript'; +/** + * Helper function to report diagnostic messages + */ +export function reportTypescriptDiagnostic(diagnostic: ts.Diagnostic): void { + const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); + if (diagnostic.file && diagnostic.start !== undefined) { + const { line, character } = diagnostic.file.getLineAndCharacterOfPosition( + diagnostic.start, + ); + console.error( + chalk.red( + `${diagnostic.file.fileName} (${line + 1},${ + character + 1 + }): ${message}`, + ), + ); + } else { + console.error(chalk.red(message)); + } +} From eee9c5cc1b39d6810cff64e58e014e379659f093 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 16:25:46 -0400 Subject: [PATCH 003/123] handle cli options --- tools/build/src/typescript/build-ts.ts | 9 ++++++++- .../src/typescript/parsePassThruOptions.ts | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 tools/build/src/typescript/parsePassThruOptions.ts diff --git a/tools/build/src/typescript/build-ts.ts b/tools/build/src/typescript/build-ts.ts index 6c727fb2a5..4f38ffc4af 100644 --- a/tools/build/src/typescript/build-ts.ts +++ b/tools/build/src/typescript/build-ts.ts @@ -3,6 +3,7 @@ import chalk from 'chalk'; import fse from 'fs-extra'; import path from 'path'; import ts from 'typescript'; +import { parsePassThruOptions } from './parsePAssThruOptions'; import { reportTypescriptDiagnostic } from './report-ts-diagnostic'; /** @@ -50,10 +51,16 @@ export function buildTypescript( process.exit(1); } + // Any additional options passed in via the CLI + const cliCompilerOptions = parsePassThruOptions(passThru); + // Create the program const program = ts.createProgram({ rootNames: parsedConfig.fileNames, - options: parsedConfig.options, + options: { + ...parsedConfig.options, + ...cliCompilerOptions, + }, projectReferences: parsedConfig.projectReferences, }); diff --git a/tools/build/src/typescript/parsePassThruOptions.ts b/tools/build/src/typescript/parsePassThruOptions.ts new file mode 100644 index 0000000000..7aec7c99fc --- /dev/null +++ b/tools/build/src/typescript/parsePassThruOptions.ts @@ -0,0 +1,18 @@ +/** + * Parses cli arguments passed to the build command + * into an object that can be used in the build process + */ +export function parsePassThruOptions( + passThru?: Array, +): Record | undefined { + return passThru?.reduce((acc, arg) => { + const [_key, value] = arg.split('='); + const key = _key.replace(/^-+/, ''); + if (value) { + acc[key] = value; + } else { + acc[key] = true; + } + return acc; + }, {} as Record); +} From 0b983617f1e34a8aa54b107eea1709229420efe6 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 16:49:28 -0400 Subject: [PATCH 004/123] use createSolutionBuilderHost --- tools/build/src/typescript/build-ts.ts | 117 ++++++++++-------- .../src/typescript/report-ts-diagnostic.ts | 22 ---- 2 files changed, 64 insertions(+), 75 deletions(-) delete mode 100644 tools/build/src/typescript/report-ts-diagnostic.ts diff --git a/tools/build/src/typescript/build-ts.ts b/tools/build/src/typescript/build-ts.ts index 4f38ffc4af..078753ee78 100644 --- a/tools/build/src/typescript/build-ts.ts +++ b/tools/build/src/typescript/build-ts.ts @@ -3,15 +3,26 @@ import chalk from 'chalk'; import fse from 'fs-extra'; import path from 'path'; import ts from 'typescript'; -import { parsePassThruOptions } from './parsePAssThruOptions'; -import { reportTypescriptDiagnostic } from './report-ts-diagnostic'; +import { parsePassThruOptions } from './parsePassThruOptions'; + +interface BuildTypescriptOptions { + /** Whether to print verbose output*/ + verbose?: boolean; + + /** + * Whether to build for production + * + * This builds all TS downlevel targets + */ + production?: boolean; +} /** * Builds Typescript definitions for the current directory */ export function buildTypescript( passThru?: Array, - options?: Record, + options?: BuildTypescriptOptions, ) { const { verbose } = options ?? { verbose: false }; const packageDir = process.cwd(); @@ -22,64 +33,64 @@ export function buildTypescript( process.exit(1); } - verbose && console.log(chalk.blue('Building TypeScript')); + verbose && console.log(chalk.blue.bold('Building TypeScript')); + verbose && console.log(chalk.gray(JSON.stringify(options, null, 2))); - // Read tsconfig.json - const configFile = ts.readConfigFile(tsConfigPath, ts.sys.readFile); + // Any additional options passed in via the CLI + const cliCompilerOptions = parsePassThruOptions(passThru); - if (configFile.error) { - reportTypescriptDiagnostic(configFile.error); - process.exit(1); - } - verbose && - console.log( - chalk.blue(' Loaded tsconfig.json: '), - chalk.white(tsConfigPath), - '\n', - chalk.gray(JSON.stringify(configFile, null, 2)), - ); - - // Parse the config - const parsedConfig = ts.parseJsonConfigFileContent( - configFile.config, - ts.sys, - path.dirname(tsConfigPath), + // Create a Solution Builder Host to properly handle --build functionality + const buildHost = ts.createSolutionBuilderHost( + ts.sys, // system + ts.createEmitAndSemanticDiagnosticsBuilderProgram, // createProgram + reportTypescriptDiagnostic, // reportDiagnostic + reportTypescriptDiagnostic, // reportSolutionBuilderStatus + verbose ? message => console.log(chalk.gray(message)) : undefined, // reportErrorSummary ); - if (parsedConfig.errors.length > 0) { - parsedConfig.errors.forEach(reportTypescriptDiagnostic); - process.exit(1); - } + // Create a Solution Builder (equivalent to tsc --build) + const builder = ts.createSolutionBuilder(buildHost, [tsConfigPath], { + ...cliCompilerOptions, + verbose: verbose, + }); - // Any additional options passed in via the CLI - const cliCompilerOptions = parsePassThruOptions(passThru); + // Build the project + const exitStatus = builder.build(); - // Create the program - const program = ts.createProgram({ - rootNames: parsedConfig.fileNames, - options: { - ...parsedConfig.options, - ...cliCompilerOptions, - }, - projectReferences: parsedConfig.projectReferences, - }); + // Exit with appropriate code + process.exit(exitStatus); - // Emit output - const emitResult = program.emit(); + /** + * Helper function to report diagnostic messages + */ + function reportTypescriptDiagnostic(diagnostic: ts.Diagnostic): void { + const msg = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); - // Report diagnostics - const allDiagnostics = ts - .getPreEmitDiagnostics(program) - .concat(emitResult.diagnostics); + const isError = diagnostic.category === ts.DiagnosticCategory.Error; + const isWarning = diagnostic.category === ts.DiagnosticCategory.Warning; - if (verbose && allDiagnostics.length > 0) { - allDiagnostics.forEach(reportTypescriptDiagnostic); - } + // Only show non-errors in verbose + if (!verbose && !(isError || isWarning)) { + return; + } - // Exit with appropriate code - const hasErrors = allDiagnostics.some( - diagnostic => diagnostic.category === ts.DiagnosticCategory.Error, - ); - const exitCode = emitResult.emitSkipped || hasErrors ? 1 : 0; - process.exit(exitCode); + let message = msg; + + if (diagnostic.file && diagnostic.start !== undefined) { + const { line, character } = diagnostic.file.getLineAndCharacterOfPosition( + diagnostic.start, + ); + const l = line + 1; + const c = character + 1; + message = `${diagnostic.file.fileName} (${l},${c}): ${msg}`; + } + + const msgColor = isError + ? chalk.red + : isWarning + ? chalk.yellow + : chalk.gray; + + console.log(msgColor(message)); + } } diff --git a/tools/build/src/typescript/report-ts-diagnostic.ts b/tools/build/src/typescript/report-ts-diagnostic.ts deleted file mode 100644 index 994e6b20c3..0000000000 --- a/tools/build/src/typescript/report-ts-diagnostic.ts +++ /dev/null @@ -1,22 +0,0 @@ -import chalk from 'chalk'; -import ts from 'typescript'; -/** - * Helper function to report diagnostic messages - */ -export function reportTypescriptDiagnostic(diagnostic: ts.Diagnostic): void { - const message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); - if (diagnostic.file && diagnostic.start !== undefined) { - const { line, character } = diagnostic.file.getLineAndCharacterOfPosition( - diagnostic.start, - ); - console.error( - chalk.red( - `${diagnostic.file.fileName} (${line + 1},${ - character + 1 - }): ${message}`, - ), - ); - } else { - console.error(chalk.red(message)); - } -} From b9dc06043f888428ce0eda8f556c024d815e2a12 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 16:49:36 -0400 Subject: [PATCH 005/123] add production flag --- tools/cli/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/cli/src/index.ts b/tools/cli/src/index.ts index ba139d541e..8b1056b94d 100644 --- a/tools/cli/src/index.ts +++ b/tools/cli/src/index.ts @@ -222,8 +222,12 @@ cli .command('build-ts') .description("Builds a package's TypeScript definitions") .argument('[pass-through...]', 'Pass-through options for `tsc`') - .passThroughOptions(true) // allows passing flags to the `tsc` CLI .option('-v --verbose', 'Prints additional information to the console', false) + .option( + '-p --production', + 'Whether to build for production. This builds all TS downlevel targets', + false, + ) .allowUnknownOption(true) .action(buildTypescript); cli From 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 16:53:15 -0400 Subject: [PATCH 006/123] makeTypescriptDiagnosticReporter --- tools/build/src/typescript/build-ts.ts | 36 +----------------- .../makeTypescriptDiagnosticReporter.ts | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+), 34 deletions(-) create mode 100644 tools/build/src/typescript/makeTypescriptDiagnosticReporter.ts diff --git a/tools/build/src/typescript/build-ts.ts b/tools/build/src/typescript/build-ts.ts index 078753ee78..43fae9438d 100644 --- a/tools/build/src/typescript/build-ts.ts +++ b/tools/build/src/typescript/build-ts.ts @@ -3,6 +3,7 @@ import chalk from 'chalk'; import fse from 'fs-extra'; import path from 'path'; import ts from 'typescript'; +import { makeTypescriptDiagnosticReporter } from './makeTypescriptDiagnosticReporter'; import { parsePassThruOptions } from './parsePassThruOptions'; interface BuildTypescriptOptions { @@ -38,6 +39,7 @@ export function buildTypescript( // Any additional options passed in via the CLI const cliCompilerOptions = parsePassThruOptions(passThru); + const reportTypescriptDiagnostic = makeTypescriptDiagnosticReporter(verbose); // Create a Solution Builder Host to properly handle --build functionality const buildHost = ts.createSolutionBuilderHost( @@ -59,38 +61,4 @@ export function buildTypescript( // Exit with appropriate code process.exit(exitStatus); - - /** - * Helper function to report diagnostic messages - */ - function reportTypescriptDiagnostic(diagnostic: ts.Diagnostic): void { - const msg = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); - - const isError = diagnostic.category === ts.DiagnosticCategory.Error; - const isWarning = diagnostic.category === ts.DiagnosticCategory.Warning; - - // Only show non-errors in verbose - if (!verbose && !(isError || isWarning)) { - return; - } - - let message = msg; - - if (diagnostic.file && diagnostic.start !== undefined) { - const { line, character } = diagnostic.file.getLineAndCharacterOfPosition( - diagnostic.start, - ); - const l = line + 1; - const c = character + 1; - message = `${diagnostic.file.fileName} (${l},${c}): ${msg}`; - } - - const msgColor = isError - ? chalk.red - : isWarning - ? chalk.yellow - : chalk.gray; - - console.log(msgColor(message)); - } } diff --git a/tools/build/src/typescript/makeTypescriptDiagnosticReporter.ts b/tools/build/src/typescript/makeTypescriptDiagnosticReporter.ts new file mode 100644 index 0000000000..3ef9fee903 --- /dev/null +++ b/tools/build/src/typescript/makeTypescriptDiagnosticReporter.ts @@ -0,0 +1,38 @@ +import chalk from 'chalk'; +import ts from 'typescript'; +/** + * Helper function to report diagnostic messages + */ + +export function makeTypescriptDiagnosticReporter(verbose?: boolean) { + return function reportTypescriptDiagnostic(diagnostic: ts.Diagnostic): void { + const msg = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n'); + + const isError = diagnostic.category === ts.DiagnosticCategory.Error; + const isWarning = diagnostic.category === ts.DiagnosticCategory.Warning; + + // Only show non-errors in verbose + if (!verbose && !(isError || isWarning)) { + return; + } + + let message = msg; + + if (diagnostic.file && diagnostic.start !== undefined) { + const { line, character } = diagnostic.file.getLineAndCharacterOfPosition( + diagnostic.start, + ); + const l = line + 1; + const c = character + 1; + message = `${diagnostic.file.fileName} (${l},${c}): ${msg}`; + } + + const msgColor = isError + ? chalk.red + : isWarning + ? chalk.yellow + : chalk.gray; + + console.log(msgColor(message)); + }; +} From ff8408286808553330a65a7a3c45f70c68326a9d Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 17:21:23 -0400 Subject: [PATCH 007/123] creates downlevelDts --- tools/build/src/typescript/build-ts.ts | 8 ++ tools/build/src/typescript/downlevel-dts.ts | 96 +++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 tools/build/src/typescript/downlevel-dts.ts diff --git a/tools/build/src/typescript/build-ts.ts b/tools/build/src/typescript/build-ts.ts index 43fae9438d..01e10f5536 100644 --- a/tools/build/src/typescript/build-ts.ts +++ b/tools/build/src/typescript/build-ts.ts @@ -3,6 +3,7 @@ import chalk from 'chalk'; import fse from 'fs-extra'; import path from 'path'; import ts from 'typescript'; +import { downlevelDts } from './downlevel-dts'; import { makeTypescriptDiagnosticReporter } from './makeTypescriptDiagnosticReporter'; import { parsePassThruOptions } from './parsePassThruOptions'; @@ -59,6 +60,13 @@ export function buildTypescript( // Build the project const exitStatus = builder.build(); + if (options?.production) { + verbose && + console.log(chalk.blue.bold('Building TypeScript for production')); + downlevelDts({ verbose, target: '3.4' }); + downlevelDts({ verbose, target: '4.9' }); + } + // Exit with appropriate code process.exit(exitStatus); } diff --git a/tools/build/src/typescript/downlevel-dts.ts b/tools/build/src/typescript/downlevel-dts.ts new file mode 100644 index 0000000000..87f4f4a77d --- /dev/null +++ b/tools/build/src/typescript/downlevel-dts.ts @@ -0,0 +1,96 @@ +/* eslint-disable no-console */ +import chalk from 'chalk'; +import path from 'path'; +import fse from 'fs-extra'; +import { sync as spawnSync } from 'cross-spawn'; + +interface DownlevelDtsOptions { + /** Whether to print verbose output */ + verbose?: boolean; + + /** Target TypeScript version for output */ + target?: string; + + /** Directory to output downleveled declaration files */ + outDir?: string; +} + +/** + * Runs downlevel-dts to create backward compatible TypeScript declaration files + * + * @param options Configuration options + */ +export function downlevelDts(options?: DownlevelDtsOptions): void { + const { verbose, target = '3.4', outDir } = options ?? {}; + const packageDir = process.cwd(); + + // Default to types directory if not specified + const typesDirPath = path.resolve(packageDir, 'dist'); + + // Default output directory + const defaultOutDir = `dist/ts${target}`; + const outputDirPath = path.resolve(packageDir, outDir ?? defaultOutDir); + + // Ensure types directory exists + if (!fse.existsSync(typesDirPath)) { + console.error(chalk.red(`Types directory not found: ${typesDirPath}`)); + process.exit(1); + } + + verbose && + console.log( + chalk.blue(`Downleveling TypeScript declarations to TS ${target}`), + ); + verbose && console.log(chalk.gray(`Input: ${typesDirPath}`)); + verbose && console.log(chalk.gray(`Output: ${outputDirPath}`)); + + try { + // Ensure downlevel-dts is installed + verbose && console.log(chalk.blueBright('Checking for downlevel-dts...')); + + const checkResult = checkForDownlevelDts(); + + if (checkResult.status !== 0) { + verbose && + console.log(chalk.yellow('downlevel-dts not found, installing...')); + + const installResult = installDownlevelDts(); + + if (installResult.status !== 0) { + throw new Error( + `Failed to install downlevel-dts, exit code: ${installResult.status}`, + ); + } + } + + // Run downlevel-dts + const args = ['downlevel-dts', typesDirPath, outputDirPath, '--to', target]; + + verbose && console.log(chalk.gray(`Running: npx ${args.join(' ')}`)); + + const result = spawnSync('npx', args, { + stdio: verbose ? 'inherit' : 'pipe', + }); + + if (result.status !== 0) { + throw new Error(`downlevel-dts failed with exit code: ${result.status}`); + } + + console.log( + verbose && + chalk.green( + `Successfully created downleveled declarations in ${outputDirPath}`, + ), + ); + } catch (error: any) { + throw new Error(`Error downleveling declarations: ${error.message}`); + } + + function checkForDownlevelDts() { + return spawnSync('npx', ['--no-install', 'downlevel-dts', '--version']); + } + + function installDownlevelDts() { + return spawnSync('npm', ['install', '--no-save', 'downlevel-dts']); + } +} From f744abe1c1964b4f947f74834ee633beb82f3122 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 18:01:57 -0400 Subject: [PATCH 008/123] downlevelDts parses package.json --- packages/lib/package.json | 5 + pnpm-lock.yaml | 229 ++++++++++++++------ tools/build/package.json | 1 + tools/build/src/typescript/build-ts.ts | 54 ++++- tools/build/src/typescript/downlevel-dts.ts | 54 ++--- tools/cli/src/index.ts | 5 + 6 files changed, 239 insertions(+), 109 deletions(-) diff --git a/packages/lib/package.json b/packages/lib/package.json index 3a920df9a5..8cf4ce4bad 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -10,6 +10,11 @@ "*": [ "ts3.4/*" ] + }, + "<=4.9": { + "*": [ + "ts4.9/*" + ] } }, "scripts": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3716d8004b..b54cd7c329 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1626,7 +1626,7 @@ importers: version: 6.1.1 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250404) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -2947,10 +2947,10 @@ importers: version: 8.0.0(@babel/core@7.24.3) '@svgr/cli': specifier: 8.0.1 - version: 8.0.1(typescript@5.0.4) + version: 8.0.1(typescript@5.9.0-dev.20250404) '@svgr/rollup': specifier: ^8.1.0 - version: 8.1.0(rollup@4.16.1)(typescript@5.0.4) + version: 8.1.0(rollup@4.16.1)(typescript@5.9.0-dev.20250404) '@types/cross-spawn': specifier: 6.0.2 version: 6.0.2 @@ -2963,6 +2963,9 @@ importers: cross-spawn: specifier: 7.0.3 version: 7.0.3 + downlevel-dts: + specifier: ^0.11.0 + version: 0.11.0 fs-extra: specifier: 11.1.1 version: 11.1.1 @@ -2974,7 +2977,7 @@ importers: version: 4.17.21 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.0.4) + version: 2.2.2(typescript@5.9.0-dev.20250404) rollup: specifier: 4.16.1 version: 4.16.1 @@ -2992,7 +2995,7 @@ importers: version: 2.0.6 typescript: specifier: ~5.0.0 - version: 5.0.4 + version: 5.9.0-dev.20250404 tools/cli: dependencies: @@ -3320,10 +3323,10 @@ importers: version: 8.5.3(storybook@8.5.3(prettier@2.8.8)) '@storybook/react': specifier: 8.5.3 - version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) + version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.9.0-dev.20250404) '@storybook/react-webpack5': specifier: 8.5.3 - version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) + version: 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.9.0-dev.20250404) '@storybook/test': specifier: 8.5.3 version: 8.5.3(storybook@8.5.3(prettier@2.8.8)) @@ -3332,7 +3335,7 @@ importers: version: 8.5.3(storybook@8.5.3(prettier@2.8.8)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.0.4) + version: 8.0.1(typescript@5.9.0-dev.20250404) babel-loader: specifier: 9.2.1 version: 9.2.1(@babel/core@7.24.3)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) @@ -3359,7 +3362,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.0.4) + version: 2.2.2(typescript@5.9.0-dev.20250404) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3491,7 +3494,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -7164,6 +7167,10 @@ packages: resolution: {integrity: sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==} engines: {node: '>=12'} + downlevel-dts@0.11.0: + resolution: {integrity: sha512-vo835pntK7kzYStk7xUHDifiYJvXxVhUapt85uk2AI94gUUAQX9HNRtrcMHNSc3YHJUEHGbYIGsM99uIbgAtxw==} + hasBin: true + duplexer2@0.1.4: resolution: {integrity: sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==} @@ -7935,6 +7942,10 @@ packages: resolution: {integrity: sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==} engines: {node: '>= 0.4'} + interpret@1.4.0: + resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==} + engines: {node: '>= 0.10'} + invariant@2.2.4: resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==} @@ -9550,6 +9561,10 @@ packages: resolution: {integrity: sha512-Hx/BGIbwj+Des3+xy5uAtAbdCyqK9y9wbBcDFDYanLS9JnMqf7OeF87HQwUimE87OEc72mr6tkKUKMBBL+hF9Q==} engines: {node: '>= 4'} + rechoir@0.6.2: + resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==} + engines: {node: '>= 0.10'} + redent@3.0.0: resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} engines: {node: '>=8'} @@ -9822,6 +9837,11 @@ packages: shell-quote@1.8.1: resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} + shelljs@0.8.5: + resolution: {integrity: sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==} + engines: {node: '>=4'} + hasBin: true + side-channel@1.0.6: resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} engines: {node: '>= 0.4'} @@ -10361,6 +10381,11 @@ packages: engines: {node: '>=12.20'} hasBin: true + typescript@5.9.0-dev.20250404: + resolution: {integrity: sha512-GL0YP8pAL3ug0rLp7Sii/ML+kYUkfCU2wxk4O+aV2H3rYfligNa+/SaXzpXfRMaa5wjDnbNUq9mAuhGpMvIUHQ==} + engines: {node: '>=14.17'} + hasBin: true + unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} @@ -12378,7 +12403,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12392,7 +12417,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12953,7 +12978,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.5.3(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4)': + '@storybook/builder-webpack5@8.5.3(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(storybook@8.5.3(prettier@2.8.8))(typescript@5.9.0-dev.20250404)': dependencies: '@storybook/core-webpack': 8.5.3(storybook@8.5.3(prettier@2.8.8)) '@types/semver': 7.5.0 @@ -12963,7 +12988,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250404)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) magic-string: 0.30.10 path-browserify: 1.0.1 @@ -12981,7 +13006,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.0.4 + typescript: 5.9.0-dev.20250404 transitivePeerDependencies: - '@swc/core' - esbuild @@ -13056,11 +13081,11 @@ snapshots: dependencies: storybook: 8.5.3(prettier@2.8.8) - '@storybook/preset-react-webpack@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4)': + '@storybook/preset-react-webpack@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.9.0-dev.20250404)': dependencies: '@storybook/core-webpack': 8.5.3(storybook@8.5.3(prettier@2.8.8)) - '@storybook/react': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) + '@storybook/react': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.9.0-dev.20250404) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250404)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.10 @@ -13073,7 +13098,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19) optionalDependencies: - typescript: 5.0.4 + typescript: 5.9.0-dev.20250404 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13086,16 +13111,16 @@ snapshots: dependencies: storybook: 8.5.3(prettier@2.8.8) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250404)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19))': dependencies: debug: 4.3.4 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.0.4) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250404) tslib: 2.6.2 - typescript: 5.0.4 + typescript: 5.9.0-dev.20250404 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19) transitivePeerDependencies: - supports-color @@ -13106,16 +13131,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.5.3(prettier@2.8.8) - '@storybook/react-webpack5@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4)': + '@storybook/react-webpack5@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.9.0-dev.20250404)': dependencies: - '@storybook/builder-webpack5': 8.5.3(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) - '@storybook/preset-react-webpack': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) - '@storybook/react': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.0.4) + '@storybook/builder-webpack5': 8.5.3(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(storybook@8.5.3(prettier@2.8.8))(typescript@5.9.0-dev.20250404) + '@storybook/preset-react-webpack': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.9.0-dev.20250404) + '@storybook/react': 8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.9.0-dev.20250404) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.5.3(prettier@2.8.8) optionalDependencies: - typescript: 5.0.4 + typescript: 5.9.0-dev.20250404 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13139,6 +13164,21 @@ snapshots: '@storybook/test': 8.5.3(storybook@8.5.3(prettier@2.8.8)) typescript: 5.0.4 + '@storybook/react@8.5.3(@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8))(typescript@5.9.0-dev.20250404)': + dependencies: + '@storybook/components': 8.5.3(storybook@8.5.3(prettier@2.8.8)) + '@storybook/global': 5.0.0 + '@storybook/manager-api': 8.5.3(storybook@8.5.3(prettier@2.8.8)) + '@storybook/preview-api': 8.5.3(storybook@8.5.3(prettier@2.8.8)) + '@storybook/react-dom-shim': 8.5.3(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.5.3(prettier@2.8.8)) + '@storybook/theming': 8.5.3(storybook@8.5.3(prettier@2.8.8)) + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + storybook: 8.5.3(prettier@2.8.8) + optionalDependencies: + '@storybook/test': 8.5.3(storybook@8.5.3(prettier@2.8.8)) + typescript: 5.9.0-dev.20250404 + '@storybook/test@8.5.3(storybook@8.5.3(prettier@2.8.8))': dependencies: '@storybook/csf': 0.1.12 @@ -13242,12 +13282,12 @@ snapshots: '@svgr/babel-plugin-transform-react-native-svg': 8.1.0(@babel/core@7.24.3) '@svgr/babel-plugin-transform-svg-component': 8.0.0(@babel/core@7.24.3) - '@svgr/cli@8.0.1(typescript@5.0.4)': + '@svgr/cli@8.0.1(typescript@5.9.0-dev.20250404)': dependencies: - '@svgr/core': 8.0.0(typescript@5.0.4) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) - '@svgr/plugin-prettier': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404)) + '@svgr/plugin-prettier': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404) camelcase: 6.3.0 chalk: 4.1.2 commander: 9.5.0 @@ -13266,23 +13306,23 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/core@8.0.0(typescript@5.0.4)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250404)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.0.4) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250404) snake-case: 3.0.4 transitivePeerDependencies: - supports-color - typescript - '@svgr/core@8.1.0(typescript@5.0.4)': + '@svgr/core@8.1.0(typescript@5.9.0-dev.20250404)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.1.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.0.4) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250404) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13306,51 +13346,51 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0(typescript@5.0.4))': + '@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0(typescript@5.9.0-dev.20250404))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.1.0(@babel/core@7.24.3) - '@svgr/core': 8.1.0(typescript@5.0.4) + '@svgr/core': 8.1.0(typescript@5.9.0-dev.20250404) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: - supports-color - '@svgr/plugin-prettier@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))': + '@svgr/plugin-prettier@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))': dependencies: - '@svgr/core': 8.0.0(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) deepmerge: 4.3.1 prettier: 2.8.8 - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404)': dependencies: - '@svgr/core': 8.0.0(typescript@5.0.4) - cosmiconfig: 8.3.6(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250404) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.1.0(@svgr/core@8.1.0(typescript@5.0.4))(typescript@5.0.4)': + '@svgr/plugin-svgo@8.1.0(@svgr/core@8.1.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404)': dependencies: - '@svgr/core': 8.1.0(typescript@5.0.4) - cosmiconfig: 8.3.6(typescript@5.0.4) + '@svgr/core': 8.1.0(typescript@5.9.0-dev.20250404) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250404) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: - typescript - '@svgr/rollup@8.1.0(rollup@4.16.1)(typescript@5.0.4)': + '@svgr/rollup@8.1.0(rollup@4.16.1)(typescript@5.9.0-dev.20250404)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) @@ -13358,24 +13398,24 @@ snapshots: '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) '@rollup/pluginutils': 5.0.2(rollup@4.16.1) - '@svgr/core': 8.1.0(typescript@5.0.4) - '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@5.0.4)) - '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0(typescript@5.0.4))(typescript@5.0.4) + '@svgr/core': 8.1.0(typescript@5.9.0-dev.20250404) + '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@5.9.0-dev.20250404)) + '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404) transitivePeerDependencies: - rollup - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.0.4)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250404)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.0.4) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404) transitivePeerDependencies: - supports-color - typescript @@ -14647,6 +14687,15 @@ snapshots: optionalDependencies: typescript: 5.0.4 + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250404): + dependencies: + import-fresh: 3.3.0 + js-yaml: 4.1.0 + parse-json: 5.2.0 + path-type: 4.0.0 + optionalDependencies: + typescript: 5.9.0-dev.20250404 + create-require@1.1.1: {} cross-spawn-async@2.2.5: @@ -14996,6 +15045,12 @@ snapshots: dotenv@16.4.7: {} + downlevel-dts@0.11.0: + dependencies: + semver: 7.6.3 + shelljs: 0.8.5 + typescript: 5.9.0-dev.20250404 + duplexer2@0.1.4: dependencies: readable-stream: 2.3.8 @@ -15611,7 +15666,7 @@ snapshots: cross-spawn: 7.0.6 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250404)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15625,7 +15680,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.0.4 + typescript: 5.9.0-dev.20250404 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.18.19) form-data@2.5.1: @@ -15960,6 +16015,8 @@ snapshots: hasown: 2.0.2 side-channel: 1.0.6 + interpret@1.4.0: {} + invariant@2.2.4: dependencies: loose-envify: 1.4.0 @@ -16255,16 +16312,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16339,7 +16396,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16365,7 +16422,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16633,12 +16690,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -18019,9 +18076,9 @@ snapshots: range-parser@1.2.1: {} - react-docgen-typescript@2.2.2(typescript@5.0.4): + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250404): dependencies: - typescript: 5.0.4 + typescript: 5.9.0-dev.20250404 react-docgen@7.0.3: dependencies: @@ -18224,6 +18281,10 @@ snapshots: tiny-invariant: 1.3.3 tslib: 2.6.2 + rechoir@0.6.2: + dependencies: + resolve: 1.22.10 + redent@3.0.0: dependencies: indent-string: 4.0.0 @@ -18563,6 +18624,12 @@ snapshots: shell-quote@1.8.1: {} + shelljs@0.8.5: + dependencies: + glob: 7.2.3 + interpret: 1.4.0 + rechoir: 0.6.2 + side-channel@1.0.6: dependencies: call-bind: 1.0.7 @@ -18970,7 +19037,27 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250404): + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.11 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 20.17.12 + acorn: 8.14.0 + acorn-walk: 8.3.3 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.9.0-dev.20250404 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + optionalDependencies: + '@swc/core': 1.4.2(@swc/helpers@0.5.1) + + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -18984,7 +19071,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.0.4 + typescript: 5.9.0-dev.20250404 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19113,6 +19200,8 @@ snapshots: typescript@5.0.4: {} + typescript@5.9.0-dev.20250404: {} + unbox-primitive@1.0.2: dependencies: call-bind: 1.0.7 diff --git a/tools/build/package.json b/tools/build/package.json index ee7dd84203..9c57988200 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -35,6 +35,7 @@ "@types/fs-extra": "11.0.1", "chalk": "4.1.2", "cross-spawn": "7.0.3", + "downlevel-dts": "^0.11.0", "fs-extra": "11.1.1", "glob": "10.3.12", "lodash": "4.17.21", diff --git a/tools/build/src/typescript/build-ts.ts b/tools/build/src/typescript/build-ts.ts index 01e10f5536..3f2e7890b6 100644 --- a/tools/build/src/typescript/build-ts.ts +++ b/tools/build/src/typescript/build-ts.ts @@ -13,7 +13,6 @@ interface BuildTypescriptOptions { /** * Whether to build for production - * * This builds all TS downlevel targets */ production?: boolean; @@ -36,7 +35,6 @@ export function buildTypescript( } verbose && console.log(chalk.blue.bold('Building TypeScript')); - verbose && console.log(chalk.gray(JSON.stringify(options, null, 2))); // Any additional options passed in via the CLI const cliCompilerOptions = parsePassThruOptions(passThru); @@ -63,10 +61,58 @@ export function buildTypescript( if (options?.production) { verbose && console.log(chalk.blue.bold('Building TypeScript for production')); - downlevelDts({ verbose, target: '3.4' }); - downlevelDts({ verbose, target: '4.9' }); + + const packageJson = fse.readJSONSync( + path.join(packageDir, 'package.json'), + 'utf-8', + ); + const typesVersions = packageJson?.typesVersions; + const downlevelVersions = getTypeVersions(typesVersions); + + if (downlevelVersions) { + downlevelVersions.forEach(target => { + downlevelDts({ verbose, target }); + }); + } else { + verbose && + console.log(chalk.yellow('No typesVersions found in package.json')); + } } // Exit with appropriate code process.exit(exitStatus); } + +/** + * Extracts TypeScript versions from the typesVersions field in package.json + * and returns an array of version numbers without the 'ts' prefix. + * @returns + */ +const getTypeVersions = (typesVersions?: { + [target: string]: { + [files: string]: string[]; + }; +}): Array | undefined => { + if (!typesVersions || typeof typesVersions !== 'object') return; + + const versions: Array = []; + + Object.entries(typesVersions).forEach(([_versionRange, pathMappings]) => { + // Get the output directory from the path mappings + // Typical format is { '*': ['ts3.4/*'] } + if (!pathMappings || typeof pathMappings !== 'object') return; + + const wildcardMapping = pathMappings['*']; + if (!Array.isArray(wildcardMapping) || wildcardMapping.length === 0) return; + + // Extract outputDir from format like 'ts3.4/*' + const outputDirMatch = wildcardMapping[0].match(/^ts([\d.]+)\/\*/); + if (!outputDirMatch || !outputDirMatch[1]) return; + + // Get just the version number without the 'ts' prefix + const versionNumber = outputDirMatch[1]; + versions.push(versionNumber); + }); + + return versions; +}; diff --git a/tools/build/src/typescript/downlevel-dts.ts b/tools/build/src/typescript/downlevel-dts.ts index 87f4f4a77d..d1d46a4f5f 100644 --- a/tools/build/src/typescript/downlevel-dts.ts +++ b/tools/build/src/typescript/downlevel-dts.ts @@ -28,8 +28,11 @@ export function downlevelDts(options?: DownlevelDtsOptions): void { const typesDirPath = path.resolve(packageDir, 'dist'); // Default output directory - const defaultOutDir = `dist/ts${target}`; - const outputDirPath = path.resolve(packageDir, outDir ?? defaultOutDir); + const defaultOutDir = `ts${target}`; + const outputDirPath = path.resolve( + packageDir, + `dist/${outDir ?? defaultOutDir}`, + ); // Ensure types directory exists if (!fse.existsSync(typesDirPath)) { @@ -39,37 +42,26 @@ export function downlevelDts(options?: DownlevelDtsOptions): void { verbose && console.log( - chalk.blue(`Downleveling TypeScript declarations to TS ${target}`), + chalk.blue.bold(`Downleveling TypeScript declarations to TS ${target}`), ); verbose && console.log(chalk.gray(`Input: ${typesDirPath}`)); verbose && console.log(chalk.gray(`Output: ${outputDirPath}`)); try { - // Ensure downlevel-dts is installed - verbose && console.log(chalk.blueBright('Checking for downlevel-dts...')); - - const checkResult = checkForDownlevelDts(); - - if (checkResult.status !== 0) { - verbose && - console.log(chalk.yellow('downlevel-dts not found, installing...')); - - const installResult = installDownlevelDts(); - - if (installResult.status !== 0) { - throw new Error( - `Failed to install downlevel-dts, exit code: ${installResult.status}`, - ); - } - } - // Run downlevel-dts - const args = ['downlevel-dts', typesDirPath, outputDirPath, '--to', target]; - - verbose && console.log(chalk.gray(`Running: npx ${args.join(' ')}`)); - - const result = spawnSync('npx', args, { - stdio: verbose ? 'inherit' : 'pipe', + const args = [ + 'exec', + 'downlevel-dts', + typesDirPath, + outputDirPath, + '--to', + target, + ]; + + verbose && console.log(chalk.gray(`Running: pnpm ${args.join(' ')}`)); + + const result = spawnSync('pnpm', args, { + stdio: verbose ? 'inherit' : 'ignore', }); if (result.status !== 0) { @@ -85,12 +77,4 @@ export function downlevelDts(options?: DownlevelDtsOptions): void { } catch (error: any) { throw new Error(`Error downleveling declarations: ${error.message}`); } - - function checkForDownlevelDts() { - return spawnSync('npx', ['--no-install', 'downlevel-dts', '--version']); - } - - function installDownlevelDts() { - return spawnSync('npm', ['install', '--no-save', 'downlevel-dts']); - } } diff --git a/tools/cli/src/index.ts b/tools/cli/src/index.ts index 8b1056b94d..ad10bcccde 100644 --- a/tools/cli/src/index.ts +++ b/tools/cli/src/index.ts @@ -217,6 +217,11 @@ cli .command('build-package') .description('Builds a package') .option('-v --verbose', 'Prints additional information to the console', false) + .option( + '-p --production', + 'Whether to build for production. This builds all TS downlevel targets', + false, + ) .action(buildPackage); cli .command('build-ts') From 8afa68790430d882c9c18390726db9ba1517f14e Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 18:29:43 -0400 Subject: [PATCH 009/123] use --downlevel flag --- tools/build/src/typescript/build-ts.ts | 64 ++----------------- .../{ => downlevel}/downlevel-dts.ts | 0 .../typescript/downlevel/getTypeVersions.ts | 33 ++++++++++ tools/build/src/typescript/downlevel/index.ts | 34 ++++++++++ tools/cli/src/index.ts | 9 +-- 5 files changed, 76 insertions(+), 64 deletions(-) rename tools/build/src/typescript/{ => downlevel}/downlevel-dts.ts (100%) create mode 100644 tools/build/src/typescript/downlevel/getTypeVersions.ts create mode 100644 tools/build/src/typescript/downlevel/index.ts diff --git a/tools/build/src/typescript/build-ts.ts b/tools/build/src/typescript/build-ts.ts index 3f2e7890b6..94b3e4e42d 100644 --- a/tools/build/src/typescript/build-ts.ts +++ b/tools/build/src/typescript/build-ts.ts @@ -3,19 +3,18 @@ import chalk from 'chalk'; import fse from 'fs-extra'; import path from 'path'; import ts from 'typescript'; -import { downlevelDts } from './downlevel-dts'; import { makeTypescriptDiagnosticReporter } from './makeTypescriptDiagnosticReporter'; import { parsePassThruOptions } from './parsePassThruOptions'; +import { runTypescriptDownlevel } from './downlevel'; interface BuildTypescriptOptions { /** Whether to print verbose output*/ verbose?: boolean; /** - * Whether to build for production - * This builds all TS downlevel targets + * Builds all TS downlevel targets based on the typesVersions field in package.json */ - production?: boolean; + downlevel?: boolean; } /** @@ -58,61 +57,12 @@ export function buildTypescript( // Build the project const exitStatus = builder.build(); - if (options?.production) { - verbose && - console.log(chalk.blue.bold('Building TypeScript for production')); - - const packageJson = fse.readJSONSync( - path.join(packageDir, 'package.json'), - 'utf-8', - ); - const typesVersions = packageJson?.typesVersions; - const downlevelVersions = getTypeVersions(typesVersions); - - if (downlevelVersions) { - downlevelVersions.forEach(target => { - downlevelDts({ verbose, target }); - }); - } else { - verbose && - console.log(chalk.yellow('No typesVersions found in package.json')); - } + if (options?.downlevel) { + runTypescriptDownlevel({ + verbose, + }); } // Exit with appropriate code process.exit(exitStatus); } - -/** - * Extracts TypeScript versions from the typesVersions field in package.json - * and returns an array of version numbers without the 'ts' prefix. - * @returns - */ -const getTypeVersions = (typesVersions?: { - [target: string]: { - [files: string]: string[]; - }; -}): Array | undefined => { - if (!typesVersions || typeof typesVersions !== 'object') return; - - const versions: Array = []; - - Object.entries(typesVersions).forEach(([_versionRange, pathMappings]) => { - // Get the output directory from the path mappings - // Typical format is { '*': ['ts3.4/*'] } - if (!pathMappings || typeof pathMappings !== 'object') return; - - const wildcardMapping = pathMappings['*']; - if (!Array.isArray(wildcardMapping) || wildcardMapping.length === 0) return; - - // Extract outputDir from format like 'ts3.4/*' - const outputDirMatch = wildcardMapping[0].match(/^ts([\d.]+)\/\*/); - if (!outputDirMatch || !outputDirMatch[1]) return; - - // Get just the version number without the 'ts' prefix - const versionNumber = outputDirMatch[1]; - versions.push(versionNumber); - }); - - return versions; -}; diff --git a/tools/build/src/typescript/downlevel-dts.ts b/tools/build/src/typescript/downlevel/downlevel-dts.ts similarity index 100% rename from tools/build/src/typescript/downlevel-dts.ts rename to tools/build/src/typescript/downlevel/downlevel-dts.ts diff --git a/tools/build/src/typescript/downlevel/getTypeVersions.ts b/tools/build/src/typescript/downlevel/getTypeVersions.ts new file mode 100644 index 0000000000..47e32d4fac --- /dev/null +++ b/tools/build/src/typescript/downlevel/getTypeVersions.ts @@ -0,0 +1,33 @@ +/** + * Extracts TypeScript versions from the typesVersions field in package.json + * and returns an array of version numbers without the 'ts' prefix. + * @returns + */ +const getTypeVersions = (typesVersions?: { + [target: string]: { + [files: string]: string[]; + }; +}): Array | undefined => { + if (!typesVersions || typeof typesVersions !== 'object') return; + + const versions: Array = []; + + Object.entries(typesVersions).forEach(([_versionRange, pathMappings]) => { + // Get the output directory from the path mappings + // Typical format is { '*': ['ts3.4/*'] } + if (!pathMappings || typeof pathMappings !== 'object') return; + + const wildcardMapping = pathMappings['*']; + if (!Array.isArray(wildcardMapping) || wildcardMapping.length === 0) return; + + // Extract outputDir from format like 'ts3.4/*' + const outputDirMatch = wildcardMapping[0].match(/^ts([\d.]+)\/\*/); + if (!outputDirMatch || !outputDirMatch[1]) return; + + // Get just the version number without the 'ts' prefix + const versionNumber = outputDirMatch[1]; + versions.push(versionNumber); + }); + + return versions; +}; diff --git a/tools/build/src/typescript/downlevel/index.ts b/tools/build/src/typescript/downlevel/index.ts new file mode 100644 index 0000000000..118c6aa168 --- /dev/null +++ b/tools/build/src/typescript/downlevel/index.ts @@ -0,0 +1,34 @@ +import chalk from 'chalk'; +import path from 'path'; +import fse from 'fs-extra'; + +import { downlevelDts } from './downlevel-dts'; + +interface DownlevelCommandOptions { + verbose?: boolean; +} + +/** + * Downlevel TypeScript definitions + * based on the typesVersions field in package.json. + */ +export function runTypescriptDownlevel({ verbose }: DownlevelCommandOptions) { + const packageDir = process.cwd(); + verbose && console.log(chalk.blue.bold('Building TypeScript for production')); + + const packageJson = fse.readJSONSync( + path.join(packageDir, 'package.json'), + 'utf-8', + ); + const typesVersions = packageJson?.typesVersions; + const downlevelVersions = getTypeVersions(typesVersions); + + if (downlevelVersions) { + downlevelVersions.forEach(target => { + downlevelDts({ verbose, target }); + }); + } else { + verbose && + console.log(chalk.yellow('No typesVersions found in package.json')); + } +} diff --git a/tools/cli/src/index.ts b/tools/cli/src/index.ts index ad10bcccde..72a89fb165 100644 --- a/tools/cli/src/index.ts +++ b/tools/cli/src/index.ts @@ -217,11 +217,6 @@ cli .command('build-package') .description('Builds a package') .option('-v --verbose', 'Prints additional information to the console', false) - .option( - '-p --production', - 'Whether to build for production. This builds all TS downlevel targets', - false, - ) .action(buildPackage); cli .command('build-ts') @@ -229,8 +224,8 @@ cli .argument('[pass-through...]', 'Pass-through options for `tsc`') .option('-v --verbose', 'Prints additional information to the console', false) .option( - '-p --production', - 'Whether to build for production. This builds all TS downlevel targets', + '--downlevel', + 'Builds all TS downlevel targets based on the typesVersions field in package.json', false, ) .allowUnknownOption(true) From 5f9000f372462b0015d3cada640fc38878e76b5d Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 18:42:03 -0400 Subject: [PATCH 010/123] add ts version override --- package.json | 5 +- pnpm-lock.yaml | 107 ++++++++++++++++--------- tools/build/package.json | 3 +- tools/build/src/typescript/build-ts.ts | 3 +- 4 files changed, 78 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index c42e838d22..43dd50be51 100644 --- a/package.json +++ b/package.json @@ -72,10 +72,11 @@ }, "pnpm": { "overrides": { + "@testing-library/dom": "9.3.4", + "@testing-library/user-event": "13.5.0", "caniuse-lite": "^1.0.30001585", "jackspeak": "2.1.1", - "@testing-library/dom": "9.3.4", - "@testing-library/user-event": "13.5.0" + "typescript": "~5.0.4" } }, "lg": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b54cd7c329..6d6e20c1bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,10 +5,11 @@ settings: excludeLinksFromLockfile: false overrides: - caniuse-lite: ^1.0.30001585 - jackspeak: 2.1.1 '@testing-library/dom': 9.3.4 '@testing-library/user-event': 13.5.0 + caniuse-lite: ^1.0.30001585 + jackspeak: 2.1.1 + typescript: ~5.0.4 importers: @@ -2947,10 +2948,10 @@ importers: version: 8.0.0(@babel/core@7.24.3) '@svgr/cli': specifier: 8.0.1 - version: 8.0.1(typescript@5.9.0-dev.20250404) + version: 8.0.1(typescript@5.0.4) '@svgr/rollup': specifier: ^8.1.0 - version: 8.1.0(rollup@4.16.1)(typescript@5.9.0-dev.20250404) + version: 8.1.0(rollup@4.16.1)(typescript@5.0.4) '@types/cross-spawn': specifier: 6.0.2 version: 6.0.2 @@ -2977,7 +2978,7 @@ importers: version: 4.17.21 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.9.0-dev.20250404) + version: 2.2.2(typescript@5.0.4) rollup: specifier: 4.16.1 version: 4.16.1 @@ -2994,8 +2995,8 @@ importers: specifier: ^2.0.6 version: 2.0.6 typescript: - specifier: ~5.0.0 - version: 5.9.0-dev.20250404 + specifier: ~5.0.4 + version: 5.0.4 tools/cli: dependencies: @@ -3219,7 +3220,7 @@ importers: specifier: 2.8.8 version: 2.8.8 typescript: - specifier: ~5.0.0 + specifier: ~5.0.4 version: 5.0.4 tools/meta: @@ -5505,7 +5506,7 @@ packages: '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0': resolution: {integrity: sha512-KUqXC3oa9JuQ0kZJLBhVdS4lOneKTOopnNBK4tUAgoxWQ3u/IjzdueZjFr7gyBrXMoU6duutk3RQR9u8ZpYJ4Q==} peerDependencies: - typescript: '>= 4.x' + typescript: ~5.0.4 webpack: '>= 4' '@storybook/react-dom-shim@8.5.3': @@ -5522,7 +5523,7 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta storybook: ^8.5.3 - typescript: '>= 4.2.x' + typescript: ~5.0.4 peerDependenciesMeta: typescript: optional: true @@ -5535,7 +5536,7 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta storybook: ^8.5.3 - typescript: '>= 4.2.x' + typescript: ~5.0.4 peerDependenciesMeta: '@storybook/test': optional: true @@ -6850,7 +6851,7 @@ packages: resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==} engines: {node: '>=14'} peerDependencies: - typescript: '>=4.9.5' + typescript: ~5.0.4 peerDependenciesMeta: typescript: optional: true @@ -7614,7 +7615,7 @@ packages: resolution: {integrity: sha512-mX3qW3idpueT2klaQXBzrIM/pHw+T0B/V9KHEvNrqijTq9NFnMZU6oreVxDYcf33P8a5cW+67PjodNHthGnNVg==} engines: {node: '>=12.13.0', yarn: '>=1.0.0'} peerDependencies: - typescript: '>3.6.0' + typescript: ~5.0.4 webpack: ^5.11.0 form-data@2.5.1: @@ -9429,7 +9430,7 @@ packages: react-docgen-typescript@2.2.2: resolution: {integrity: sha512-tvg2ZtOpOi6QDwsb3GZhOjDkkX0h8Z2gipvTg6OVMUyoYoURhEiRNePT8NZItTVCDh39JJHnLdfCOkzoLbFnTg==} peerDependencies: - typescript: '>= 4.3.x' + typescript: ~5.0.4 react-docgen@7.0.3: resolution: {integrity: sha512-i8aF1nyKInZnANZ4uZrH49qn1paRgBZ7wZiCNBMnenlPzEv0mRl+ShpTVEI6wZNl8sSc79xZkivtgLKQArcanQ==} @@ -10232,7 +10233,7 @@ packages: resolution: {integrity: sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==} engines: {node: '>=16'} peerDependencies: - typescript: '>=4.2.0' + typescript: ~5.0.4 ts-dedent@2.2.0: resolution: {integrity: sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==} @@ -10245,7 +10246,7 @@ packages: '@swc/core': '>=1.2.50' '@swc/wasm': '>=1.2.50' '@types/node': '*' - typescript: '>=2.7' + typescript: ~5.0.4 peerDependenciesMeta: '@swc/core': optional: true @@ -10272,7 +10273,7 @@ packages: resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} peerDependencies: - typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' + typescript: ~5.0.4 tty-browserify@0.0.1: resolution: {integrity: sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==} @@ -13282,12 +13283,12 @@ snapshots: '@svgr/babel-plugin-transform-react-native-svg': 8.1.0(@babel/core@7.24.3) '@svgr/babel-plugin-transform-svg-component': 8.0.0(@babel/core@7.24.3) - '@svgr/cli@8.0.1(typescript@5.9.0-dev.20250404)': + '@svgr/cli@8.0.1(typescript@5.0.4)': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404)) - '@svgr/plugin-prettier': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404) + '@svgr/core': 8.0.0(typescript@5.0.4) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) + '@svgr/plugin-prettier': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4) camelcase: 6.3.0 chalk: 4.1.2 commander: 9.5.0 @@ -13306,6 +13307,17 @@ snapshots: transitivePeerDependencies: - supports-color + '@svgr/core@8.0.0(typescript@5.0.4)': + dependencies: + '@babel/core': 7.24.3 + '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) + camelcase: 6.3.0 + cosmiconfig: 8.3.6(typescript@5.0.4) + snake-case: 3.0.4 + transitivePeerDependencies: + - supports-color + - typescript + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250404)': dependencies: '@babel/core': 7.24.3 @@ -13317,12 +13329,12 @@ snapshots: - supports-color - typescript - '@svgr/core@8.1.0(typescript@5.9.0-dev.20250404)': + '@svgr/core@8.1.0(typescript@5.0.4)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.1.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250404) + cosmiconfig: 8.3.6(typescript@5.0.4) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13346,6 +13358,16 @@ snapshots: transitivePeerDependencies: - supports-color + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))': + dependencies: + '@babel/core': 7.24.3 + '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) + '@svgr/core': 8.0.0(typescript@5.0.4) + '@svgr/hast-util-to-babel-ast': 8.0.0 + svg-parser: 2.0.4 + transitivePeerDependencies: + - supports-color + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))': dependencies: '@babel/core': 7.24.3 @@ -13356,22 +13378,31 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0(typescript@5.9.0-dev.20250404))': + '@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0(typescript@5.0.4))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.1.0(@babel/core@7.24.3) - '@svgr/core': 8.1.0(typescript@5.9.0-dev.20250404) + '@svgr/core': 8.1.0(typescript@5.0.4) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: - supports-color - '@svgr/plugin-prettier@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))': + '@svgr/plugin-prettier@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) + '@svgr/core': 8.0.0(typescript@5.0.4) deepmerge: 4.3.1 prettier: 2.8.8 + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4)': + dependencies: + '@svgr/core': 8.0.0(typescript@5.0.4) + cosmiconfig: 8.3.6(typescript@5.0.4) + deepmerge: 4.3.1 + svgo: 3.0.2 + transitivePeerDependencies: + - typescript + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404)': dependencies: '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) @@ -13381,16 +13412,16 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.1.0(@svgr/core@8.1.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404)': + '@svgr/plugin-svgo@8.1.0(@svgr/core@8.1.0(typescript@5.0.4))(typescript@5.0.4)': dependencies: - '@svgr/core': 8.1.0(typescript@5.9.0-dev.20250404) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250404) + '@svgr/core': 8.1.0(typescript@5.0.4) + cosmiconfig: 8.3.6(typescript@5.0.4) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: - typescript - '@svgr/rollup@8.1.0(rollup@4.16.1)(typescript@5.9.0-dev.20250404)': + '@svgr/rollup@8.1.0(rollup@4.16.1)(typescript@5.0.4)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) @@ -13398,9 +13429,9 @@ snapshots: '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) '@rollup/pluginutils': 5.0.2(rollup@4.16.1) - '@svgr/core': 8.1.0(typescript@5.9.0-dev.20250404) - '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@5.9.0-dev.20250404)) - '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404) + '@svgr/core': 8.1.0(typescript@5.0.4) + '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@5.0.4)) + '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0(typescript@5.0.4))(typescript@5.0.4) transitivePeerDependencies: - rollup - supports-color @@ -15049,7 +15080,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.9.0-dev.20250404 + typescript: 5.0.4 duplexer2@0.1.4: dependencies: @@ -18076,6 +18107,10 @@ snapshots: range-parser@1.2.1: {} + react-docgen-typescript@2.2.2(typescript@5.0.4): + dependencies: + typescript: 5.0.4 + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250404): dependencies: typescript: 5.9.0-dev.20250404 diff --git a/tools/build/package.json b/tools/build/package.json index 9c57988200..1d36e20980 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -43,7 +43,8 @@ "rollup": "4.16.1", "rollup-plugin-bundle-stats": "^4.18.2", "rollup-plugin-node-externals": "7.1.1", - "rollup-plugin-polyfill-node": "0.13.0" + "rollup-plugin-polyfill-node": "0.13.0", + "typescript": "~5.0.0" }, "peerDependencies": { "@babel/core": "7.24.0", diff --git a/tools/build/src/typescript/build-ts.ts b/tools/build/src/typescript/build-ts.ts index 94b3e4e42d..f6ea3a4120 100644 --- a/tools/build/src/typescript/build-ts.ts +++ b/tools/build/src/typescript/build-ts.ts @@ -33,7 +33,8 @@ export function buildTypescript( process.exit(1); } - verbose && console.log(chalk.blue.bold('Building TypeScript')); + verbose && + console.log(chalk.blue.bold(`Building TypeScript (v${ts.version})`)); // Any additional options passed in via the CLI const cliCompilerOptions = parsePassThruOptions(passThru); From 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 18:45:02 -0400 Subject: [PATCH 011/123] add --downlevel on prepublish --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 43dd50be51..4e4b1d16b3 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "fix": "lg lint --fix", "link": "lg link", "lint": "lg lint", - "prepublishOnly": "pnpm run build && turbo run docs", + "prepublishOnly": "pnpm run build && pnpm run build:ts --downlevel && turbo run docs", "publish": "pnpm changeset publish --public", "slackbot": "lg slackbot release", "start": "npx storybook dev -p 9001 --no-version-updates --no-open", From af15a4a785f628d449adfecdec572b032a44d19a Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 18:48:06 -0400 Subject: [PATCH 012/123] adds changesets --- .changeset/build-typescript-5.md | 6 ++++++ .changeset/cli-ts-downlevel.md | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 .changeset/build-typescript-5.md create mode 100644 .changeset/cli-ts-downlevel.md diff --git a/.changeset/build-typescript-5.md b/.changeset/build-typescript-5.md new file mode 100644 index 0000000000..9bee1c1a4c --- /dev/null +++ b/.changeset/build-typescript-5.md @@ -0,0 +1,6 @@ +--- +'@lg-tools/build': minor +--- + +- Upgrades to TS 5.0. +- Adds `--downlevel` option for `build-ts`. This option reads a package's package.json and exports downleveled `*.d.ts` files for all targets listed in `"typeVersions"` diff --git a/.changeset/cli-ts-downlevel.md b/.changeset/cli-ts-downlevel.md new file mode 100644 index 0000000000..7e6ea17146 --- /dev/null +++ b/.changeset/cli-ts-downlevel.md @@ -0,0 +1,5 @@ +--- +'@lg-tools/cli': minor +--- + +Adds `--downlevel` option for `build-ts`. This option reads a package's package.json and exports downleveled `*.d.ts` files for all targets listed in `"typeVersions"` From 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 3 Apr 2025 16:53:36 -0400 Subject: [PATCH 013/123] Update InlineCode.tsx --- packages/typography/src/InlineCode/InlineCode.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/typography/src/InlineCode/InlineCode.tsx b/packages/typography/src/InlineCode/InlineCode.tsx index df630d0617..c6a29b8d2a 100644 --- a/packages/typography/src/InlineCode/InlineCode.tsx +++ b/packages/typography/src/InlineCode/InlineCode.tsx @@ -38,11 +38,8 @@ const InlineCode = InferredPolymorphic( const baseFontSize = useUpdatedBaseFontSize(baseFontSizeOverride); const { Component } = useInferredPolymorphic(as, rest, 'code'); - const whiteSpace = - ((typeof children === 'string' && children.match(/./gu)?.length) ?? 0) <= - 30 - ? nowrap - : normal; + const charsCount = children.match(/./gu)?.length ?? 0; + const whiteSpace = charsCount <= 30 ? nowrap : normal; const needsWrapper = Component !== 'code'; const renderedInlineCode = ( From d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 18:54:13 -0400 Subject: [PATCH 014/123] update packagejsons --- charts/drag-provider/package.json | 2 +- charts/series-provider/package.json | 2 +- chat/avatar/package.json | 7 ++++++- chat/chat-window/package.json | 7 ++++++- chat/input-bar/package.json | 7 ++++++- chat/leafygreen-chat-provider/package.json | 7 ++++++- chat/lg-markdown/package.json | 7 ++++++- chat/message-feed/package.json | 7 ++++++- chat/message-feedback/package.json | 7 ++++++- chat/message-rating/package.json | 7 ++++++- chat/message/package.json | 7 ++++++- chat/title-bar/package.json | 7 ++++++- packages/a11y/package.json | 7 ++++++- packages/avatar/package.json | 7 ++++++- packages/badge/package.json | 7 ++++++- packages/banner/package.json | 7 ++++++- packages/box/package.json | 7 ++++++- packages/button/package.json | 7 ++++++- packages/callout/package.json | 7 ++++++- packages/card/package.json | 7 ++++++- packages/checkbox/package.json | 7 ++++++- packages/code/package.json | 7 ++++++- packages/combobox/package.json | 7 ++++++- packages/confirmation-modal/package.json | 7 ++++++- packages/copyable/package.json | 7 ++++++- packages/emotion/package.json | 7 ++++++- packages/empty-state/package.json | 7 ++++++- packages/expandable-card/package.json | 7 ++++++- packages/form-footer/package.json | 7 ++++++- packages/guide-cue/package.json | 7 ++++++- packages/hooks/package.json | 7 ++++++- packages/icon-button/package.json | 7 ++++++- packages/icon/package.json | 7 ++++++- packages/inline-definition/package.json | 7 ++++++- packages/input-option/package.json | 7 ++++++- packages/leafygreen-provider/package.json | 7 ++++++- packages/lib/package.json | 6 +++--- packages/loading-indicator/package.json | 7 ++++++- packages/logo/package.json | 7 ++++++- packages/marketing-modal/package.json | 7 ++++++- packages/menu/package.json | 7 ++++++- packages/modal/package.json | 7 ++++++- packages/number-input/package.json | 7 ++++++- packages/pagination/package.json | 7 ++++++- packages/palette/package.json | 7 ++++++- packages/password-input/package.json | 7 ++++++- packages/pipeline/package.json | 7 ++++++- packages/polymorphic/package.json | 7 ++++++- packages/popover/package.json | 7 ++++++- packages/portal/package.json | 7 ++++++- packages/radio-box-group/package.json | 7 ++++++- packages/radio-group/package.json | 7 ++++++- packages/ripple/package.json | 7 ++++++- packages/search-input/package.json | 7 ++++++- packages/segmented-control/package.json | 7 ++++++- packages/select/package.json | 7 ++++++- packages/side-nav/package.json | 7 ++++++- packages/skeleton-loader/package.json | 7 ++++++- packages/split-button/package.json | 7 ++++++- packages/stepper/package.json | 7 ++++++- packages/table/package.json | 7 ++++++- packages/tabs/package.json | 7 ++++++- packages/testing-lib/package.json | 7 ++++++- packages/text-area/package.json | 7 ++++++- packages/text-input/package.json | 7 ++++++- packages/toast/package.json | 7 ++++++- packages/toggle/package.json | 7 ++++++- packages/tokens/package.json | 7 ++++++- packages/tooltip/package.json | 7 ++++++- packages/typography/package.json | 7 ++++++- 70 files changed, 407 insertions(+), 72 deletions(-) diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index e2f94b1a09..658f8e2730 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -33,4 +33,4 @@ "devDependencies": { "@storybook/test": "8.5.3" } -} \ No newline at end of file +} diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index 17d15e450b..a6b555ee26 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -24,4 +24,4 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" } -} \ No newline at end of file +} diff --git a/chat/avatar/package.json b/chat/avatar/package.json index 592d22dd9d..fe97546201 100644 --- a/chat/avatar/package.json +++ b/chat/avatar/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index 28c34d1bce..a6a798e3a9 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index 641137548b..f0cac24cbd 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index 31a3923019..7cb2e33ff2 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index 3f09a6cced..4b789d6531 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index cedd039782..c29fd842dd 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index 7d80507727..98ccccd24e 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index ef2886e9ac..cc7094a856 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/message/package.json b/chat/message/package.json index 198e756ea3..f52253856b 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index df5ee0e689..785447edf4 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 7b690501ab..93ac204d57 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/avatar/package.json b/packages/avatar/package.json index f1c92e9617..e551ab81ee 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/badge/package.json b/packages/badge/package.json index fe2eba011d..75d90339ec 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/banner/package.json b/packages/banner/package.json index e52997bd12..7ac9771b66 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/box/package.json b/packages/box/package.json index cfd4328a7b..c6f8bc338b 100644 --- a/packages/box/package.json +++ b/packages/box/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/button/package.json b/packages/button/package.json index 76f4bf2222..8fba3e8cdf 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/callout/package.json b/packages/callout/package.json index 4c877be2af..8ef7743809 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/card/package.json b/packages/card/package.json index e90f6cdb1b..6085304701 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index 4eb375ad9e..8a36f9996b 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/code/package.json b/packages/code/package.json index a896381343..48cdd8fa4f 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/combobox/package.json b/packages/combobox/package.json index e223a9ef79..fdedbf56d0 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index efd3632da8..d57ed5f41e 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/copyable/package.json b/packages/copyable/package.json index 6267a0d7ce..0b441b2adc 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 133eaaf9e0..cb76457e53 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index 1fc5f89da2..684031867a 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index eccb7e7714..9444c110c6 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index 0cabe992bb..4d033624a1 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index 992aef4a04..9b4e0b61c9 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/hooks/package.json b/packages/hooks/package.json index e2dfbe2058..c307d59d00 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index bc3b99bd26..f7796d1c1f 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/icon/package.json b/packages/icon/package.json index 5b439718e7..2b5fe0b049 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index 3cc80898e3..c765f07830 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/input-option/package.json b/packages/input-option/package.json index 940cdd0d22..46ac7fe335 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index d443b5ac1d..b77750535e 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/lib/package.json b/packages/lib/package.json index 8cf4ce4bad..d2e543d86d 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -8,12 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" ] }, - "<=4.9": { + "<5.0": { "*": [ - "ts4.9/*" + "dist/ts4.9/*" ] } }, diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index e4a94565ff..8b35dfb171 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/logo/package.json b/packages/logo/package.json index 4b227545e2..242b17a90f 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index 988f153f45..6f928fa68a 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/menu/package.json b/packages/menu/package.json index 9ab50fb613..4654c29b40 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/modal/package.json b/packages/modal/package.json index 7d658c21fd..dd83618354 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/number-input/package.json b/packages/number-input/package.json index eef83572b4..627e703d51 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/pagination/package.json b/packages/pagination/package.json index 8edf823ce3..7a72b38ae8 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/palette/package.json b/packages/palette/package.json index a091ce3af7..ebcc1fdada 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/password-input/package.json b/packages/password-input/package.json index 1793ff72e2..959133ec09 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index 326e810bde..0f082cae8b 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index 7c0cbf94c7..9c3a57c77a 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/popover/package.json b/packages/popover/package.json index 941d1c73aa..6d0c55dc09 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/portal/package.json b/packages/portal/package.json index 3d8eda830e..4d5d06d1e7 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index c8a925192d..bc2c3a8011 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index b33c6b3fb5..24fcfec569 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 9cff01ff3d..06e60b90e3 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/search-input/package.json b/packages/search-input/package.json index 7ac8259dca..3113e4c7aa 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index a7cef7a06d..b083706dae 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/select/package.json b/packages/select/package.json index 52d4c97ddc..40b7bae87a 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index 3ff73cd1f7..d4e96883a8 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index d63c30ff59..277a777ebd 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/split-button/package.json b/packages/split-button/package.json index 3fbd8183bb..4309f244f4 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/stepper/package.json b/packages/stepper/package.json index 50f4252f5f..f27cc6b5d7 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/table/package.json b/packages/table/package.json index 14fdfe5c69..c42d28f467 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 5127a9af46..78964c1785 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index 496d03f335..fb39081bea 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/text-area/package.json b/packages/text-area/package.json index d0f4a5c2f7..93983c49b8 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/text-input/package.json b/packages/text-input/package.json index f240b4e99f..ffd7709fb3 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/toast/package.json b/packages/toast/package.json index 2f18dfa4eb..f5695257fa 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/toggle/package.json b/packages/toggle/package.json index 6129b78423..ebe90c19fb 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/tokens/package.json b/packages/tokens/package.json index adec06cb89..8b07696494 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index 5480d779c8..8c328b45cc 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/typography/package.json b/packages/typography/package.json index 10cc378d91..c2fdc5fd3a 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, From c1aaa0c370969b3d3b6a19e4292871449a6ac815 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 18:59:21 -0400 Subject: [PATCH 015/123] fix prepublishOnly --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4e4b1d16b3..d246e1200c 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "fix": "lg lint --fix", "link": "lg link", "lint": "lg lint", - "prepublishOnly": "pnpm run build && pnpm run build:ts --downlevel && turbo run docs", + "prepublishOnly": "pnpm run build && pnpm run build:tsc --downlevel && turbo run docs", "publish": "pnpm changeset publish --public", "slackbot": "lg slackbot release", "start": "npx storybook dev -p 9001 --no-version-updates --no-open", From 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 18:59:28 -0400 Subject: [PATCH 016/123] update logging --- tools/build/src/typescript/downlevel/downlevel-dts.ts | 7 +++---- tools/build/src/typescript/downlevel/index.ts | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/build/src/typescript/downlevel/downlevel-dts.ts b/tools/build/src/typescript/downlevel/downlevel-dts.ts index d1d46a4f5f..ee7a9cde40 100644 --- a/tools/build/src/typescript/downlevel/downlevel-dts.ts +++ b/tools/build/src/typescript/downlevel/downlevel-dts.ts @@ -40,10 +40,9 @@ export function downlevelDts(options?: DownlevelDtsOptions): void { process.exit(1); } - verbose && - console.log( - chalk.blue.bold(`Downleveling TypeScript declarations to TS ${target}`), - ); + console.log( + chalk.blue.bold(`Downleveling TypeScript declarations to TS ${target}`), + ); verbose && console.log(chalk.gray(`Input: ${typesDirPath}`)); verbose && console.log(chalk.gray(`Output: ${outputDirPath}`)); diff --git a/tools/build/src/typescript/downlevel/index.ts b/tools/build/src/typescript/downlevel/index.ts index 118c6aa168..8cd8e61636 100644 --- a/tools/build/src/typescript/downlevel/index.ts +++ b/tools/build/src/typescript/downlevel/index.ts @@ -14,7 +14,6 @@ interface DownlevelCommandOptions { */ export function runTypescriptDownlevel({ verbose }: DownlevelCommandOptions) { const packageDir = process.cwd(); - verbose && console.log(chalk.blue.bold('Building TypeScript for production')); const packageJson = fse.readJSONSync( path.join(packageDir, 'package.json'), @@ -24,6 +23,7 @@ export function runTypescriptDownlevel({ verbose }: DownlevelCommandOptions) { const downlevelVersions = getTypeVersions(typesVersions); if (downlevelVersions) { + verbose && console.log(chalk.blue.bold('Downleveling TypeScript')); downlevelVersions.forEach(target => { downlevelDts({ verbose, target }); }); From 90b690130a7f0762812ca746196d33919c87c640 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 19:02:05 -0400 Subject: [PATCH 017/123] Update build-typescript-5.md --- .changeset/build-typescript-5.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/build-typescript-5.md b/.changeset/build-typescript-5.md index 9bee1c1a4c..921cedf7bd 100644 --- a/.changeset/build-typescript-5.md +++ b/.changeset/build-typescript-5.md @@ -3,4 +3,4 @@ --- - Upgrades to TS 5.0. -- Adds `--downlevel` option for `build-ts`. This option reads a package's package.json and exports downleveled `*.d.ts` files for all targets listed in `"typeVersions"` +- Adds `--downlevel` option for `build-ts`. This option reads a package's package.json and exports downleveled `*.d.ts` files for all targets listed in `"typesVersions"`. This uses [downlevel-dts](https://github.com/sandersn/downlevel-dts) under the hood. From 32ecdd90368097a20a3da955e218d43e6495c5ee Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 19:48:18 -0400 Subject: [PATCH 018/123] fix build build scripts --- tools/build/README.md | 2 +- tools/build/bin/build-ts.sh | 6 ++++++ tools/build/package.json | 7 ++++--- tools/build/scripts/build-ts.sh | 4 ++++ tools/build/scripts/build.sh | 4 ++++ tools/build/src/rollup/build-package.ts | 2 +- tools/build/src/typescript/downlevel/getTypeVersions.ts | 2 +- tools/build/src/typescript/downlevel/index.ts | 1 + 8 files changed, 22 insertions(+), 6 deletions(-) create mode 100755 tools/build/bin/build-ts.sh create mode 100755 tools/build/scripts/build-ts.sh create mode 100755 tools/build/scripts/build.sh diff --git a/tools/build/README.md b/tools/build/README.md index dff392023e..699b07fdc8 100644 --- a/tools/build/README.md +++ b/tools/build/README.md @@ -30,6 +30,6 @@ For a package that cli depends on, define the following scripts in its `package. ```json "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" } ``` diff --git a/tools/build/bin/build-ts.sh b/tools/build/bin/build-ts.sh new file mode 100755 index 0000000000..0ec1d20a47 --- /dev/null +++ b/tools/build/bin/build-ts.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Build TypeScript files using the TypeScript CLI directly. +# We build this from a .sh script, since `tsc` doesn't take the same flags as our +# build-ts command. As a result, when trying to build with our custom flags, running this command directly will fail. +tsc --build tsconfig.json +exit 0 \ No newline at end of file diff --git a/tools/build/package.json b/tools/build/package.json index 1d36e20980..c0c12032ea 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -7,13 +7,14 @@ "access": "public" }, "bin": { - "lg-internal-build-package": "./bin/build-package.js" + "lg-internal-build-package": "./bin/build-package.js", + "lg-internal-build-ts": "./bin/build-ts.sh" }, "main": "dist/index.js", "module": "dist/esm/index.js", "scripts": { - "build": "rollup -c ./config/rollup.config.mjs", - "tsc": "tsc --build tsconfig.json" + "build": "scripts/build.sh", + "tsc": "scripts/build-ts.sh" }, "dependencies": { "@babel/core": "7.24.3", diff --git a/tools/build/scripts/build-ts.sh b/tools/build/scripts/build-ts.sh new file mode 100755 index 0000000000..f9fc590656 --- /dev/null +++ b/tools/build/scripts/build-ts.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# lg-build can't use itself as a dependency in the build process +tsc --build tsconfig.json +exit 0 \ No newline at end of file diff --git a/tools/build/scripts/build.sh b/tools/build/scripts/build.sh new file mode 100755 index 0000000000..ef032b8f35 --- /dev/null +++ b/tools/build/scripts/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# lg-build can't use itself as a dependency in the build process +rollup -c ./config/rollup.config.mjs +exit 0 diff --git a/tools/build/src/rollup/build-package.ts b/tools/build/src/rollup/build-package.ts index 448d647809..7cfb5f8e89 100644 --- a/tools/build/src/rollup/build-package.ts +++ b/tools/build/src/rollup/build-package.ts @@ -37,7 +37,7 @@ export function buildPackage({ direct, verbose }: BuildPackageOptions) { if (direct && scopeName !== 'tools') { console.warn( - 'Building package using the `lg-build-package` command directly from `@lg-tools/build`.', + `Building package @${scopeName}/${packageName} using the \`lg-internal-build-package\` command directly from \`@lg-tools/build\`.`, 'Consider using the global `lg build-package` command from `@lg-tools/cli` instead.', ); } diff --git a/tools/build/src/typescript/downlevel/getTypeVersions.ts b/tools/build/src/typescript/downlevel/getTypeVersions.ts index 47e32d4fac..1a420631e9 100644 --- a/tools/build/src/typescript/downlevel/getTypeVersions.ts +++ b/tools/build/src/typescript/downlevel/getTypeVersions.ts @@ -3,7 +3,7 @@ * and returns an array of version numbers without the 'ts' prefix. * @returns */ -const getTypeVersions = (typesVersions?: { +export const getTypeVersions = (typesVersions?: { [target: string]: { [files: string]: string[]; }; diff --git a/tools/build/src/typescript/downlevel/index.ts b/tools/build/src/typescript/downlevel/index.ts index 8cd8e61636..bb79b9b0b0 100644 --- a/tools/build/src/typescript/downlevel/index.ts +++ b/tools/build/src/typescript/downlevel/index.ts @@ -3,6 +3,7 @@ import path from 'path'; import fse from 'fs-extra'; import { downlevelDts } from './downlevel-dts'; +import { getTypeVersions } from './getTypeVersions'; interface DownlevelCommandOptions { verbose?: boolean; From c58669dd2f172655b759be963cade15a95340ff1 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 19:48:31 -0400 Subject: [PATCH 019/123] "tsc": "lg-internal-build-ts" --- packages/testing-lib/package.json | 2 +- tools/cli/package.json | 2 +- tools/codemods/package.json | 2 +- tools/create/package.json | 2 +- tools/install/package.json | 2 +- tools/link/package.json | 2 +- tools/lint/package.json | 2 +- tools/meta/package.json | 2 +- tools/slackbot/package.json | 2 +- tools/storybook-addon/package.json | 2 +- tools/storybook-decorators/package.json | 2 +- tools/test-harnesses/package.json | 2 +- tools/test/package.json | 2 +- tools/update/package.json | 2 +- tools/validate/package.json | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index fb39081bea..11a8affa97 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -30,7 +30,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "license": "Apache-2.0", "publishConfig": { diff --git a/tools/cli/package.json b/tools/cli/package.json index d6770b3d80..5846e18251 100644 --- a/tools/cli/package.json +++ b/tools/cli/package.json @@ -13,7 +13,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "dependencies": { "@lg-tools/build": "workspace:^", diff --git a/tools/codemods/package.json b/tools/codemods/package.json index 711b624c46..90277f31dd 100644 --- a/tools/codemods/package.json +++ b/tools/codemods/package.json @@ -8,7 +8,7 @@ "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "publishConfig": { "access": "public" diff --git a/tools/create/package.json b/tools/create/package.json index 32f258216b..9b50e303c1 100644 --- a/tools/create/package.json +++ b/tools/create/package.json @@ -10,7 +10,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "publishConfig": { "access": "public" diff --git a/tools/install/package.json b/tools/install/package.json index f65539ff84..f73349a46e 100644 --- a/tools/install/package.json +++ b/tools/install/package.json @@ -8,7 +8,7 @@ "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "publishConfig": { "access": "public" diff --git a/tools/link/package.json b/tools/link/package.json index f305d5364b..4c56d30bc8 100644 --- a/tools/link/package.json +++ b/tools/link/package.json @@ -7,7 +7,7 @@ "module": "dist/esm/index.js", "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "publishConfig": { "access": "public" diff --git a/tools/lint/package.json b/tools/lint/package.json index e57e7ce389..63828ef9c1 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -10,7 +10,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "dependencies": { "@babel/core": "7.23.2", diff --git a/tools/meta/package.json b/tools/meta/package.json index 2e963a8657..5be4d90729 100644 --- a/tools/meta/package.json +++ b/tools/meta/package.json @@ -10,7 +10,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "dependencies": { "@lg-tools/build": "workspace:^", diff --git a/tools/slackbot/package.json b/tools/slackbot/package.json index 16102f63e3..0f9eccd592 100644 --- a/tools/slackbot/package.json +++ b/tools/slackbot/package.json @@ -10,7 +10,7 @@ "module": "dist/esm/index.js", "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "publishConfig": { "access": "public" diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index 340b99ab9f..31edae9a92 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -8,7 +8,7 @@ "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json", + "tsc": "lg-internal-build-ts", "upgrade": "npx storybook@latest upgrade --config-dir ." }, "publishConfig": { diff --git a/tools/storybook-decorators/package.json b/tools/storybook-decorators/package.json index 13306dc2c6..5bd6a3b61c 100644 --- a/tools/storybook-decorators/package.json +++ b/tools/storybook-decorators/package.json @@ -8,7 +8,7 @@ "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json", + "tsc": "lg-internal-build-ts", "upgrade": "npx storybook@latest upgrade --config-dir ../storybook" }, "publishConfig": { diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index 3024b6722a..1619c5ca46 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -7,7 +7,7 @@ "module": "dist/esm/index.js", "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "publishConfig": { "access": "public" diff --git a/tools/test/package.json b/tools/test/package.json index 22d043dd96..b4c7177e08 100644 --- a/tools/test/package.json +++ b/tools/test/package.json @@ -7,7 +7,7 @@ "module": "dist/esm/index.js", "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "publishConfig": { "access": "public" diff --git a/tools/update/package.json b/tools/update/package.json index 5393059bfd..9bf4008577 100644 --- a/tools/update/package.json +++ b/tools/update/package.json @@ -12,7 +12,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "dependencies": { "@lg-tools/build": "workspace:^", diff --git a/tools/validate/package.json b/tools/validate/package.json index b6f042346a..8fccd65a27 100644 --- a/tools/validate/package.json +++ b/tools/validate/package.json @@ -10,7 +10,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-internal-build-ts" }, "dependencies": { "@lg-tools/build": "workspace:^", From 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 19:48:42 -0400 Subject: [PATCH 020/123] add downlevel to prepublish --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d246e1200c..fbd9a853b9 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "build:cli": "turbo run build tsc --filter=@lg-tools/cli", "build:docs": "turbo run docs", "build:tsc": "turbo run tsc", + "build:tsc-downlevel": "turbo run tsc -- --downlevel", "build-storybook": "npx storybook build", "chromatic": "npx chromatic", "clean": "npm-run-all --parallel clean:*", @@ -26,7 +27,7 @@ "fix": "lg lint --fix", "link": "lg link", "lint": "lg lint", - "prepublishOnly": "pnpm run build && pnpm run build:tsc --downlevel && turbo run docs", + "prepublishOnly": "pnpm run build && pnpm run build:tsc-downlevel && turbo run docs", "publish": "pnpm changeset publish --public", "slackbot": "lg slackbot release", "start": "npx storybook dev -p 9001 --no-version-updates --no-open", From 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 21:08:59 -0400 Subject: [PATCH 021/123] reset packagejson --- charts/drag-provider/package.json | 2 +- charts/series-provider/package.json | 2 +- chat/avatar/package.json | 7 +------ chat/chat-window/package.json | 7 +------ chat/input-bar/package.json | 7 +------ chat/leafygreen-chat-provider/package.json | 7 +------ chat/lg-markdown/package.json | 7 +------ chat/message-feed/package.json | 7 +------ chat/message-feedback/package.json | 7 +------ chat/message-rating/package.json | 7 +------ chat/message/package.json | 7 +------ chat/title-bar/package.json | 7 +------ packages/a11y/package.json | 7 +------ packages/avatar/package.json | 7 +------ packages/badge/package.json | 7 +------ packages/banner/package.json | 7 +------ packages/box/package.json | 7 +------ packages/button/package.json | 8 +------- packages/callout/package.json | 7 +------ packages/card/package.json | 7 +------ packages/checkbox/package.json | 7 +------ packages/code/package.json | 7 +------ packages/combobox/package.json | 7 +------ packages/confirmation-modal/package.json | 7 +------ packages/copyable/package.json | 7 +------ packages/emotion/package.json | 7 +------ packages/empty-state/package.json | 7 +------ packages/expandable-card/package.json | 7 +------ packages/form-footer/package.json | 7 +------ packages/guide-cue/package.json | 7 +------ packages/hooks/package.json | 7 +------ packages/icon-button/package.json | 7 +------ packages/icon/package.json | 7 +------ packages/inline-definition/package.json | 7 +------ packages/input-option/package.json | 7 +------ packages/leafygreen-provider/package.json | 7 +------ packages/lib/package.json | 7 +------ packages/loading-indicator/package.json | 7 +------ packages/logo/package.json | 7 +------ packages/marketing-modal/package.json | 7 +------ packages/menu/package.json | 7 +------ packages/modal/package.json | 7 +------ packages/number-input/package.json | 7 +------ packages/pagination/package.json | 7 +------ packages/palette/package.json | 7 +------ packages/password-input/package.json | 7 +------ packages/pipeline/package.json | 7 +------ packages/polymorphic/package.json | 10 ++-------- packages/popover/package.json | 7 +------ packages/portal/package.json | 7 +------ packages/radio-box-group/package.json | 7 +------ packages/radio-group/package.json | 7 +------ packages/ripple/package.json | 7 +------ packages/search-input/package.json | 7 +------ packages/segmented-control/package.json | 7 +------ packages/select/package.json | 7 +------ packages/side-nav/package.json | 7 +------ packages/skeleton-loader/package.json | 7 +------ packages/split-button/package.json | 7 +------ packages/stepper/package.json | 7 +------ packages/table/package.json | 7 +------ packages/tabs/package.json | 7 +------ packages/testing-lib/package.json | 9 ++------- packages/text-area/package.json | 7 +------ packages/text-input/package.json | 7 +------ packages/toast/package.json | 7 +------ packages/toggle/package.json | 7 +------ packages/tokens/package.json | 7 +------ packages/tooltip/package.json | 7 +------ packages/typography/package.json | 7 +------ tools/cli/package.json | 2 +- tools/codemods/package.json | 2 +- tools/create/package.json | 5 +---- tools/install/package.json | 2 +- tools/link/package.json | 2 +- tools/lint/package.json | 4 ++-- tools/meta/package.json | 2 +- tools/slackbot/package.json | 2 +- tools/storybook-addon/package.json | 3 ++- tools/storybook-decorators/package.json | 2 +- tools/test-harnesses/package.json | 2 +- tools/test/package.json | 2 +- tools/update/package.json | 5 +---- tools/validate/package.json | 2 +- 84 files changed, 88 insertions(+), 435 deletions(-) diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index 658f8e2730..e2f94b1a09 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -33,4 +33,4 @@ "devDependencies": { "@storybook/test": "8.5.3" } -} +} \ No newline at end of file diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index a6b555ee26..17d15e450b 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -24,4 +24,4 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" } -} +} \ No newline at end of file diff --git a/chat/avatar/package.json b/chat/avatar/package.json index fe97546201..592d22dd9d 100644 --- a/chat/avatar/package.json +++ b/chat/avatar/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index a6a798e3a9..28c34d1bce 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index f0cac24cbd..641137548b 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index 7cb2e33ff2..31a3923019 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index 4b789d6531..3f09a6cced 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index c29fd842dd..cedd039782 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index 98ccccd24e..7d80507727 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index cc7094a856..ef2886e9ac 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/chat/message/package.json b/chat/message/package.json index f52253856b..198e756ea3 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index 785447edf4..df5ee0e689 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 93ac204d57..7b690501ab 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/avatar/package.json b/packages/avatar/package.json index e551ab81ee..f1c92e9617 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/badge/package.json b/packages/badge/package.json index 75d90339ec..fe2eba011d 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/banner/package.json b/packages/banner/package.json index 7ac9771b66..e52997bd12 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/box/package.json b/packages/box/package.json index c6f8bc338b..cfd4328a7b 100644 --- a/packages/box/package.json +++ b/packages/box/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/button/package.json b/packages/button/package.json index 8fba3e8cdf..a0d334afae 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, @@ -37,7 +32,6 @@ "polished": "^4.2.2" }, "devDependencies": { - "next": "^13.0.5", "@leafygreen-ui/icon": "workspace:^", "@leafygreen-ui/loading-indicator": "workspace:^" }, diff --git a/packages/callout/package.json b/packages/callout/package.json index 8ef7743809..4c877be2af 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/card/package.json b/packages/card/package.json index 6085304701..e90f6cdb1b 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index 8a36f9996b..4eb375ad9e 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/code/package.json b/packages/code/package.json index 48cdd8fa4f..a896381343 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/combobox/package.json b/packages/combobox/package.json index fdedbf56d0..e223a9ef79 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index d57ed5f41e..efd3632da8 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/copyable/package.json b/packages/copyable/package.json index 0b441b2adc..6267a0d7ce 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/emotion/package.json b/packages/emotion/package.json index cb76457e53..133eaaf9e0 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index 684031867a..1fc5f89da2 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index 9444c110c6..eccb7e7714 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index 4d033624a1..0cabe992bb 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index 9b4e0b61c9..992aef4a04 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/hooks/package.json b/packages/hooks/package.json index c307d59d00..e2dfbe2058 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index f7796d1c1f..bc3b99bd26 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/icon/package.json b/packages/icon/package.json index 2b5fe0b049..5b439718e7 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index c765f07830..3cc80898e3 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/input-option/package.json b/packages/input-option/package.json index 46ac7fe335..940cdd0d22 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index b77750535e..d443b5ac1d 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/lib/package.json b/packages/lib/package.json index d2e543d86d..3a920df9a5 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index 8b35dfb171..e4a94565ff 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/logo/package.json b/packages/logo/package.json index 242b17a90f..4b227545e2 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index 6f928fa68a..988f153f45 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/menu/package.json b/packages/menu/package.json index 4654c29b40..9ab50fb613 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/modal/package.json b/packages/modal/package.json index dd83618354..7d658c21fd 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/number-input/package.json b/packages/number-input/package.json index 627e703d51..eef83572b4 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/pagination/package.json b/packages/pagination/package.json index 7a72b38ae8..8edf823ce3 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/palette/package.json b/packages/palette/package.json index ebcc1fdada..a091ce3af7 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/password-input/package.json b/packages/password-input/package.json index 959133ec09..1793ff72e2 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index 0f082cae8b..326e810bde 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index 9c3a57c77a..3fa1a2133f 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, @@ -35,8 +30,7 @@ "access": "public" }, "devDependencies": { - "@emotion/styled": "^11.10.5", - "next": "^13.1.6" + "@emotion/styled": "^11.10.5" }, "dependencies": { "@leafygreen-ui/lib": "workspace:^", diff --git a/packages/popover/package.json b/packages/popover/package.json index 6d0c55dc09..941d1c73aa 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/portal/package.json b/packages/portal/package.json index 4d5d06d1e7..3d8eda830e 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index bc2c3a8011..c8a925192d 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index 24fcfec569..b33c6b3fb5 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 06e60b90e3..9cff01ff3d 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/search-input/package.json b/packages/search-input/package.json index 3113e4c7aa..7ac8259dca 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index b083706dae..a7cef7a06d 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/select/package.json b/packages/select/package.json index 40b7bae87a..52d4c97ddc 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index d4e96883a8..3ff73cd1f7 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index 277a777ebd..d63c30ff59 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/split-button/package.json b/packages/split-button/package.json index 4309f244f4..3fbd8183bb 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/stepper/package.json b/packages/stepper/package.json index f27cc6b5d7..50f4252f5f 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/table/package.json b/packages/table/package.json index c42d28f467..14fdfe5c69 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 78964c1785..5127a9af46 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index 11a8affa97..496d03f335 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, @@ -30,7 +25,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/text-area/package.json b/packages/text-area/package.json index 93983c49b8..d0f4a5c2f7 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/text-input/package.json b/packages/text-input/package.json index ffd7709fb3..f240b4e99f 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/toast/package.json b/packages/toast/package.json index f5695257fa..2f18dfa4eb 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/toggle/package.json b/packages/toggle/package.json index ebe90c19fb..6129b78423 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 8b07696494..adec06cb89 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index 8c328b45cc..5480d779c8 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/packages/typography/package.json b/packages/typography/package.json index c2fdc5fd3a..10cc378d91 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -8,12 +8,7 @@ "typesVersions": { "<3.9": { "*": [ - "dist/ts3.4/*" - ] - }, - "<5.0": { - "*": [ - "dist/ts4.9/*" + "ts3.4/*" ] } }, diff --git a/tools/cli/package.json b/tools/cli/package.json index 5846e18251..d6770b3d80 100644 --- a/tools/cli/package.json +++ b/tools/cli/package.json @@ -13,7 +13,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "dependencies": { "@lg-tools/build": "workspace:^", diff --git a/tools/codemods/package.json b/tools/codemods/package.json index 90277f31dd..711b624c46 100644 --- a/tools/codemods/package.json +++ b/tools/codemods/package.json @@ -8,7 +8,7 @@ "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "publishConfig": { "access": "public" diff --git a/tools/create/package.json b/tools/create/package.json index 9b50e303c1..7f93c036ee 100644 --- a/tools/create/package.json +++ b/tools/create/package.json @@ -5,12 +5,9 @@ "main": "dist/index.js", "module": "dist/esm/index.js", "license": "Apache-2.0", - "bin": { - "lg-create": "./dist/legacy-create.js" - }, "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "publishConfig": { "access": "public" diff --git a/tools/install/package.json b/tools/install/package.json index f73349a46e..f65539ff84 100644 --- a/tools/install/package.json +++ b/tools/install/package.json @@ -8,7 +8,7 @@ "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "publishConfig": { "access": "public" diff --git a/tools/link/package.json b/tools/link/package.json index 4c56d30bc8..f305d5364b 100644 --- a/tools/link/package.json +++ b/tools/link/package.json @@ -7,7 +7,7 @@ "module": "dist/esm/index.js", "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "publishConfig": { "access": "public" diff --git a/tools/lint/package.json b/tools/lint/package.json index 63828ef9c1..e4c0cfb994 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -10,7 +10,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "dependencies": { "@babel/core": "7.23.2", @@ -40,6 +40,6 @@ "prettier": "2.8.8" }, "peerDependencies": { - "typescript": "~5.0.0" + "typescript": "~4.9.0" } } diff --git a/tools/meta/package.json b/tools/meta/package.json index 5be4d90729..2e963a8657 100644 --- a/tools/meta/package.json +++ b/tools/meta/package.json @@ -10,7 +10,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "dependencies": { "@lg-tools/build": "workspace:^", diff --git a/tools/slackbot/package.json b/tools/slackbot/package.json index 0f9eccd592..16102f63e3 100644 --- a/tools/slackbot/package.json +++ b/tools/slackbot/package.json @@ -10,7 +10,7 @@ "module": "dist/esm/index.js", "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "publishConfig": { "access": "public" diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index 31edae9a92..fa221b8f03 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -8,7 +8,7 @@ "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts", + "tsc": "tsc --build tsconfig.json", "upgrade": "npx storybook@latest upgrade --config-dir ." }, "publishConfig": { @@ -28,6 +28,7 @@ "@leafygreen-ui/tokens": "workspace:^", "@leafygreen-ui/typography": "workspace:^", "@lg-tools/build": "workspace:^", + "@lg-tools/meta": "workspace:^", "@lg-tools/storybook-decorators": "workspace:^", "@lg-tools/storybook-utils": "workspace:^", "@mdx-js/react": "2.3.0", diff --git a/tools/storybook-decorators/package.json b/tools/storybook-decorators/package.json index 5bd6a3b61c..13306dc2c6 100644 --- a/tools/storybook-decorators/package.json +++ b/tools/storybook-decorators/package.json @@ -8,7 +8,7 @@ "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts", + "tsc": "tsc --build tsconfig.json", "upgrade": "npx storybook@latest upgrade --config-dir ../storybook" }, "publishConfig": { diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index 1619c5ca46..3024b6722a 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -7,7 +7,7 @@ "module": "dist/esm/index.js", "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "publishConfig": { "access": "public" diff --git a/tools/test/package.json b/tools/test/package.json index b4c7177e08..22d043dd96 100644 --- a/tools/test/package.json +++ b/tools/test/package.json @@ -7,7 +7,7 @@ "module": "dist/esm/index.js", "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "publishConfig": { "access": "public" diff --git a/tools/update/package.json b/tools/update/package.json index 9bf4008577..964b8950de 100644 --- a/tools/update/package.json +++ b/tools/update/package.json @@ -7,12 +7,9 @@ "publishConfig": { "access": "public" }, - "bin": { - "lg-update": "./bin/index.js" - }, "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "dependencies": { "@lg-tools/build": "workspace:^", diff --git a/tools/validate/package.json b/tools/validate/package.json index 8fccd65a27..b6f042346a 100644 --- a/tools/validate/package.json +++ b/tools/validate/package.json @@ -10,7 +10,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "tsc --build tsconfig.json" }, "dependencies": { "@lg-tools/build": "workspace:^", From c4917f9c71761539e4a90c149cdc8a252487aec4 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 21:40:57 -0400 Subject: [PATCH 022/123] add runTypescriptDownlevel to bin --- tools/build/bin/ts-downlevel.js | 3 ++ tools/build/package.json | 6 ++-- tools/build/src/index.ts | 1 + .../src/typescript/downlevel/downlevel-dts.ts | 35 +++++++------------ .../typescript/downlevel/getTypeVersions.ts | 24 ++++++++++--- tools/build/src/typescript/downlevel/index.ts | 15 ++++---- 6 files changed, 47 insertions(+), 37 deletions(-) create mode 100755 tools/build/bin/ts-downlevel.js diff --git a/tools/build/bin/ts-downlevel.js b/tools/build/bin/ts-downlevel.js new file mode 100755 index 0000000000..dd1ddca04c --- /dev/null +++ b/tools/build/bin/ts-downlevel.js @@ -0,0 +1,3 @@ +#! /usr/bin/env node +const { runTypescriptDownlevel } = require('../dist/index.js'); +runTypescriptDownlevel({ verbose: true }); diff --git a/tools/build/package.json b/tools/build/package.json index c0c12032ea..55a63281cb 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -8,13 +8,13 @@ }, "bin": { "lg-internal-build-package": "./bin/build-package.js", - "lg-internal-build-ts": "./bin/build-ts.sh" + "lg-ts-downlevel": "./bin/ts-downlevel.js" }, "main": "dist/index.js", "module": "dist/esm/index.js", "scripts": { - "build": "scripts/build.sh", - "tsc": "scripts/build-ts.sh" + "build": "rollup -c ./config/rollup.config.mjs", + "tsc": "tsc --build tsconfig.json" }, "dependencies": { "@babel/core": "7.24.3", diff --git a/tools/build/src/index.ts b/tools/build/src/index.ts index f605f948cc..08537b9fd6 100644 --- a/tools/build/src/index.ts +++ b/tools/build/src/index.ts @@ -4,6 +4,7 @@ export { buildPackage } from './rollup/build-package'; export { buildTSDoc } from './tsdoc/build-tsdoc'; export { parseTSDoc } from './tsdoc/tsdocParser'; export { buildTypescript } from './typescript/build-ts'; +export { runTypescriptDownlevel } from './typescript/downlevel'; interface BuildOptions { only: Array; diff --git a/tools/build/src/typescript/downlevel/downlevel-dts.ts b/tools/build/src/typescript/downlevel/downlevel-dts.ts index ee7a9cde40..16be26438c 100644 --- a/tools/build/src/typescript/downlevel/downlevel-dts.ts +++ b/tools/build/src/typescript/downlevel/downlevel-dts.ts @@ -2,14 +2,15 @@ import chalk from 'chalk'; import path from 'path'; import fse from 'fs-extra'; -import { sync as spawnSync } from 'cross-spawn'; +// @ts-ignore - ironically, this package doesn't have types +import { main as downlevel } from 'downlevel-dts'; interface DownlevelDtsOptions { /** Whether to print verbose output */ verbose?: boolean; /** Target TypeScript version for output */ - target?: string; + target?: `${number}.${number}`; /** Directory to output downleveled declaration files */ outDir?: string; @@ -20,7 +21,9 @@ interface DownlevelDtsOptions { * * @param options Configuration options */ -export function downlevelDts(options?: DownlevelDtsOptions): void { +export async function downlevelDts( + options?: DownlevelDtsOptions, +): Promise { const { verbose, target = '3.4', outDir } = options ?? {}; const packageDir = process.cwd(); @@ -47,25 +50,8 @@ export function downlevelDts(options?: DownlevelDtsOptions): void { verbose && console.log(chalk.gray(`Output: ${outputDirPath}`)); try { - // Run downlevel-dts - const args = [ - 'exec', - 'downlevel-dts', - typesDirPath, - outputDirPath, - '--to', - target, - ]; - - verbose && console.log(chalk.gray(`Running: pnpm ${args.join(' ')}`)); - - const result = spawnSync('pnpm', args, { - stdio: verbose ? 'inherit' : 'ignore', - }); - - if (result.status !== 0) { - throw new Error(`downlevel-dts failed with exit code: ${result.status}`); - } + const semverTarget = target + '.0'; + downlevel(typesDirPath, outputDirPath, semverTarget); console.log( verbose && @@ -74,6 +60,9 @@ export function downlevelDts(options?: DownlevelDtsOptions): void { ), ); } catch (error: any) { - throw new Error(`Error downleveling declarations: ${error.message}`); + console.error( + chalk.red(`Error downleveling declarations: ${error.message}`), + ); + process.exit(1); } } diff --git a/tools/build/src/typescript/downlevel/getTypeVersions.ts b/tools/build/src/typescript/downlevel/getTypeVersions.ts index 1a420631e9..bbbbe61b34 100644 --- a/tools/build/src/typescript/downlevel/getTypeVersions.ts +++ b/tools/build/src/typescript/downlevel/getTypeVersions.ts @@ -1,3 +1,5 @@ +import chalk from 'chalk'; + /** * Extracts TypeScript versions from the typesVersions field in package.json * and returns an array of version numbers without the 'ts' prefix. @@ -7,10 +9,10 @@ export const getTypeVersions = (typesVersions?: { [target: string]: { [files: string]: string[]; }; -}): Array | undefined => { +}): Array<`${number}.${number}`> | undefined => { if (!typesVersions || typeof typesVersions !== 'object') return; - const versions: Array = []; + const versions: Array<`${number}.${number}`> = []; Object.entries(typesVersions).forEach(([_versionRange, pathMappings]) => { // Get the output directory from the path mappings @@ -21,11 +23,25 @@ export const getTypeVersions = (typesVersions?: { if (!Array.isArray(wildcardMapping) || wildcardMapping.length === 0) return; // Extract outputDir from format like 'ts3.4/*' - const outputDirMatch = wildcardMapping[0].match(/^ts([\d.]+)\/\*/); + const outputDirMatch = wildcardMapping[0].match(/^dist\/ts([\d.]+)\/\*/); if (!outputDirMatch || !outputDirMatch[1]) return; // Get just the version number without the 'ts' prefix - const versionNumber = outputDirMatch[1]; + const versionNumber = outputDirMatch[1] as `${number}.${number}`; + // Check if the version number is valid + if (!/^\d+\.\d+$/.test(versionNumber)) { + console.log( + chalk.red( + `Invalid TS version number format in directory${outputDirMatch[0]}. Expected format is 'dist/tsX.Y/*'`, + ), + ); + return; + } + + // check if the version number is already in the array + if (versions.includes(versionNumber)) return; + + // Add the version number to the array versions.push(versionNumber); }); diff --git a/tools/build/src/typescript/downlevel/index.ts b/tools/build/src/typescript/downlevel/index.ts index bb79b9b0b0..9ba4a477a4 100644 --- a/tools/build/src/typescript/downlevel/index.ts +++ b/tools/build/src/typescript/downlevel/index.ts @@ -15,21 +15,22 @@ interface DownlevelCommandOptions { */ export function runTypescriptDownlevel({ verbose }: DownlevelCommandOptions) { const packageDir = process.cwd(); + console.log('\nRunning TypeScript downleveling...', packageDir); - const packageJson = fse.readJSONSync( - path.join(packageDir, 'package.json'), - 'utf-8', - ); + const packageJsonPath = path.join(packageDir, 'package.json'); + const packageJson = fse.readJSONSync(packageJsonPath, 'utf-8'); const typesVersions = packageJson?.typesVersions; const downlevelVersions = getTypeVersions(typesVersions); - if (downlevelVersions) { - verbose && console.log(chalk.blue.bold('Downleveling TypeScript')); + if (downlevelVersions && downlevelVersions?.length > 0) { downlevelVersions.forEach(target => { downlevelDts({ verbose, target }); }); } else { verbose && - console.log(chalk.yellow('No typesVersions found in package.json')); + console.log(chalk.yellow('No typesVersions found in package.json'), { + typesVersions, + downlevelVersions, + }); } } From 7a1967c31cb4792d31299f3214366040ceb80d43 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 21:41:03 -0400 Subject: [PATCH 023/123] Update pnpm-lock.yaml --- pnpm-lock.yaml | 192 ++----------------------------------------------- 1 file changed, 4 insertions(+), 188 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6d6e20c1bb..ee959ca639 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -886,9 +886,6 @@ importers: '@leafygreen-ui/loading-indicator': specifier: workspace:^ version: link:../loading-indicator - next: - specifier: ^13.0.5 - version: 13.4.13(@babel/core@7.24.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.64.2) packages/callout: dependencies: @@ -2137,9 +2134,6 @@ importers: '@emotion/styled': specifier: ^11.10.5 version: 11.11.0(@emotion/react@11.11.1(@types/react@18.2.23)(react@18.2.0))(@types/react@18.2.23)(react@18.2.0) - next: - specifier: ^13.1.6 - version: 13.4.13(@babel/core@7.24.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.64.2) packages/popover: dependencies: @@ -3286,6 +3280,9 @@ importers: '@lg-tools/build': specifier: workspace:^ version: link:../build + '@lg-tools/meta': + specifier: workspace:^ + version: link:../meta '@lg-tools/storybook-decorators': specifier: workspace:^ version: link:../storybook-decorators @@ -4997,63 +4994,6 @@ packages: '@types/react': '>=16' react: '>=16' - '@next/env@13.4.13': - resolution: {integrity: sha512-fwz2QgVg08v7ZL7KmbQBLF2PubR/6zQdKBgmHEl3BCyWTEDsAQEijjw2gbFhI1tcKfLdOOJUXntz5vZ4S0Polg==} - - '@next/swc-darwin-arm64@13.4.13': - resolution: {integrity: sha512-ZptVhHjzUuivnXMNCJ6lER33HN7lC+rZ01z+PM10Ows21NHFYMvGhi5iXkGtBDk6VmtzsbqnAjnx4Oz5um0FjA==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [darwin] - - '@next/swc-darwin-x64@13.4.13': - resolution: {integrity: sha512-t9nTiWCLApw8W4G1kqJyYP7y6/7lyal3PftmRturIxAIBlZss9wrtVN8nci50StDHmIlIDxfguYIEGVr9DbFTg==} - engines: {node: '>= 10'} - cpu: [x64] - os: [darwin] - - '@next/swc-linux-arm64-gnu@13.4.13': - resolution: {integrity: sha512-xEHUqC8eqR5DHe8SOmMnDU1K3ggrJ28uIKltrQAwqFSSSmzjnN/XMocZkcVhuncuxYrpbri0iMQstRyRVdQVWg==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - - '@next/swc-linux-arm64-musl@13.4.13': - resolution: {integrity: sha512-sNf3MnLAm8rquSSAoeD9nVcdaDeRYOeey4stOWOyWIgbBDtP+C93amSgH/LPTDoUV7gNiU6f+ghepTjTjRgIUQ==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [linux] - - '@next/swc-linux-x64-gnu@13.4.13': - resolution: {integrity: sha512-WhcRaJJSHyx9OWmKjjz+OWHumiPZWRqmM/09Bt7Up4UqUJFFhGExeztR4trtv3rflvULatu9IH/nTV8fUUgaMA==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - - '@next/swc-linux-x64-musl@13.4.13': - resolution: {integrity: sha512-+Y4LLhOWWZQIDKVwr2R17lq2KSN0F1c30QVgGIWfnjjHpH8nrIWHEndhqYU+iFuW8It78CiJjQKTw4f51HD7jA==} - engines: {node: '>= 10'} - cpu: [x64] - os: [linux] - - '@next/swc-win32-arm64-msvc@13.4.13': - resolution: {integrity: sha512-rWurdOR20uxjfqd1X9vDAgv0Jb26KjyL8akF9CBeFqX8rVaBAnW/Wf6A2gYEwyYY4Bai3T7p1kro6DFrsvBAAw==} - engines: {node: '>= 10'} - cpu: [arm64] - os: [win32] - - '@next/swc-win32-ia32-msvc@13.4.13': - resolution: {integrity: sha512-E8bSPwRuY5ibJ3CzLQmJEt8qaWrPYuUTwnrwygPUEWoLzD5YRx9SD37oXRdU81TgGwDzCxpl7z5Nqlfk50xAog==} - engines: {node: '>= 10'} - cpu: [ia32] - os: [win32] - - '@next/swc-win32-x64-msvc@13.4.13': - resolution: {integrity: sha512-4KlyC6jWRubPnppgfYsNTPeWfGCxtWLh5vaOAW/kdzAk9widqho8Qb5S4K2vHmal1tsURi7Onk2MMCV1phvyqA==} - engines: {node: '>= 10'} - cpu: [x64] - os: [win32] - '@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1': resolution: {integrity: sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==} @@ -6625,10 +6565,6 @@ packages: resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} engines: {node: '>=6'} - busboy@1.6.0: - resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} - engines: {node: '>=10.16.0'} - cac@6.7.14: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} engines: {node: '>=8'} @@ -6739,9 +6675,6 @@ packages: resolution: {integrity: sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==} engines: {node: '>= 10.0'} - client-only@0.0.1: - resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} - clipboard@2.0.11: resolution: {integrity: sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==} @@ -8936,21 +8869,6 @@ packages: neo-async@2.6.2: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} - next@13.4.13: - resolution: {integrity: sha512-A3YVbVDNeXLhWsZ8Nf6IkxmNlmTNz0yVg186NJ97tGZqPDdPzTrHotJ+A1cuJm2XfuWPrKOUZILl5iBQkIf8Jw==} - engines: {node: '>=16.8.0'} - hasBin: true - peerDependencies: - '@opentelemetry/api': ^1.1.0 - react: ^18.2.0 - react-dom: ^18.2.0 - sass: ^1.3.0 - peerDependenciesMeta: - '@opentelemetry/api': - optional: true - sass: - optional: true - nice-try@1.0.5: resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} @@ -9330,10 +9248,6 @@ packages: postcss-value-parser@4.2.0: resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} - postcss@8.4.14: - resolution: {integrity: sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==} - engines: {node: ^10 || ^12 || >=14} - postcss@8.4.27: resolution: {integrity: sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ==} engines: {node: ^10 || ^12 || >=14} @@ -9962,10 +9876,6 @@ packages: stream@0.0.3: resolution: {integrity: sha512-aMsbn7VKrl4A2T7QAQQbzgN7NVc70vgF5INQrBXqn4dCXN1zy3L9HGgLO5s7PExmdrzTJ8uR/27aviW8or8/+A==} - streamsearch@1.1.0: - resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} - engines: {node: '>=10.0.0'} - string-length@4.0.2: resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} engines: {node: '>=10'} @@ -10054,19 +9964,6 @@ packages: style-to-object@0.4.4: resolution: {integrity: sha512-HYNoHZa2GorYNyqiCaBgsxvcJIn7OHq6inEga+E6Ke3m5JkoqpQbnFssk4jwe+K7AhGa2fcha4wSOf1Kn01dMg==} - styled-jsx@5.1.1: - resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==} - engines: {node: '>= 12.0.0'} - peerDependencies: - '@babel/core': '*' - babel-plugin-macros: '*' - react: '>= 16.8.0 || 17.x.x || ^18.0.0-0' - peerDependenciesMeta: - '@babel/core': - optional: true - babel-plugin-macros: - optional: true - stylis@4.2.0: resolution: {integrity: sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==} @@ -10859,9 +10756,6 @@ packages: resolution: {integrity: sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==} engines: {node: '>=12.20'} - zod@3.21.4: - resolution: {integrity: sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==} - zrender@5.6.0: resolution: {integrity: sha512-uzgraf4njmmHAbEUxMJ8Oxg+P3fT04O+9p7gY+wJRVxo8Ge+KmYv0WJev945EH4wFuc4OY2NLXz46FZrWS9xJg==} @@ -12616,35 +12510,6 @@ snapshots: '@types/react': 18.2.23 react: 18.2.0 - '@next/env@13.4.13': {} - - '@next/swc-darwin-arm64@13.4.13': - optional: true - - '@next/swc-darwin-x64@13.4.13': - optional: true - - '@next/swc-linux-arm64-gnu@13.4.13': - optional: true - - '@next/swc-linux-arm64-musl@13.4.13': - optional: true - - '@next/swc-linux-x64-gnu@13.4.13': - optional: true - - '@next/swc-linux-x64-musl@13.4.13': - optional: true - - '@next/swc-win32-arm64-msvc@13.4.13': - optional: true - - '@next/swc-win32-ia32-msvc@13.4.13': - optional: true - - '@next/swc-win32-x64-msvc@13.4.13': - optional: true - '@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1': dependencies: eslint-scope: 5.1.1 @@ -13505,6 +13370,7 @@ snapshots: '@swc/helpers@0.5.1': dependencies: tslib: 2.6.2 + optional: true '@swc/types@0.1.5': optional: true @@ -14507,10 +14373,6 @@ snapshots: builtin-modules@3.3.0: {} - busboy@1.6.0: - dependencies: - streamsearch: 1.1.0 - cac@6.7.14: {} call-bind@1.0.7: @@ -14611,8 +14473,6 @@ snapshots: dependencies: source-map: 0.6.1 - client-only@0.0.1: {} - clipboard@2.0.11: dependencies: good-listener: 1.2.2 @@ -17611,33 +17471,6 @@ snapshots: neo-async@2.6.2: {} - next@13.4.13(@babel/core@7.24.3)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.64.2): - dependencies: - '@next/env': 13.4.13 - '@swc/helpers': 0.5.1 - busboy: 1.6.0 - caniuse-lite: 1.0.30001686 - postcss: 8.4.14 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - styled-jsx: 5.1.1(@babel/core@7.24.3)(react@18.2.0) - watchpack: 2.4.0 - zod: 3.21.4 - optionalDependencies: - '@next/swc-darwin-arm64': 13.4.13 - '@next/swc-darwin-x64': 13.4.13 - '@next/swc-linux-arm64-gnu': 13.4.13 - '@next/swc-linux-arm64-musl': 13.4.13 - '@next/swc-linux-x64-gnu': 13.4.13 - '@next/swc-linux-x64-musl': 13.4.13 - '@next/swc-win32-arm64-msvc': 13.4.13 - '@next/swc-win32-ia32-msvc': 13.4.13 - '@next/swc-win32-x64-msvc': 13.4.13 - sass: 1.64.2 - transitivePeerDependencies: - - '@babel/core' - - babel-plugin-macros - nice-try@1.0.5: {} no-case@3.0.4: @@ -18011,12 +17844,6 @@ snapshots: postcss-value-parser@4.2.0: {} - postcss@8.4.14: - dependencies: - nanoid: 3.3.6 - picocolors: 1.0.0 - source-map-js: 1.0.2 - postcss@8.4.27: dependencies: nanoid: 3.3.6 @@ -18797,8 +18624,6 @@ snapshots: dependencies: component-emitter: 2.0.0 - streamsearch@1.1.0: {} - string-length@4.0.2: dependencies: char-regex: 1.0.2 @@ -18905,13 +18730,6 @@ snapshots: dependencies: inline-style-parser: 0.1.1 - styled-jsx@5.1.1(@babel/core@7.24.3)(react@18.2.0): - dependencies: - client-only: 0.0.1 - react: 18.2.0 - optionalDependencies: - '@babel/core': 7.24.3 - stylis@4.2.0: {} superstruct@2.0.2: {} @@ -19788,8 +19606,6 @@ snapshots: yocto-queue@1.0.0: {} - zod@3.21.4: {} - zrender@5.6.0: dependencies: tslib: 2.3.0 From 68385bc9cc4d76a421ad675530819fc8fd13fcef Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 21:41:07 -0400 Subject: [PATCH 024/123] Update package.json --- packages/lib/package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/lib/package.json b/packages/lib/package.json index 3a920df9a5..d2e543d86d 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -8,7 +8,12 @@ "typesVersions": { "<3.9": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, From 03a7c936b2baf7592220a9ae28b4a618c37ab580 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 21:49:18 -0400 Subject: [PATCH 025/123] update typesVersions --- charts/chart-card/package.json | 12 ++++++++++++ charts/colors/package.json | 12 ++++++++++++ charts/core/package.json | 12 ++++++++++++ charts/drag-provider/package.json | 14 +++++++++++++- charts/legend/package.json | 12 ++++++++++++ charts/series-provider/package.json | 14 +++++++++++++- chat/avatar/package.json | 9 +++++++-- chat/chat-disclaimer/package.json | 12 ++++++++++++ chat/chat-window/package.json | 9 +++++++-- chat/fixed-chat-window/package.json | 12 ++++++++++++ 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 | 9 +++++++-- chat/message-prompts/package.json | 14 +++++++++++++- chat/message-rating/package.json | 9 +++++++-- chat/message/package.json | 9 +++++++-- chat/rich-links/package.json | 14 +++++++++++++- chat/title-bar/package.json | 9 +++++++-- packages/a11y/package.json | 9 +++++++-- packages/avatar/package.json | 9 +++++++-- packages/badge/package.json | 9 +++++++-- packages/banner/package.json | 9 +++++++-- packages/box/package.json | 9 +++++++-- packages/button/package.json | 9 +++++++-- packages/callout/package.json | 9 +++++++-- packages/card/package.json | 9 +++++++-- packages/checkbox/package.json | 9 +++++++-- packages/chip/package.json | 14 +++++++++++++- packages/code/package.json | 9 +++++++-- packages/combobox/package.json | 9 +++++++-- packages/confirmation-modal/package.json | 9 +++++++-- packages/copyable/package.json | 9 +++++++-- packages/date-picker/package.json | 12 ++++++++++++ packages/date-utils/package.json | 14 +++++++++++++- packages/descendants/package.json | 12 ++++++++++++ packages/drawer/package.json | 12 ++++++++++++ packages/emotion/package.json | 9 +++++++-- packages/empty-state/package.json | 9 +++++++-- packages/expandable-card/package.json | 9 +++++++-- packages/form-field/package.json | 12 ++++++++++++ packages/form-footer/package.json | 9 +++++++-- packages/gallery-indicator/package.json | 14 +++++++++++++- packages/guide-cue/package.json | 9 +++++++-- packages/hooks/package.json | 9 +++++++-- packages/icon-button/package.json | 9 +++++++-- packages/icon/package.json | 9 +++++++-- packages/info-sprinkle/package.json | 14 +++++++++++++- packages/inline-definition/package.json | 9 +++++++-- packages/input-option/package.json | 9 +++++++-- packages/leafygreen-provider/package.json | 9 +++++++-- packages/lib/package.json | 2 +- packages/loading-indicator/package.json | 9 +++++++-- packages/logo/package.json | 9 +++++++-- packages/marketing-modal/package.json | 9 +++++++-- packages/menu/package.json | 9 +++++++-- packages/modal/package.json | 9 +++++++-- packages/number-input/package.json | 9 +++++++-- packages/ordered-list/package.json | 12 ++++++++++++ packages/pagination/package.json | 9 +++++++-- packages/palette/package.json | 9 +++++++-- packages/password-input/package.json | 9 +++++++-- packages/pipeline/package.json | 9 +++++++-- packages/polymorphic/package.json | 9 +++++++-- packages/popover/package.json | 9 +++++++-- packages/portal/package.json | 9 +++++++-- packages/radio-box-group/package.json | 9 +++++++-- packages/radio-group/package.json | 9 +++++++-- packages/ripple/package.json | 9 +++++++-- packages/search-input/package.json | 9 +++++++-- packages/segmented-control/package.json | 9 +++++++-- packages/select/package.json | 9 +++++++-- packages/side-nav/package.json | 9 +++++++-- packages/skeleton-loader/package.json | 9 +++++++-- packages/split-button/package.json | 9 +++++++-- packages/stepper/package.json | 9 +++++++-- packages/table/package.json | 9 +++++++-- packages/tabs/package.json | 9 +++++++-- packages/testing-lib/package.json | 9 +++++++-- packages/text-area/package.json | 9 +++++++-- packages/text-input/package.json | 9 +++++++-- packages/toast/package.json | 9 +++++++-- packages/toggle/package.json | 9 +++++++-- packages/tokens/package.json | 9 +++++++-- packages/tooltip/package.json | 9 +++++++-- packages/typography/package.json | 9 +++++++-- tools/meta/package.json | 12 ++++++++++++ tools/storybook-addon/package.json | 7 +++++++ tools/storybook-decorators/package.json | 7 +++++++ tools/storybook-utils/package.json | 7 +++++++ tools/test-harnesses/package.json | 12 ++++++++++++ 92 files changed, 751 insertions(+), 143 deletions(-) diff --git a/charts/chart-card/package.json b/charts/chart-card/package.json index dc3732f4ae..8c134c69d3 100644 --- a/charts/chart-card/package.json +++ b/charts/chart-card/package.json @@ -34,5 +34,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/charts/colors/package.json b/charts/colors/package.json index 4246a3b966..df7a89ea07 100644 --- a/charts/colors/package.json +++ b/charts/colors/package.json @@ -31,5 +31,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/charts/core/package.json b/charts/core/package.json index 4ef2479a23..a524f34b3a 100644 --- a/charts/core/package.json +++ b/charts/core/package.json @@ -42,5 +42,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index e2f94b1a09..296d8fd037 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -32,5 +32,17 @@ }, "devDependencies": { "@storybook/test": "8.5.3" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } -} \ No newline at end of file +} diff --git a/charts/legend/package.json b/charts/legend/package.json index 0acc45c9ef..a13b768d82 100644 --- a/charts/legend/package.json +++ b/charts/legend/package.json @@ -36,5 +36,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index 17d15e450b..a4846a84e5 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -23,5 +23,17 @@ }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } -} \ No newline at end of file +} diff --git a/chat/avatar/package.json b/chat/avatar/package.json index 592d22dd9d..4becc356ad 100644 --- a/chat/avatar/package.json +++ b/chat/avatar/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/chat-disclaimer/package.json b/chat/chat-disclaimer/package.json index e337105842..2b484937d4 100644 --- a/chat/chat-disclaimer/package.json +++ b/chat/chat-disclaimer/package.json @@ -32,5 +32,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index 28c34d1bce..495e659811 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/fixed-chat-window/package.json b/chat/fixed-chat-window/package.json index d8c1e21a62..bbdd1d384e 100644 --- a/chat/fixed-chat-window/package.json +++ b/chat/fixed-chat-window/package.json @@ -45,5 +45,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index 641137548b..066d66402d 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index 31a3923019..67220c8104 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index 3f09a6cced..5af61190c7 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index cedd039782..8067bdd6ae 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index 7d80507727..5cc5a1d90c 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/message-prompts/package.json b/chat/message-prompts/package.json index 3ee55b666b..68ee0887d9 100644 --- a/chat/message-prompts/package.json +++ b/chat/message-prompts/package.json @@ -32,5 +32,17 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": {}, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } + } } diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index ef2886e9ac..560e0b7d6a 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/message/package.json b/chat/message/package.json index 198e756ea3..d5dd71c269 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/chat/rich-links/package.json b/chat/rich-links/package.json index cc622d7a75..42de71cdca 100644 --- a/chat/rich-links/package.json +++ b/chat/rich-links/package.json @@ -36,5 +36,17 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": {}, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } + } } diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index df5ee0e689..469bc69d00 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 7b690501ab..7f87994dd2 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/avatar/package.json b/packages/avatar/package.json index f1c92e9617..ba2612b59c 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/badge/package.json b/packages/badge/package.json index fe2eba011d..c8cbd10ea1 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/banner/package.json b/packages/banner/package.json index e52997bd12..9780f1c3eb 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/box/package.json b/packages/box/package.json index cfd4328a7b..cfb3897f38 100644 --- a/packages/box/package.json +++ b/packages/box/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/button/package.json b/packages/button/package.json index a0d334afae..ab530d194c 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/callout/package.json b/packages/callout/package.json index 4c877be2af..f686a48e56 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/card/package.json b/packages/card/package.json index e90f6cdb1b..9190cec1bf 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index 4eb375ad9e..2a63749183 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/chip/package.json b/packages/chip/package.json index f965a5e263..0961aff348 100644 --- a/packages/chip/package.json +++ b/packages/chip/package.json @@ -33,5 +33,17 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": {}, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } + } } diff --git a/packages/code/package.json b/packages/code/package.json index a896381343..3ed5b83b06 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/combobox/package.json b/packages/combobox/package.json index e223a9ef79..94005bd65d 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index efd3632da8..8ec3050ec5 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/copyable/package.json b/packages/copyable/package.json index 6267a0d7ce..34a7867b08 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index 13f646c925..c1aff538b8 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -49,5 +49,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index 35973e66d2..7bad2a8ce4 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -37,5 +37,17 @@ "leafygreen", "date", "date-fns" - ] + ], + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } + } } diff --git a/packages/descendants/package.json b/packages/descendants/package.json index 0abcf7cbfe..ce8157d794 100644 --- a/packages/descendants/package.json +++ b/packages/descendants/package.json @@ -35,5 +35,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/packages/drawer/package.json b/packages/drawer/package.json index d2415bcb7d..ecbace7213 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -43,5 +43,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 133eaaf9e0..0b749c63d4 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index 1fc5f89da2..12125ca06f 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index eccb7e7714..702ff17d81 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/form-field/package.json b/packages/form-field/package.json index 43b1ba312b..21217a8315 100644 --- a/packages/form-field/package.json +++ b/packages/form-field/package.json @@ -37,5 +37,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index 0cabe992bb..7a2a6ac7d5 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index bbfd55e615..0456899d73 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -32,5 +32,17 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": {}, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } + } } diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index 992aef4a04..6bf568d271 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/hooks/package.json b/packages/hooks/package.json index e2dfbe2058..39c800453e 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index bc3b99bd26..195ce0e56a 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/icon/package.json b/packages/icon/package.json index 5b439718e7..9768aa8d73 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/info-sprinkle/package.json b/packages/info-sprinkle/package.json index fa3991a7aa..5035d868a2 100644 --- a/packages/info-sprinkle/package.json +++ b/packages/info-sprinkle/package.json @@ -33,5 +33,17 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": {}, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } + } } diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index 3cc80898e3..2c0a5d86a2 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/input-option/package.json b/packages/input-option/package.json index 940cdd0d22..4dd41222c4 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index d443b5ac1d..2544dafe9f 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/lib/package.json b/packages/lib/package.json index d2e543d86d..f494ac06f8 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -6,7 +6,7 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ "dist/ts3.4/*" ] diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index e4a94565ff..fbdf1831c5 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/logo/package.json b/packages/logo/package.json index 4b227545e2..b2944b5ac5 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index 988f153f45..46d8e08fc8 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/menu/package.json b/packages/menu/package.json index 9ab50fb613..17d7de972a 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/modal/package.json b/packages/modal/package.json index 7d658c21fd..0c79295118 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/number-input/package.json b/packages/number-input/package.json index eef83572b4..6cdaee99e5 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/ordered-list/package.json b/packages/ordered-list/package.json index 322fadeb73..cf45247a08 100644 --- a/packages/ordered-list/package.json +++ b/packages/ordered-list/package.json @@ -32,5 +32,17 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/packages/pagination/package.json b/packages/pagination/package.json index 8edf823ce3..1aba4f03ec 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/palette/package.json b/packages/palette/package.json index a091ce3af7..ef5c735874 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/password-input/package.json b/packages/password-input/package.json index 1793ff72e2..9c8527ecfb 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index 326e810bde..6f0144723e 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index 3fa1a2133f..7a06dc3c49 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/popover/package.json b/packages/popover/package.json index 941d1c73aa..c4e07d318f 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/portal/package.json b/packages/portal/package.json index 3d8eda830e..2b00ac8561 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index c8a925192d..6e0ec07252 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index b33c6b3fb5..d79477c6c5 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 9cff01ff3d..f95fb4eec8 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/search-input/package.json b/packages/search-input/package.json index 7ac8259dca..8987f3cf36 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index a7cef7a06d..557bc46544 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/select/package.json b/packages/select/package.json index 52d4c97ddc..4536bdb1ae 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index 3ff73cd1f7..c837de4cab 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index d63c30ff59..765ff0d35b 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/split-button/package.json b/packages/split-button/package.json index 3fbd8183bb..b67d0659db 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/stepper/package.json b/packages/stepper/package.json index 50f4252f5f..7699be09ac 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/table/package.json b/packages/table/package.json index 14fdfe5c69..7b1ea502cb 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 5127a9af46..683d148ddd 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index 496d03f335..5741941062 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/text-area/package.json b/packages/text-area/package.json index d0f4a5c2f7..d08f950be5 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/text-input/package.json b/packages/text-input/package.json index f240b4e99f..5ab20026bb 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/toast/package.json b/packages/toast/package.json index 2f18dfa4eb..e779fbfd89 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/toggle/package.json b/packages/toggle/package.json index 6129b78423..539f72fc02 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/tokens/package.json b/packages/tokens/package.json index adec06cb89..3c8ba7b246 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index 5480d779c8..8efe8a2e65 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/packages/typography/package.json b/packages/typography/package.json index 10cc378d91..84676415db 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -6,9 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<3.9": { + "<4.0": { "*": [ - "ts3.4/*" + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" ] } }, diff --git a/tools/meta/package.json b/tools/meta/package.json index 2e963a8657..9b9e16163e 100644 --- a/tools/meta/package.json +++ b/tools/meta/package.json @@ -18,5 +18,17 @@ "chalk": "4.1.2", "fs-extra": "11.1.1", "lodash": "4.17.21" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index fa221b8f03..ae524ba070 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -64,5 +64,12 @@ "react": "^17.0.0 || ^18.0.0", "react-dom": "^17.0.0 || ^18.0.0", "storybook": "^8.5.3" + }, + "typesVersions": { + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/tools/storybook-decorators/package.json b/tools/storybook-decorators/package.json index 13306dc2c6..ef1a8f1b32 100644 --- a/tools/storybook-decorators/package.json +++ b/tools/storybook-decorators/package.json @@ -26,5 +26,12 @@ }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" + }, + "typesVersions": { + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/tools/storybook-utils/package.json b/tools/storybook-utils/package.json index 00c83b828c..c90250792a 100644 --- a/tools/storybook-utils/package.json +++ b/tools/storybook-utils/package.json @@ -26,5 +26,12 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index 3024b6722a..7ef9d6a4d5 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -14,5 +14,17 @@ }, "dependencies": { "@testing-library/dom": "9.3.1" + }, + "typesVersions": { + "<4.0": { + "*": [ + "dist/ts3.4/*" + ] + }, + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } From 0ba31885a38270e3300d8101a99a9d106d4da8fe Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 4 Apr 2025 21:52:09 -0400 Subject: [PATCH 026/123] Update package.json --- tools/lint/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lint/package.json b/tools/lint/package.json index e4c0cfb994..e57e7ce389 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -40,6 +40,6 @@ "prettier": "2.8.8" }, "peerDependencies": { - "typescript": "~4.9.0" + "typescript": "~5.0.0" } } From 667e0de3cf41922bf5b8db0abfe05fd93d1115af Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Sat, 5 Apr 2025 00:48:24 -0400 Subject: [PATCH 027/123] Update package.json --- package.json | 4 ++-- tools/build/bin/ts-downlevel.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fbd9a853b9..121d4500d4 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "build:cli": "turbo run build tsc --filter=@lg-tools/cli", "build:docs": "turbo run docs", "build:tsc": "turbo run tsc", - "build:tsc-downlevel": "turbo run tsc -- --downlevel", + "build:ts-downlevel": "pnpm recursive exec lg-ts-downlevel", "build-storybook": "npx storybook build", "chromatic": "npx chromatic", "clean": "npm-run-all --parallel clean:*", @@ -27,7 +27,7 @@ "fix": "lg lint --fix", "link": "lg link", "lint": "lg lint", - "prepublishOnly": "pnpm run build && pnpm run build:tsc-downlevel && turbo run docs", + "prepublishOnly": "pnpm run build && pnpm build:ts-downlevel && pnpm build:docs", "publish": "pnpm changeset publish --public", "slackbot": "lg slackbot release", "start": "npx storybook dev -p 9001 --no-version-updates --no-open", diff --git a/tools/build/bin/ts-downlevel.js b/tools/build/bin/ts-downlevel.js index dd1ddca04c..35b3f7cef8 100755 --- a/tools/build/bin/ts-downlevel.js +++ b/tools/build/bin/ts-downlevel.js @@ -1,3 +1,5 @@ #! /usr/bin/env node const { runTypescriptDownlevel } = require('../dist/index.js'); -runTypescriptDownlevel({ verbose: true }); +const args = process.argv.slice(2); +const verbose = args.includes('--verbose') || args.includes('-v'); +runTypescriptDownlevel({ verbose }); From 39c072edbb8e323916e0ac5dc3d66e244b606252 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 7 Apr 2025 13:02:51 -0400 Subject: [PATCH 028/123] lint --- tools/build/src/typescript/build-ts.ts | 3 ++- tools/build/src/typescript/downlevel/downlevel-dts.ts | 4 ++-- tools/build/src/typescript/downlevel/getTypeVersions.ts | 3 ++- tools/build/src/typescript/downlevel/index.ts | 2 +- tools/build/src/typescript/parsePassThruOptions.ts | 2 ++ 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/tools/build/src/typescript/build-ts.ts b/tools/build/src/typescript/build-ts.ts index e4524feb1e..ed8ca506ac 100644 --- a/tools/build/src/typescript/build-ts.ts +++ b/tools/build/src/typescript/build-ts.ts @@ -3,9 +3,10 @@ import chalk from 'chalk'; import fse from 'fs-extra'; import path from 'path'; import ts from 'typescript'; + +import { runTypescriptDownlevel } from './downlevel'; import { makeTypescriptDiagnosticReporter } from './makeTypescriptDiagnosticReporter'; import { parsePassThruOptions } from './parsePassThruOptions'; -import { runTypescriptDownlevel } from './downlevel'; interface BuildTypescriptOptions { /** Whether to print verbose output*/ diff --git a/tools/build/src/typescript/downlevel/downlevel-dts.ts b/tools/build/src/typescript/downlevel/downlevel-dts.ts index 16be26438c..a5baa68b81 100644 --- a/tools/build/src/typescript/downlevel/downlevel-dts.ts +++ b/tools/build/src/typescript/downlevel/downlevel-dts.ts @@ -1,9 +1,9 @@ /* eslint-disable no-console */ import chalk from 'chalk'; -import path from 'path'; -import fse from 'fs-extra'; // @ts-ignore - ironically, this package doesn't have types import { main as downlevel } from 'downlevel-dts'; +import fse from 'fs-extra'; +import path from 'path'; interface DownlevelDtsOptions { /** Whether to print verbose output */ diff --git a/tools/build/src/typescript/downlevel/getTypeVersions.ts b/tools/build/src/typescript/downlevel/getTypeVersions.ts index bbbbe61b34..6898d19ba4 100644 --- a/tools/build/src/typescript/downlevel/getTypeVersions.ts +++ b/tools/build/src/typescript/downlevel/getTypeVersions.ts @@ -7,7 +7,7 @@ import chalk from 'chalk'; */ export const getTypeVersions = (typesVersions?: { [target: string]: { - [files: string]: string[]; + [files: string]: Array; }; }): Array<`${number}.${number}`> | undefined => { if (!typesVersions || typeof typesVersions !== 'object') return; @@ -28,6 +28,7 @@ export const getTypeVersions = (typesVersions?: { // Get just the version number without the 'ts' prefix const versionNumber = outputDirMatch[1] as `${number}.${number}`; + // Check if the version number is valid if (!/^\d+\.\d+$/.test(versionNumber)) { console.log( diff --git a/tools/build/src/typescript/downlevel/index.ts b/tools/build/src/typescript/downlevel/index.ts index 9ba4a477a4..b30de460fd 100644 --- a/tools/build/src/typescript/downlevel/index.ts +++ b/tools/build/src/typescript/downlevel/index.ts @@ -1,6 +1,6 @@ import chalk from 'chalk'; -import path from 'path'; import fse from 'fs-extra'; +import path from 'path'; import { downlevelDts } from './downlevel-dts'; import { getTypeVersions } from './getTypeVersions'; diff --git a/tools/build/src/typescript/parsePassThruOptions.ts b/tools/build/src/typescript/parsePassThruOptions.ts index 7aec7c99fc..056cd6effa 100644 --- a/tools/build/src/typescript/parsePassThruOptions.ts +++ b/tools/build/src/typescript/parsePassThruOptions.ts @@ -8,11 +8,13 @@ export function parsePassThruOptions( return passThru?.reduce((acc, arg) => { const [_key, value] = arg.split('='); const key = _key.replace(/^-+/, ''); + if (value) { acc[key] = value; } else { acc[key] = true; } + return acc; }, {} as Record); } From 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 7 Apr 2025 13:59:53 -0400 Subject: [PATCH 029/123] lint console --- tools/build/src/typescript/downlevel/getTypeVersions.ts | 1 + tools/build/src/typescript/downlevel/index.ts | 1 + tools/build/src/typescript/makeTypescriptDiagnosticReporter.ts | 1 + tools/lint/src/config.ts | 3 ++- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/build/src/typescript/downlevel/getTypeVersions.ts b/tools/build/src/typescript/downlevel/getTypeVersions.ts index 6898d19ba4..ddd7923d19 100644 --- a/tools/build/src/typescript/downlevel/getTypeVersions.ts +++ b/tools/build/src/typescript/downlevel/getTypeVersions.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import chalk from 'chalk'; /** diff --git a/tools/build/src/typescript/downlevel/index.ts b/tools/build/src/typescript/downlevel/index.ts index b30de460fd..6a781e8659 100644 --- a/tools/build/src/typescript/downlevel/index.ts +++ b/tools/build/src/typescript/downlevel/index.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import chalk from 'chalk'; import fse from 'fs-extra'; import path from 'path'; diff --git a/tools/build/src/typescript/makeTypescriptDiagnosticReporter.ts b/tools/build/src/typescript/makeTypescriptDiagnosticReporter.ts index 3ef9fee903..aa8771cad5 100644 --- a/tools/build/src/typescript/makeTypescriptDiagnosticReporter.ts +++ b/tools/build/src/typescript/makeTypescriptDiagnosticReporter.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import chalk from 'chalk'; import ts from 'typescript'; /** diff --git a/tools/lint/src/config.ts b/tools/lint/src/config.ts index a0a595b112..0cc587d750 100644 --- a/tools/lint/src/config.ts +++ b/tools/lint/src/config.ts @@ -15,10 +15,11 @@ export const esLintExtensions = ['ts', 'tsx']; // Create an instance of ESLint with the configuration passed to the function export function createESLintInstance(options: Partial): ESLint { - return new ESLint({ + const eslint = new ESLint({ overrideConfigFile: eslintConfigPath, ...options, }); + return eslint; } /******************* From e0a48e33032b84aab895d2d356d51bb2499b94ad Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 8 Apr 2025 17:51:46 -0400 Subject: [PATCH 030/123] Update build-ts.spec.ts --- tools/build/src/typescript/build-ts.spec.ts | 119 +++++++++++++++++--- 1 file changed, 104 insertions(+), 15 deletions(-) diff --git a/tools/build/src/typescript/build-ts.spec.ts b/tools/build/src/typescript/build-ts.spec.ts index 44b9e7ed18..71fbc7f7f6 100644 --- a/tools/build/src/typescript/build-ts.spec.ts +++ b/tools/build/src/typescript/build-ts.spec.ts @@ -1,24 +1,113 @@ -import xSpawn from 'cross-spawn'; +import chalk from 'chalk'; +import mockFs from 'mock-fs'; import { buildTypescript } from './build-ts'; -type SpawnType = ReturnType; -const onCb = (_e: string) => {}; +import { runTypescriptDownlevel } from './downlevel'; -const spawnSpy = jest.spyOn(xSpawn, 'spawn'); -spawnSpy.mockImplementation( - (..._args) => ({ on: onCb } as unknown as SpawnType), -); +// Only mock the downlevel function +jest.mock('./downlevel'); -describe('tools/build/build-ts', () => { - test('runs with no options', () => { +// Mock process.exit to prevent tests from actually exiting +const originalExit = process.exit; +let mockExit: jest.Mock; + +describe('buildTypescript', () => { + let consoleLogSpy: jest.SpyInstance; + let consoleErrorSpy: jest.SpyInstance; + let originalCwd: () => string; + + beforeAll(() => { + // Save original process.exit and cwd + originalCwd = process.cwd; + mockExit = jest.fn(); + process.exit = mockExit as any; + }); + + afterAll(() => { + // Restore process.exit and cwd + process.exit = originalExit; + process.cwd = originalCwd; + }); + + beforeEach(() => { + jest.clearAllMocks(); + + // Mock console methods for output verification + consoleLogSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); + consoleErrorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); + }); + + afterEach(() => { + consoleLogSpy.mockRestore(); + consoleErrorSpy.mockRestore(); + mockFs.restore(); + }); + + test('should run downlevel when option is provided', () => { + buildTypescript([], { downlevel: true }); + + // Only verify the side effect we care about + expect(runTypescriptDownlevel).toHaveBeenCalled(); + }); + + test('should not run downlevel when option is not provided', () => { buildTypescript(); + expect(runTypescriptDownlevel).not.toHaveBeenCalled(); + }); - expect(spawnSpy).toHaveBeenCalledWith( - 'tsc', - expect.arrayContaining(['--build']), - expect.objectContaining({ - stdio: 'inherit', - }), + test('should log verbose information when enabled', () => { + buildTypescript([], { verbose: true }); + // Only verify the observable output + expect(consoleLogSpy).toHaveBeenCalledWith( + chalk.blue.bold(expect.stringContaining('Building TypeScript')), ); }); + + describe('with mock filesystem', () => { + test('should find tsconfig.json in the current directory', () => { + // Mock a directory with tsconfig.json + mockFs({ + '/test-project': { + 'package.json': '{"name": "test-project"}', + 'tsconfig.json': '{"compilerOptions": {}}', + src: { + 'index.ts': 'console.log("Hello world");', + }, + }, + }); + + // Set cwd to our test directory + jest.spyOn(process, 'cwd').mockReturnValue('/test-project'); + + buildTypescript(); + + // Verify no error about missing tsconfig + expect(consoleErrorSpy).not.toHaveBeenCalledWith( + chalk.red(expect.stringContaining('Could not find tsconfig')), + ); + }); + + test('should exit with error when tsconfig.json is not found', () => { + // Mock a directory without tsconfig.json + mockFs({ + '/test-project': { + 'package.json': '{"name": "test-project"}', + src: { + 'index.ts': 'console.log("Hello world");', + }, + }, + }); + + // Set cwd to our test directory + jest.spyOn(process, 'cwd').mockReturnValue('/test-project'); + + buildTypescript(); + + // Verify error was logged and process exit was called + expect(consoleErrorSpy).toHaveBeenCalledWith( + chalk.red(expect.stringContaining('Could not find tsconfig')), + ); + expect(mockExit).toHaveBeenCalledWith(1); + }); + }); }); From 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 9 Apr 2025 17:06:44 -0400 Subject: [PATCH 031/123] Update pnpm-lock.yaml --- pnpm-lock.yaml | 165 ++++++++++++------------------------------------- 1 file changed, 40 insertions(+), 125 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0dd64b361a..1c9dd9f6fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1624,7 +1624,7 @@ importers: version: 11.0.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250404) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -3336,10 +3336,10 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.9.0-dev.20250404) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.9.0-dev.20250404) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) '@storybook/test': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) @@ -3348,7 +3348,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.9.0-dev.20250404) + version: 8.0.1(typescript@5.0.4) babel-loader: specifier: 9.2.1 version: 9.2.1(@babel/core@7.24.3)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) @@ -3375,7 +3375,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.9.0-dev.20250404) + version: 2.2.2(typescript@5.0.4) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3507,7 +3507,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -9958,11 +9958,6 @@ packages: engines: {node: '>=12.20'} hasBin: true - typescript@5.9.0-dev.20250404: - resolution: {integrity: sha512-GL0YP8pAL3ug0rLp7Sii/ML+kYUkfCU2wxk4O+aV2H3rYfligNa+/SaXzpXfRMaa5wjDnbNUq9mAuhGpMvIUHQ==} - engines: {node: '>=14.17'} - hasBin: true - unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} @@ -11828,7 +11823,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -11842,7 +11837,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12313,7 +12308,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@2.8.8))(typescript@5.9.0-dev.20250404)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@2.8.8)) '@types/semver': 7.5.0 @@ -12323,7 +12318,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250404)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -12341,7 +12336,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.9.0-dev.20250404 + typescript: 5.0.4 transitivePeerDependencies: - '@swc/core' - esbuild @@ -12423,11 +12418,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@2.8.8) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.9.0-dev.20250404)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.9.0-dev.20250404) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250404)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -12440,7 +12435,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.9.0-dev.20250404 + typescript: 5.0.4 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -12453,16 +12448,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@2.8.8) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250404)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250404) + react-docgen-typescript: 2.2.2(typescript@5.0.4) tslib: 2.6.2 - typescript: 5.9.0-dev.20250404 + typescript: 5.0.4 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -12473,16 +12468,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@2.8.8) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.9.0-dev.20250404)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@2.8.8))(typescript@5.9.0-dev.20250404) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.9.0-dev.20250404) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.9.0-dev.20250404) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@2.8.8) optionalDependencies: - typescript: 5.9.0-dev.20250404 + typescript: 5.0.4 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -12506,21 +12501,6 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@2.8.8)) typescript: 5.0.4 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.9.0-dev.20250404)': - dependencies: - '@storybook/components': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/global': 5.0.0 - '@storybook/manager-api': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/preview-api': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/react-dom-shim': 8.6.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8)) - '@storybook/theming': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - storybook: 8.6.12(prettier@2.8.8) - optionalDependencies: - '@storybook/test': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - typescript: 5.9.0-dev.20250404 - '@storybook/test@8.5.3(storybook@8.6.12(prettier@2.8.8))': dependencies: '@storybook/csf': 0.1.12 @@ -12670,17 +12650,6 @@ snapshots: - supports-color - typescript - '@svgr/core@8.0.0(typescript@5.9.0-dev.20250404)': - dependencies: - '@babel/core': 7.24.3 - '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250404) - snake-case: 3.0.4 - transitivePeerDependencies: - - supports-color - - typescript - '@svgr/core@8.1.0(typescript@5.0.4)': dependencies: '@babel/core': 7.24.3 @@ -12720,16 +12689,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))': - dependencies: - '@babel/core': 7.24.3 - '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) - '@svgr/hast-util-to-babel-ast': 8.0.0 - svg-parser: 2.0.4 - transitivePeerDependencies: - - supports-color - '@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0(typescript@5.0.4))': dependencies: '@babel/core': 7.24.3 @@ -12755,15 +12714,6 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404)': - dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250404) - deepmerge: 4.3.1 - svgo: 3.0.2 - transitivePeerDependencies: - - typescript - '@svgr/plugin-svgo@8.1.0(@svgr/core@8.1.0(typescript@5.0.4))(typescript@5.0.4)': dependencies: '@svgr/core': 8.1.0(typescript@5.0.4) @@ -12789,16 +12739,16 @@ snapshots: - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250404)': + '@svgr/webpack@8.0.1(typescript@5.0.4)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250404) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250404))(typescript@5.9.0-dev.20250404) + '@svgr/core': 8.0.0(typescript@5.0.4) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4) transitivePeerDependencies: - supports-color - typescript @@ -14014,15 +13964,6 @@ snapshots: optionalDependencies: typescript: 5.0.4 - cosmiconfig@8.3.6(typescript@5.9.0-dev.20250404): - dependencies: - import-fresh: 3.3.0 - js-yaml: 4.1.0 - parse-json: 5.2.0 - path-type: 4.0.0 - optionalDependencies: - typescript: 5.9.0-dev.20250404 - create-require@1.1.1: {} cross-spawn-async@2.2.5: @@ -14689,7 +14630,7 @@ snapshots: eslint-plugin-storybook@0.11.1(eslint@9.16.0)(typescript@5.0.4): dependencies: - '@storybook/csf': 0.1.13 + '@storybook/csf': 0.1.12 '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) eslint: 9.16.0 ts-dedent: 2.2.0 @@ -14957,7 +14898,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250404)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -14971,7 +14912,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.9.0-dev.20250404 + typescript: 5.0.4 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -15603,16 +15544,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -15687,7 +15628,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -15713,7 +15654,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -15981,12 +15922,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -17323,10 +17264,6 @@ snapshots: dependencies: typescript: 5.0.4 - react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250404): - dependencies: - typescript: 5.9.0-dev.20250404 - react-docgen@7.0.3: dependencies: '@babel/core': 7.24.3 @@ -18216,27 +18153,7 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250404): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.11 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 20.17.12 - acorn: 8.14.0 - acorn-walk: 8.3.3 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.9.0-dev.20250404 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - optionalDependencies: - '@swc/core': 1.4.2(@swc/helpers@0.5.1) - - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250404): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -18250,7 +18167,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250404 + typescript: 5.0.4 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -18377,8 +18294,6 @@ snapshots: typescript@5.0.4: {} - typescript@5.9.0-dev.20250404: {} - unbox-primitive@1.0.2: dependencies: call-bind: 1.0.7 From 65f92fc302ac2f8f645b7717f5e649402721cba1 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 9 Apr 2025 17:16:05 -0400 Subject: [PATCH 032/123] add missing mock-fs --- pnpm-lock.yaml | 10 ++++++++++ tools/build/package.json | 3 +++ 2 files changed, 13 insertions(+) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c9dd9f6fd..8ba6391f16 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2991,6 +2991,10 @@ importers: typescript: specifier: ~5.0.4 version: 5.0.4 + devDependencies: + mock-fs: + specifier: ^5.5.0 + version: 5.5.0 tools/cli: dependencies: @@ -8554,6 +8558,10 @@ packages: engines: {node: '>=10'} hasBin: true + mock-fs@5.5.0: + resolution: {integrity: sha512-d/P1M/RacgM3dB0sJ8rjeRNXxtapkPCUnMGmIN0ixJ16F/E4GUZCvWcSGfWGz8eaXYvn1s9baUwNjI4LOPEjiA==} + engines: {node: '>=12.0.0'} + mockdate@3.0.5: resolution: {integrity: sha512-iniQP4rj1FhBdBYS/+eQv7j1tadJ9lJtdzgOpvsOHng/GbcDh2Fhdeq+ZRldrPYdXvCyfFUmFeEwEGXZB5I/AQ==} @@ -16759,6 +16767,8 @@ snapshots: mkdirp@1.0.4: {} + mock-fs@5.5.0: {} + mockdate@3.0.5: {} moo-color@1.0.3: diff --git a/tools/build/package.json b/tools/build/package.json index ca7ac52e74..66a14561f7 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -51,5 +51,8 @@ "@babel/core": "7.24.0", "turbo": "^2.0.6", "typescript": "~5.0.0" + }, + "devDependencies": { + "mock-fs": "^5.5.0" } } From af384a23540e916cb8ff58d8421bc57d14e4f42f Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 9 Apr 2025 17:16:45 -0400 Subject: [PATCH 033/123] @types/mock-fs --- pnpm-lock.yaml | 10 ++++++++++ tools/build/package.json | 1 + 2 files changed, 11 insertions(+) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8ba6391f16..2f2002902a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2992,6 +2992,9 @@ importers: specifier: ~5.0.4 version: 5.0.4 devDependencies: + '@types/mock-fs': + specifier: ^4.13.4 + version: 4.13.4 mock-fs: specifier: ^5.5.0 version: 5.5.0 @@ -5744,6 +5747,9 @@ packages: '@types/minimist@1.2.2': resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} + '@types/mock-fs@4.13.4': + resolution: {integrity: sha512-mXmM0o6lULPI8z3XNnQCpL0BGxPwx1Ul1wXYEPBGl4efShyxW2Rln0JOPEWGyZaYZMM6OVXM/15zUuFMY52ljg==} + '@types/ms@0.7.31': resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==} @@ -13050,6 +13056,10 @@ snapshots: '@types/minimist@1.2.2': {} + '@types/mock-fs@4.13.4': + dependencies: + '@types/node': 20.17.12 + '@types/ms@0.7.31': {} '@types/node-fetch@2.6.12': diff --git a/tools/build/package.json b/tools/build/package.json index 66a14561f7..a36eab3608 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -53,6 +53,7 @@ "typescript": "~5.0.0" }, "devDependencies": { + "@types/mock-fs": "^4.13.4", "mock-fs": "^5.5.0" } } From f3139d791392e785837a1aa227753e77974a6d6d Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 9 Apr 2025 17:21:45 -0400 Subject: [PATCH 034/123] remove TS 3 downleveling --- charts/chart-card/package.json | 5 ----- charts/colors/package.json | 5 ----- charts/core/package.json | 5 ----- charts/drag-provider/package.json | 5 ----- charts/legend/package.json | 5 ----- charts/series-provider/package.json | 5 ----- chat/avatar/package.json | 5 ----- chat/chat-disclaimer/package.json | 5 ----- chat/chat-window/package.json | 5 ----- chat/fixed-chat-window/package.json | 5 ----- chat/input-bar/package.json | 5 ----- chat/leafygreen-chat-provider/package.json | 5 ----- chat/lg-markdown/package.json | 5 ----- chat/message-feed/package.json | 5 ----- chat/message-feedback/package.json | 5 ----- chat/message-prompts/package.json | 5 ----- chat/message-rating/package.json | 5 ----- chat/message/package.json | 5 ----- chat/rich-links/package.json | 5 ----- chat/title-bar/package.json | 5 ----- packages/a11y/package.json | 5 ----- packages/avatar/package.json | 5 ----- packages/badge/package.json | 5 ----- packages/banner/package.json | 5 ----- packages/box/package.json | 5 ----- packages/button/package.json | 5 ----- packages/callout/package.json | 5 ----- packages/card/package.json | 5 ----- packages/checkbox/package.json | 5 ----- packages/chip/package.json | 5 ----- packages/code/package.json | 5 ----- packages/combobox/package.json | 5 ----- packages/confirmation-modal/package.json | 5 ----- packages/copyable/package.json | 5 ----- packages/date-picker/package.json | 5 ----- packages/date-utils/package.json | 5 ----- packages/descendants/package.json | 5 ----- packages/drawer/package.json | 5 ----- packages/emotion/package.json | 5 ----- packages/empty-state/package.json | 5 ----- packages/expandable-card/package.json | 5 ----- packages/form-field/package.json | 5 ----- packages/form-footer/package.json | 5 ----- packages/gallery-indicator/package.json | 5 ----- packages/guide-cue/package.json | 5 ----- packages/hooks/package.json | 5 ----- packages/icon-button/package.json | 5 ----- packages/icon/package.json | 5 ----- packages/info-sprinkle/package.json | 5 ----- packages/inline-definition/package.json | 5 ----- packages/input-option/package.json | 5 ----- packages/leafygreen-provider/package.json | 5 ----- packages/lib/package.json | 5 ----- packages/loading-indicator/package.json | 5 ----- packages/logo/package.json | 5 ----- packages/marketing-modal/package.json | 5 ----- packages/menu/package.json | 5 ----- packages/modal/package.json | 5 ----- packages/number-input/package.json | 5 ----- packages/ordered-list/package.json | 5 ----- packages/pagination/package.json | 5 ----- packages/palette/package.json | 5 ----- packages/password-input/package.json | 5 ----- packages/pipeline/package.json | 5 ----- packages/polymorphic/package.json | 5 ----- packages/popover/package.json | 5 ----- packages/portal/package.json | 5 ----- packages/radio-box-group/package.json | 5 ----- packages/radio-group/package.json | 5 ----- packages/ripple/package.json | 5 ----- packages/search-input/package.json | 5 ----- packages/segmented-control/package.json | 5 ----- packages/select/package.json | 5 ----- packages/side-nav/package.json | 5 ----- packages/skeleton-loader/package.json | 5 ----- packages/split-button/package.json | 5 ----- packages/stepper/package.json | 5 ----- packages/table/package.json | 5 ----- packages/tabs/package.json | 5 ----- packages/testing-lib/package.json | 5 ----- packages/text-area/package.json | 5 ----- packages/text-input/package.json | 5 ----- packages/toast/package.json | 5 ----- packages/toggle/package.json | 5 ----- packages/tokens/package.json | 5 ----- packages/tooltip/package.json | 5 ----- packages/typography/package.json | 5 ----- 87 files changed, 435 deletions(-) diff --git a/charts/chart-card/package.json b/charts/chart-card/package.json index af0d97b664..fa9f53b9dd 100644 --- a/charts/chart-card/package.json +++ b/charts/chart-card/package.json @@ -36,11 +36,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/charts/colors/package.json b/charts/colors/package.json index df7a89ea07..ed4baeb068 100644 --- a/charts/colors/package.json +++ b/charts/colors/package.json @@ -33,11 +33,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/charts/core/package.json b/charts/core/package.json index 99346ab4f8..97398a3cd6 100644 --- a/charts/core/package.json +++ b/charts/core/package.json @@ -44,11 +44,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index 8c5491ef63..86396d3349 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -34,11 +34,6 @@ "@storybook/test": "8.5.3" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/charts/legend/package.json b/charts/legend/package.json index 373a9084a1..71c21fefd5 100644 --- a/charts/legend/package.json +++ b/charts/legend/package.json @@ -38,11 +38,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index a4846a84e5..56f61d9991 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -25,11 +25,6 @@ "@leafygreen-ui/leafygreen-provider": "workspace:^" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/avatar/package.json b/chat/avatar/package.json index f5e40d5e3c..9ccfeb96e7 100644 --- a/chat/avatar/package.json +++ b/chat/avatar/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/chat-disclaimer/package.json b/chat/chat-disclaimer/package.json index 6d84b49ad4..5321a9879f 100644 --- a/chat/chat-disclaimer/package.json +++ b/chat/chat-disclaimer/package.json @@ -34,11 +34,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index dba44155a5..870c77db97 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/fixed-chat-window/package.json b/chat/fixed-chat-window/package.json index ea30711d92..e798da7f09 100644 --- a/chat/fixed-chat-window/package.json +++ b/chat/fixed-chat-window/package.json @@ -47,11 +47,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index 486ad2833d..dc403516d8 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index 67220c8104..a5d31c6579 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index cb1db5e53a..5e37623b89 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index 1a9e0dbbc3..4cf8b72f25 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index ebcf2f215e..deca1576ba 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/message-prompts/package.json b/chat/message-prompts/package.json index a09d7d21db..82fe664857 100644 --- a/chat/message-prompts/package.json +++ b/chat/message-prompts/package.json @@ -34,11 +34,6 @@ }, "devDependencies": {}, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index 295a5e6e37..c7317c3b3c 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/message/package.json b/chat/message/package.json index 6263e42c2a..3d9386a55d 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/rich-links/package.json b/chat/rich-links/package.json index 7308ecb772..195928dc64 100644 --- a/chat/rich-links/package.json +++ b/chat/rich-links/package.json @@ -38,11 +38,6 @@ }, "devDependencies": {}, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index 94aa532f67..2b4bfe7217 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 71a65031e3..146339cfb1 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/avatar/package.json b/packages/avatar/package.json index d47a393f1c..5704a812e0 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/badge/package.json b/packages/badge/package.json index a96d9c0f75..3763a61f4d 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/banner/package.json b/packages/banner/package.json index b985ed581e..1bd94f6f43 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/box/package.json b/packages/box/package.json index cfb3897f38..c3eee4d2aa 100644 --- a/packages/box/package.json +++ b/packages/box/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/button/package.json b/packages/button/package.json index 0e519733e2..873d7aa072 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/callout/package.json b/packages/callout/package.json index 7610c37cc9..c67e97040d 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/card/package.json b/packages/card/package.json index 2484c7bcf1..84a804dfb0 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index cc428d6660..86a45ae986 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/chip/package.json b/packages/chip/package.json index 3677b8e837..073cd7eeb4 100644 --- a/packages/chip/package.json +++ b/packages/chip/package.json @@ -35,11 +35,6 @@ }, "devDependencies": {}, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/code/package.json b/packages/code/package.json index 8d6e6aff4b..4184305a37 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/combobox/package.json b/packages/combobox/package.json index 1060bc1b88..fbfba725e0 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index 59be1e5a3b..61ffdd0879 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/copyable/package.json b/packages/copyable/package.json index 03776a0b23..de5b5026a1 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index a2f04c065f..85a263d948 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -51,11 +51,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index 7bad2a8ce4..581b9d9382 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -39,11 +39,6 @@ "date-fns" ], "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/descendants/package.json b/packages/descendants/package.json index ce8157d794..95fd67d79d 100644 --- a/packages/descendants/package.json +++ b/packages/descendants/package.json @@ -37,11 +37,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/drawer/package.json b/packages/drawer/package.json index 14f444b4bf..24d7e3fd71 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -45,11 +45,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 3cea23bd1f..2726d5555f 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index bd2ca31dd2..7d5d5a0d9a 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index 067a7f8843..2db1cf7b1b 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/form-field/package.json b/packages/form-field/package.json index 6af956e0a3..edcea57534 100644 --- a/packages/form-field/package.json +++ b/packages/form-field/package.json @@ -39,11 +39,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index f192068a8f..a1f5d9a7e9 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index e6d711cac9..0323d6510e 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -34,11 +34,6 @@ }, "devDependencies": {}, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index 7e44fe0f6d..cde3cf11f1 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 39c800453e..b8bbef3366 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index f576cd0a9b..c3a2184e5e 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/icon/package.json b/packages/icon/package.json index 15727a2d8f..b44356ec42 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/info-sprinkle/package.json b/packages/info-sprinkle/package.json index 06dc7c8e9b..196d88e9c2 100644 --- a/packages/info-sprinkle/package.json +++ b/packages/info-sprinkle/package.json @@ -35,11 +35,6 @@ }, "devDependencies": {}, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index 964f8b721c..9c7f152c0e 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/input-option/package.json b/packages/input-option/package.json index a1abb74659..ecab93efc8 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index 2544dafe9f..715f2c4485 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/lib/package.json b/packages/lib/package.json index f494ac06f8..e5b9dbfe94 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index a84e3b890a..29806212fb 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/logo/package.json b/packages/logo/package.json index 7a908bd998..149f8e473c 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index 83642ef800..1f83c4def1 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/menu/package.json b/packages/menu/package.json index 10fca52313..3b8d4022ea 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/modal/package.json b/packages/modal/package.json index 6fb9c52abc..bba841b3e5 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/number-input/package.json b/packages/number-input/package.json index daf702f1ec..efc512c8ec 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/ordered-list/package.json b/packages/ordered-list/package.json index 338136803d..0b67ea745a 100644 --- a/packages/ordered-list/package.json +++ b/packages/ordered-list/package.json @@ -34,11 +34,6 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/pagination/package.json b/packages/pagination/package.json index d04ab7c287..58eb748543 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/palette/package.json b/packages/palette/package.json index ef5c735874..1b26482848 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/password-input/package.json b/packages/password-input/package.json index c61817736f..a6f3eb6caa 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index b3c5baad70..a88d39812e 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index f344ec0fdc..277745afd6 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/popover/package.json b/packages/popover/package.json index f6cfb0fabe..3c15171dc5 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/portal/package.json b/packages/portal/package.json index 2b00ac8561..4cb2f40347 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index 05e381424b..44c61897c3 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index 5b96ea1ce4..08adf2196c 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 384e3ac739..75cdc0459b 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/search-input/package.json b/packages/search-input/package.json index 67cc64fb0d..22bc98d0f5 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index a00b7fd80d..e97681aad1 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/select/package.json b/packages/select/package.json index a57aa2984e..0f526741df 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index 422eaa1c8d..a770aa6516 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index 0d8266336d..6fa37a1275 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/split-button/package.json b/packages/split-button/package.json index 1452659ecd..88b09717c6 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/stepper/package.json b/packages/stepper/package.json index 323a821a3d..3005ea02fc 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/table/package.json b/packages/table/package.json index c0e53e178c..d72e3155e3 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 09b65f5147..d5d868d5d6 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index 7c1580a356..4be3099198 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/text-area/package.json b/packages/text-area/package.json index 572bb61d94..ab917942ce 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/text-input/package.json b/packages/text-input/package.json index 331e566336..eab31e7fab 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/toast/package.json b/packages/toast/package.json index 5d1fecafc0..054d5d8607 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/toggle/package.json b/packages/toggle/package.json index 43cb89c837..d432c35b0a 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 0e7074ee1e..fe825f6ff3 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index 3bbfd78b9c..a99743e4dd 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/packages/typography/package.json b/packages/typography/package.json index a6fbacd248..6c17ce4f7d 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -6,11 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" From 5fa36725f3944eaefe61e6b2ce854444eba65a34 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 9 Apr 2025 18:20:23 -0400 Subject: [PATCH 035/123] rm chalk. fix mockFs --- tools/build/src/typescript/build-ts.spec.ts | 83 +++++++++------------ 1 file changed, 36 insertions(+), 47 deletions(-) diff --git a/tools/build/src/typescript/build-ts.spec.ts b/tools/build/src/typescript/build-ts.spec.ts index 71fbc7f7f6..a5f8374e7a 100644 --- a/tools/build/src/typescript/build-ts.spec.ts +++ b/tools/build/src/typescript/build-ts.spec.ts @@ -1,4 +1,3 @@ -import chalk from 'chalk'; import mockFs from 'mock-fs'; import { buildTypescript } from './build-ts'; @@ -35,6 +34,20 @@ describe('buildTypescript', () => { // Mock console methods for output verification consoleLogSpy = jest.spyOn(console, 'log').mockImplementation(() => {}); consoleErrorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); + + // Set up base mock filesystem for all tests + mockFs({ + '/test-project': { + 'package.json': '{"name": "test-project"}', + 'tsconfig.json': '{"compilerOptions": {}}', + src: { + 'index.ts': 'console.log("Hello world");', + }, + }, + }); + + // Set cwd to our test directory + jest.spyOn(process, 'cwd').mockReturnValue('/test-project'); }); afterEach(() => { @@ -45,8 +58,6 @@ describe('buildTypescript', () => { test('should run downlevel when option is provided', () => { buildTypescript([], { downlevel: true }); - - // Only verify the side effect we care about expect(runTypescriptDownlevel).toHaveBeenCalled(); }); @@ -57,57 +68,35 @@ describe('buildTypescript', () => { test('should log verbose information when enabled', () => { buildTypescript([], { verbose: true }); - // Only verify the observable output expect(consoleLogSpy).toHaveBeenCalledWith( - chalk.blue.bold(expect.stringContaining('Building TypeScript')), + expect.stringContaining('Building TypeScript'), ); }); - describe('with mock filesystem', () => { - test('should find tsconfig.json in the current directory', () => { - // Mock a directory with tsconfig.json - mockFs({ - '/test-project': { - 'package.json': '{"name": "test-project"}', - 'tsconfig.json': '{"compilerOptions": {}}', - src: { - 'index.ts': 'console.log("Hello world");', - }, - }, - }); - - // Set cwd to our test directory - jest.spyOn(process, 'cwd').mockReturnValue('/test-project'); - - buildTypescript(); - - // Verify no error about missing tsconfig - expect(consoleErrorSpy).not.toHaveBeenCalledWith( - chalk.red(expect.stringContaining('Could not find tsconfig')), - ); - }); + test('should find tsconfig.json in the current directory', () => { + buildTypescript(); + expect(consoleErrorSpy).not.toHaveBeenCalledWith( + expect.stringContaining('Could not find tsconfig'), + ); + }); - test('should exit with error when tsconfig.json is not found', () => { - // Mock a directory without tsconfig.json - mockFs({ - '/test-project': { - 'package.json': '{"name": "test-project"}', - src: { - 'index.ts': 'console.log("Hello world");', - }, + test('should exit with error when tsconfig.json is not found', () => { + // Remove tsconfig.json from mock filesystem + mockFs.restore(); + mockFs({ + '/test-project': { + 'package.json': '{"name": "test-project"}', + src: { + 'index.ts': 'console.log("Hello world");', }, - }); - - // Set cwd to our test directory - jest.spyOn(process, 'cwd').mockReturnValue('/test-project'); + }, + }); - buildTypescript(); + buildTypescript(); - // Verify error was logged and process exit was called - expect(consoleErrorSpy).toHaveBeenCalledWith( - chalk.red(expect.stringContaining('Could not find tsconfig')), - ); - expect(mockExit).toHaveBeenCalledWith(1); - }); + expect(consoleErrorSpy).toHaveBeenCalledWith( + expect.stringContaining('Could not find tsconfig'), + ); + expect(mockExit).toHaveBeenCalledWith(1); }); }); From d994c1a23942688883a6894653a0473ce3784ac5 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 14 Apr 2025 16:16:33 -0400 Subject: [PATCH 036/123] creates updateTypesVersions script --- tools/build/package.json | 3 +- tools/build/scripts/tsconfig.json | 8 +++ tools/build/scripts/updateTypesVersions.ts | 64 ++++++++++++++++++++++ 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 tools/build/scripts/tsconfig.json create mode 100644 tools/build/scripts/updateTypesVersions.ts diff --git a/tools/build/package.json b/tools/build/package.json index a36eab3608..8c2a27d60b 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -14,7 +14,8 @@ "module": "dist/esm/index.js", "scripts": { "build": "rollup -c ./config/rollup.config.mjs", - "tsc": "tsc --build tsconfig.json" + "tsc": "tsc --build tsconfig.json", + "update-types-versions": "ts-node ./scripts/updateTypesVersions.ts" }, "dependencies": { "@babel/core": "7.24.3", diff --git a/tools/build/scripts/tsconfig.json b/tools/build/scripts/tsconfig.json new file mode 100644 index 0000000000..0d7684cfc6 --- /dev/null +++ b/tools/build/scripts/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../config/root.tsconfig.json", + "compilerOptions": { + "noUnusedLocals": false, + "strict": true, + "baseUrl": ".", + } +} diff --git a/tools/build/scripts/updateTypesVersions.ts b/tools/build/scripts/updateTypesVersions.ts new file mode 100644 index 0000000000..d98dab70bd --- /dev/null +++ b/tools/build/scripts/updateTypesVersions.ts @@ -0,0 +1,64 @@ +/* eslint-disable no-console */ +import fs from 'fs'; +import { glob } from 'glob'; +import path from 'path'; +import { promisify } from 'util'; + +const readFile = promisify(fs.readFile); +const writeFile = promisify(fs.writeFile); + +const TYPES_VERSIONS_CONFIG = { + '<5.0': { + '*': ['dist/ts4.9/*'], + }, +}; + +/** + * Updates the `typesVersions` field in all package.json files + * + * Run this script if we need to change the TypeScript downleveling. + * + * The current build script parses the `typesVersions` field + * to determine which TypeScript version to use for downleveling. + */ +async function updateTypesVersions() { + try { + console.log('Updating typesVersions in package.json files...'); + + // Find the repository root (assuming this script is in tools/build/scripts) + const repoRoot = path.resolve(__dirname, '../../../'); + console.log(`Repository root: ${repoRoot}`); + + // Find all package.json files in the packages directory from the repo root + const packageJsonPaths = await glob('packages/*/package.json', { + cwd: repoRoot, + absolute: true, + }); + + console.log(`Found ${packageJsonPaths.length} package.json files`); + + // Process each package.json file + for (const filePath of packageJsonPaths) { + console.log(`Processing ${path.relative(repoRoot, filePath)}`); + + // Read the file + const content = await readFile(filePath, 'utf-8'); + const packageJson = JSON.parse(content); + + // Update the typesVersions field + packageJson.typesVersions = TYPES_VERSIONS_CONFIG; + + // Write the updated content back to the file + const updatedContent = JSON.stringify(packageJson, null, 2) + '\n'; + await writeFile(filePath, updatedContent); + } + + console.log('Successfully updated typesVersions in all package.json files'); + } catch (error) { + console.error('Error updating typesVersions:', error); + process.exit(1); + } +} + +// Execute the function +updateTypesVersions(); From cfb9da919ead2227cb9fcf5af05eefc68421c150 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 14 Apr 2025 16:24:38 -0400 Subject: [PATCH 037/123] exclude packages from ts downlevel script --- package.json | 9 +++++- tools/build/scripts/updateTypesVersions.ts | 32 ++++++++++++++++++---- tools/codemods/package.json | 7 +++++ tools/lint/package.json | 7 +++++ tools/meta/package.json | 5 ---- tools/test-harnesses/package.json | 5 ---- 6 files changed, 49 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 30c5d59c30..3d4dda494d 100644 --- a/package.json +++ b/package.json @@ -106,5 +106,12 @@ "bugs": { "url": "https://github.com/mongodb/leafygreen-ui/issues" }, - "packageManager": "pnpm@9.15.0" + "packageManager": "pnpm@9.15.0", + "typesVersions": { + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } + } } diff --git a/tools/build/scripts/updateTypesVersions.ts b/tools/build/scripts/updateTypesVersions.ts index d98dab70bd..3b1c2cd051 100644 --- a/tools/build/scripts/updateTypesVersions.ts +++ b/tools/build/scripts/updateTypesVersions.ts @@ -1,4 +1,5 @@ /* eslint-disable no-console */ +import chalk from 'chalk'; import fs from 'fs'; import { glob } from 'glob'; import path from 'path'; @@ -7,6 +8,21 @@ import { promisify } from 'util'; const readFile = promisify(fs.readFile); const writeFile = promisify(fs.writeFile); +// Packages to exclude from typesVersions updates +// These packages are CLI-only, and don't need to be down-leveled +const EXCLUDED_PACKAGES = [ + '@lg-tools/build', + '@lg-tools/cli', + '@lg-tools/create', + '@lg-tools/install', + '@lg-tools/link', + '@lg-tools/slackbot', + '@lg-tools/build', + '@lg-tools/test', + '@lg-tools/update', + '@lg-tools/validate', +]; + const TYPES_VERSIONS_CONFIG = { '<5.0': { '*': ['dist/ts4.9/*'], @@ -27,24 +43,30 @@ async function updateTypesVersions() { // Find the repository root (assuming this script is in tools/build/scripts) const repoRoot = path.resolve(__dirname, '../../../'); - console.log(`Repository root: ${repoRoot}`); // Find all package.json files in the packages directory from the repo root - const packageJsonPaths = await glob('packages/*/package.json', { + const packageJsonPaths = await glob('**/package.json', { cwd: repoRoot, absolute: true, }); - console.log(`Found ${packageJsonPaths.length} package.json files`); + console.log(`Found ${packageJsonPaths.length} packages`); // Process each package.json file for (const filePath of packageJsonPaths) { - console.log(`Processing ${path.relative(repoRoot, filePath)}`); - // Read the file const content = await readFile(filePath, 'utf-8'); const packageJson = JSON.parse(content); + const packageName = packageJson.name; + + if (EXCLUDED_PACKAGES.includes(packageName)) { + console.log(chalk.gray(`\tSkipping excluded package: ${packageName}`)); + continue; + } + + console.log(chalk.gray(`\tProcessing ${packageName}`)); + // Update the typesVersions field packageJson.typesVersions = TYPES_VERSIONS_CONFIG; diff --git a/tools/codemods/package.json b/tools/codemods/package.json index 4ffe089e86..0c529b13fd 100644 --- a/tools/codemods/package.json +++ b/tools/codemods/package.json @@ -34,5 +34,12 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "typesVersions": { + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/tools/lint/package.json b/tools/lint/package.json index 38b9ae88c4..fb74a95588 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -44,5 +44,12 @@ }, "peerDependencies": { "typescript": "~5.0.0" + }, + "typesVersions": { + "<5.0": { + "*": [ + "dist/ts4.9/*" + ] + } } } diff --git a/tools/meta/package.json b/tools/meta/package.json index d10b45d43f..ee352979df 100644 --- a/tools/meta/package.json +++ b/tools/meta/package.json @@ -22,11 +22,6 @@ "lodash": "4.17.21" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index 7ef9d6a4d5..63008cc0ab 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -16,11 +16,6 @@ "@testing-library/dom": "9.3.1" }, "typesVersions": { - "<4.0": { - "*": [ - "dist/ts3.4/*" - ] - }, "<5.0": { "*": [ "dist/ts4.9/*" From b11ab500301067a1a556b46b3e4df6dbda98c3aa Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 14 Apr 2025 16:25:09 -0400 Subject: [PATCH 038/123] remove typesVersions --- charts/chart-card/package.json | 8 +------- charts/colors/package.json | 8 +------- charts/core/package.json | 8 +------- charts/drag-provider/package.json | 8 +------- charts/legend/package.json | 8 +------- charts/series-provider/package.json | 8 +------- chat/avatar/package.json | 8 +------- chat/chat-disclaimer/package.json | 8 +------- chat/chat-window/package.json | 8 +------- chat/fixed-chat-window/package.json | 8 +------- chat/input-bar/package.json | 8 +------- chat/leafygreen-chat-provider/package.json | 8 +------- chat/lg-markdown/package.json | 8 +------- chat/message-feed/package.json | 8 +------- chat/message-feedback/package.json | 8 +------- chat/message-prompts/package.json | 8 +------- chat/message-rating/package.json | 8 +------- chat/message/package.json | 8 +------- chat/rich-links/package.json | 8 +------- chat/title-bar/package.json | 8 +------- package.json | 8 +------- packages/a11y/package.json | 8 +------- packages/avatar/package.json | 8 +------- packages/badge/package.json | 8 +------- packages/banner/package.json | 8 +------- packages/box/package.json | 8 +------- packages/button/package.json | 8 +------- packages/callout/package.json | 8 +------- packages/card/package.json | 8 +------- packages/checkbox/package.json | 8 +------- packages/chip/package.json | 8 +------- packages/code/package.json | 8 +------- packages/combobox/package.json | 8 +------- packages/confirmation-modal/package.json | 8 +------- packages/copyable/package.json | 8 +------- packages/date-picker/package.json | 8 +------- packages/date-utils/package.json | 8 +------- packages/descendants/package.json | 8 +------- packages/drawer/package.json | 8 +------- packages/emotion/package.json | 8 +------- packages/empty-state/package.json | 8 +------- packages/expandable-card/package.json | 8 +------- packages/form-field/package.json | 8 +------- packages/form-footer/package.json | 8 +------- packages/gallery-indicator/package.json | 8 +------- packages/guide-cue/package.json | 8 +------- packages/hooks/package.json | 8 +------- packages/icon-button/package.json | 8 +------- packages/icon/package.json | 8 +------- packages/info-sprinkle/package.json | 8 +------- packages/inline-definition/package.json | 8 +------- packages/input-option/package.json | 8 +------- packages/leafygreen-provider/package.json | 8 +------- packages/lib/package.json | 8 +------- packages/loading-indicator/package.json | 8 +------- packages/logo/package.json | 8 +------- packages/marketing-modal/package.json | 8 +------- packages/menu/package.json | 8 +------- packages/modal/package.json | 8 +------- packages/number-input/package.json | 8 +------- packages/ordered-list/package.json | 8 +------- packages/pagination/package.json | 8 +------- packages/palette/package.json | 8 +------- packages/password-input/package.json | 8 +------- packages/pipeline/package.json | 8 +------- packages/polymorphic/package.json | 8 +------- packages/popover/package.json | 8 +------- packages/portal/package.json | 8 +------- packages/radio-box-group/package.json | 8 +------- packages/radio-group/package.json | 8 +------- packages/ripple/package.json | 8 +------- packages/search-input/package.json | 8 +------- packages/segmented-control/package.json | 8 +------- packages/select/package.json | 8 +------- packages/side-nav/package.json | 8 +------- packages/skeleton-loader/package.json | 8 +------- packages/split-button/package.json | 8 +------- packages/stepper/package.json | 8 +------- packages/table/package.json | 8 +------- packages/tabs/package.json | 8 +------- packages/testing-lib/package.json | 8 +------- packages/text-area/package.json | 8 +------- packages/text-input/package.json | 8 +------- packages/toast/package.json | 8 +------- packages/toggle/package.json | 8 +------- packages/tokens/package.json | 8 +------- packages/tooltip/package.json | 8 +------- packages/typography/package.json | 8 +------- tools/build/scripts/updateTypesVersions.ts | 7 ++----- tools/codemods/package.json | 8 +------- tools/lint/package.json | 8 +------- tools/meta/package.json | 8 +------- tools/storybook-addon/package.json | 8 +------- tools/storybook-decorators/package.json | 8 +------- tools/storybook-utils/package.json | 8 +------- tools/test-harnesses/package.json | 8 +------- 96 files changed, 97 insertions(+), 670 deletions(-) diff --git a/charts/chart-card/package.json b/charts/chart-card/package.json index fa9f53b9dd..52ddf6c0fb 100644 --- a/charts/chart-card/package.json +++ b/charts/chart-card/package.json @@ -35,11 +35,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/charts/colors/package.json b/charts/colors/package.json index ed4baeb068..55207577d2 100644 --- a/charts/colors/package.json +++ b/charts/colors/package.json @@ -32,11 +32,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/charts/core/package.json b/charts/core/package.json index 97398a3cd6..1a5a7cae67 100644 --- a/charts/core/package.json +++ b/charts/core/package.json @@ -43,11 +43,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index 86396d3349..b8d4eb0f30 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -33,11 +33,5 @@ "devDependencies": { "@storybook/test": "8.5.3" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/charts/legend/package.json b/charts/legend/package.json index 71c21fefd5..947c2923a2 100644 --- a/charts/legend/package.json +++ b/charts/legend/package.json @@ -37,11 +37,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index 56f61d9991..d43696d228 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -24,11 +24,5 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/chat/avatar/package.json b/chat/avatar/package.json index 9ccfeb96e7..9d97659c18 100644 --- a/chat/avatar/package.json +++ b/chat/avatar/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/chat-disclaimer/package.json b/chat/chat-disclaimer/package.json index 5321a9879f..20bac4f0c5 100644 --- a/chat/chat-disclaimer/package.json +++ b/chat/chat-disclaimer/package.json @@ -33,11 +33,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index 870c77db97..3d981f0569 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/fixed-chat-window/package.json b/chat/fixed-chat-window/package.json index e798da7f09..5ee2fd46e5 100644 --- a/chat/fixed-chat-window/package.json +++ b/chat/fixed-chat-window/package.json @@ -46,11 +46,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index dc403516d8..56db749890 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index a5d31c6579..59fc43ec6e 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index 5e37623b89..631dbdd14f 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index 4cf8b72f25..6a5f0eaa97 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index deca1576ba..35dd3103b0 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/chat/message-prompts/package.json b/chat/message-prompts/package.json index 82fe664857..aa101b043e 100644 --- a/chat/message-prompts/package.json +++ b/chat/message-prompts/package.json @@ -33,11 +33,5 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "devDependencies": {}, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index c7317c3b3c..0a02b3990f 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/message/package.json b/chat/message/package.json index 3d9386a55d..8bf69fd6fb 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/rich-links/package.json b/chat/rich-links/package.json index 195928dc64..cf55145acd 100644 --- a/chat/rich-links/package.json +++ b/chat/rich-links/package.json @@ -37,11 +37,5 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "devDependencies": {}, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index 2b4bfe7217..4ab7078fca 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/package.json b/package.json index 3d4dda494d..2cbaaa0393 100644 --- a/package.json +++ b/package.json @@ -107,11 +107,5 @@ "url": "https://github.com/mongodb/leafygreen-ui/issues" }, "packageManager": "pnpm@9.15.0", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 146339cfb1..3ce07718b3 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/avatar/package.json b/packages/avatar/package.json index 5704a812e0..d621227fb2 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/badge/package.json b/packages/badge/package.json index 3763a61f4d..a658d30cce 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/banner/package.json b/packages/banner/package.json index 1bd94f6f43..605d808ba3 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/box/package.json b/packages/box/package.json index c3eee4d2aa..2c19c14f95 100644 --- a/packages/box/package.json +++ b/packages/box/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/button/package.json b/packages/button/package.json index 873d7aa072..6795c19073 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/callout/package.json b/packages/callout/package.json index c67e97040d..c17d1f1bd1 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/card/package.json b/packages/card/package.json index 84a804dfb0..22a1342361 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index 86a45ae986..1b64df505b 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/chip/package.json b/packages/chip/package.json index 073cd7eeb4..25b7aeefb0 100644 --- a/packages/chip/package.json +++ b/packages/chip/package.json @@ -34,11 +34,5 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "devDependencies": {}, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/packages/code/package.json b/packages/code/package.json index 4184305a37..3b2ebd1b6f 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/combobox/package.json b/packages/combobox/package.json index fbfba725e0..da391e731f 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index 61ffdd0879..44a831fb83 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/copyable/package.json b/packages/copyable/package.json index de5b5026a1..a2fa6c3a83 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index 85a263d948..43ada593e3 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -50,11 +50,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index 581b9d9382..e8e9bac161 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -38,11 +38,5 @@ "date", "date-fns" ], - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/packages/descendants/package.json b/packages/descendants/package.json index 95fd67d79d..ee9ae775fa 100644 --- a/packages/descendants/package.json +++ b/packages/descendants/package.json @@ -36,11 +36,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/packages/drawer/package.json b/packages/drawer/package.json index 24d7e3fd71..be19a9ef73 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -44,11 +44,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 2726d5555f..8e8d04ec2d 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "prebuild": "ts-node scripts/prebuild.ts", "build": "lg build-package", diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index 7d5d5a0d9a..3806f1be04 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index 2db1cf7b1b..e880a5b553 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/form-field/package.json b/packages/form-field/package.json index edcea57534..20ba381c98 100644 --- a/packages/form-field/package.json +++ b/packages/form-field/package.json @@ -38,11 +38,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index a1f5d9a7e9..3e77a0c73b 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index 0323d6510e..224f25e42c 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -33,11 +33,5 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "devDependencies": {}, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index cde3cf11f1..05ff9d326c 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/hooks/package.json b/packages/hooks/package.json index b8bbef3366..5edffe4f84 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index c3a2184e5e..051525dcfa 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/icon/package.json b/packages/icon/package.json index b44356ec42..e9e46078fc 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "prebuild": "ts-node ./scripts/prebuild.ts", "build": "lg build-package", diff --git a/packages/info-sprinkle/package.json b/packages/info-sprinkle/package.json index 196d88e9c2..b01161a409 100644 --- a/packages/info-sprinkle/package.json +++ b/packages/info-sprinkle/package.json @@ -34,11 +34,5 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "devDependencies": {}, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index 9c7f152c0e..de719ae3bf 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/input-option/package.json b/packages/input-option/package.json index ecab93efc8..2051416cf5 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index 715f2c4485..7977b673c1 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/lib/package.json b/packages/lib/package.json index e5b9dbfe94..737a338e9a 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index 29806212fb..900558a174 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/logo/package.json b/packages/logo/package.json index 149f8e473c..24d6413b7c 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index 1f83c4def1..37425263fd 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/menu/package.json b/packages/menu/package.json index 3b8d4022ea..a46a94cde2 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/modal/package.json b/packages/modal/package.json index bba841b3e5..1b85da25ff 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/number-input/package.json b/packages/number-input/package.json index efc512c8ec..a125fe77f5 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/ordered-list/package.json b/packages/ordered-list/package.json index 0b67ea745a..80990c3353 100644 --- a/packages/ordered-list/package.json +++ b/packages/ordered-list/package.json @@ -33,11 +33,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/packages/pagination/package.json b/packages/pagination/package.json index 58eb748543..c762ed58ac 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/palette/package.json b/packages/palette/package.json index 1b26482848..0eb9dff255 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/password-input/package.json b/packages/password-input/package.json index a6f3eb6caa..02ee49e312 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index a88d39812e..eaf67bda0f 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index 277745afd6..50d411352f 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/popover/package.json b/packages/popover/package.json index 3c15171dc5..17acd0a9f0 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/portal/package.json b/packages/portal/package.json index 4cb2f40347..51dbb7437e 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index 44c61897c3..788102d5dc 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index 08adf2196c..eec4f7bb47 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 75cdc0459b..217d9c97cf 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/search-input/package.json b/packages/search-input/package.json index 22bc98d0f5..d09789ef89 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index e97681aad1..c40337c111 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/select/package.json b/packages/select/package.json index 0f526741df..3379f20a2f 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index a770aa6516..6beb4534b2 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index 6fa37a1275..029162abe0 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/split-button/package.json b/packages/split-button/package.json index 88b09717c6..1da91a61d1 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/stepper/package.json b/packages/stepper/package.json index 3005ea02fc..6b7b9e8f32 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/table/package.json b/packages/table/package.json index d72e3155e3..0418aaa5cf 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/tabs/package.json b/packages/tabs/package.json index d5d868d5d6..832ad67e68 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index 4be3099198..2c07f07607 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "dependencies": { "@lg-tools/build": "workspace:^", "@testing-library/user-event": "13.5.0", diff --git a/packages/text-area/package.json b/packages/text-area/package.json index ab917942ce..295e92ccaf 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/text-input/package.json b/packages/text-input/package.json index eab31e7fab..2bf3920d6b 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/toast/package.json b/packages/toast/package.json index 054d5d8607..e0238abadf 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/toggle/package.json b/packages/toggle/package.json index d432c35b0a..1bb9cd9ae1 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/tokens/package.json b/packages/tokens/package.json index fe825f6ff3..46150abec6 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index a99743e4dd..0c5197da8f 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/typography/package.json b/packages/typography/package.json index 6c17ce4f7d..0730554d85 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -5,13 +5,7 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - }, + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/tools/build/scripts/updateTypesVersions.ts b/tools/build/scripts/updateTypesVersions.ts index 3b1c2cd051..067c184bea 100644 --- a/tools/build/scripts/updateTypesVersions.ts +++ b/tools/build/scripts/updateTypesVersions.ts @@ -23,11 +23,8 @@ const EXCLUDED_PACKAGES = [ '@lg-tools/validate', ]; -const TYPES_VERSIONS_CONFIG = { - '<5.0': { - '*': ['dist/ts4.9/*'], - }, -}; +// Currently we don't downlevel TS +const TYPES_VERSIONS_CONFIG = {}; /** * Updates the `typesVersions` field in all package.json files diff --git a/tools/codemods/package.json b/tools/codemods/package.json index 0c529b13fd..d3fbe6767a 100644 --- a/tools/codemods/package.json +++ b/tools/codemods/package.json @@ -35,11 +35,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/tools/lint/package.json b/tools/lint/package.json index fb74a95588..4d76739411 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -45,11 +45,5 @@ "peerDependencies": { "typescript": "~5.0.0" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/tools/meta/package.json b/tools/meta/package.json index ee352979df..7c90721574 100644 --- a/tools/meta/package.json +++ b/tools/meta/package.json @@ -21,11 +21,5 @@ "fs-extra": "11.1.1", "lodash": "4.17.21" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index 54295ad4eb..331ff28c6d 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -66,11 +66,5 @@ "react-dom": "^17.0.0 || ^18.0.0", "storybook": "^8.6.0" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/tools/storybook-decorators/package.json b/tools/storybook-decorators/package.json index 42485f1d48..4963547d15 100644 --- a/tools/storybook-decorators/package.json +++ b/tools/storybook-decorators/package.json @@ -27,11 +27,5 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/tools/storybook-utils/package.json b/tools/storybook-utils/package.json index a7eec4cff2..e09e856c82 100644 --- a/tools/storybook-utils/package.json +++ b/tools/storybook-utils/package.json @@ -27,11 +27,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index 63008cc0ab..80e165cd26 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -15,11 +15,5 @@ "dependencies": { "@testing-library/dom": "9.3.1" }, - "typesVersions": { - "<5.0": { - "*": [ - "dist/ts4.9/*" - ] - } - } + "typesVersions": {} } From 9c0239b64a37032fa2d15ea66b71ae251748211b Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 21 Apr 2025 15:59:54 -0400 Subject: [PATCH 039/123] Create typescript-5-all.md --- .changeset/typescript-5-all.md | 102 +++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 .changeset/typescript-5-all.md diff --git a/.changeset/typescript-5-all.md b/.changeset/typescript-5-all.md new file mode 100644 index 0000000000..4d415a0dce --- /dev/null +++ b/.changeset/typescript-5-all.md @@ -0,0 +1,102 @@ +--- +'@leafygreen-ui/a11y': major +'@leafygreen-ui/avatar': major +'@leafygreen-ui/badge': major +'@leafygreen-ui/banner': major +'@leafygreen-ui/box': major +'@leafygreen-ui/button': major +'@leafygreen-ui/callout': major +'@leafygreen-ui/card': major +'@leafygreen-ui/checkbox': major +'@leafygreen-ui/chip': major +'@leafygreen-ui/code': major +'@leafygreen-ui/combobox': major +'@leafygreen-ui/confirmation-modal': major +'@leafygreen-ui/copyable': major +'@leafygreen-ui/date-picker': major +'@leafygreen-ui/descendants': major +'@leafygreen-ui/drawer': major +'@leafygreen-ui/emotion': major +'@leafygreen-ui/empty-state': major +'@leafygreen-ui/expandable-card': major +'@leafygreen-ui/form-field': major +'@leafygreen-ui/form-footer': major +'@leafygreen-ui/gallery-indicator': major +'@leafygreen-ui/guide-cue': major +'@leafygreen-ui/hooks': major +'@leafygreen-ui/icon': major +'@leafygreen-ui/icon-button': major +'@leafygreen-ui/info-sprinkle': major +'@leafygreen-ui/inline-definition': major +'@leafygreen-ui/input-option': major +'@leafygreen-ui/leafygreen-provider': major +'@leafygreen-ui/lib': major +'@leafygreen-ui/loading-indicator': major +'@leafygreen-ui/logo': major +'@leafygreen-ui/marketing-modal': major +'@leafygreen-ui/menu': major +'@leafygreen-ui/modal': major +'@leafygreen-ui/number-input': major +'@leafygreen-ui/ordered-list': major +'@leafygreen-ui/pagination': major +'@leafygreen-ui/palette': major +'@leafygreen-ui/password-input': major +'@leafygreen-ui/pipeline': major +'@leafygreen-ui/polymorphic': major +'@leafygreen-ui/popover': major +'@leafygreen-ui/portal': major +'@leafygreen-ui/radio-box-group': major +'@leafygreen-ui/radio-group': major +'@leafygreen-ui/ripple': major +'@leafygreen-ui/search-input': major +'@leafygreen-ui/segmented-control': major +'@leafygreen-ui/select': major +'@leafygreen-ui/side-nav': major +'@leafygreen-ui/skeleton-loader': major +'@leafygreen-ui/split-button': major +'@leafygreen-ui/stepper': major +'@leafygreen-ui/table': major +'@leafygreen-ui/tabs': major +'@leafygreen-ui/text-area': major +'@leafygreen-ui/text-input': major +'@leafygreen-ui/toast': major +'@leafygreen-ui/toggle': major +'@leafygreen-ui/tokens': major +'@leafygreen-ui/tooltip': major +'@leafygreen-ui/typography': major +'@lg-chat/avatar': major +'@lg-chat/chat-disclaimer': major +'@lg-chat/chat-window': major +'@lg-chat/fixed-chat-window': major +'@lg-chat/input-bar': major +'@lg-chat/leafygreen-chat-provider': major +'@lg-chat/lg-markdown': major +'@lg-chat/message': major +'@lg-chat/message-feed': major +'@lg-chat/message-feedback': major +'@lg-chat/message-prompts': major +'@lg-chat/message-rating': major +'@lg-chat/rich-links': major +'@lg-chat/title-bar': major +'@lg-tools/lint': major + +'@lg-tools/build': minor +'@lg-tools/cli': minor +'@lg-tools/meta': minor +'@lg-tools/codemods': minor +'@leafygreen-ui/date-utils': minor +'@leafygreen-ui/testing-lib': minor +'@lg-tools/storybook-addon': minor +'@lg-tools/storybook-decorators': minor +'@lg-tools/storybook-utils': minor +'@lg-tools/test-harnesses': minor +'@lg-charts/chart-card': minor +'@lg-charts/colors': minor +'@lg-charts/core': minor +'@lg-charts/drag-provider': minor +'@lg-charts/legend': minor +'@lg-charts/series-provider': minor + +--- + +Updates Typescript build to TS5.0 From 48d9603cbffe9edd3060e2360aecd1cbcebab06f Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 21 Apr 2025 17:20:31 -0400 Subject: [PATCH 040/123] updates all tsconfigs --- packages/code/tsconfig.json | 15 +++++++------ packages/emotion/scripts/tsconfig.json | 5 ++++- packages/icon/scripts/tsconfig.json | 4 +--- tools/build/config/node.tsconfig.json | 8 +++++++ tools/build/config/package.tsconfig.json | 22 +++++++++---------- ...oot.tsconfig.json => script.tsconfig.json} | 22 ++++++++++--------- tools/build/src/rollup/build-package.ts | 2 +- tools/build/tsconfig.json | 2 +- tools/cli/tsconfig.json | 2 +- tools/codemods/tsconfig.json | 2 +- tools/create/tsconfig.json | 2 +- tools/install/tsconfig.json | 2 +- tools/link/tsconfig.json | 2 +- tools/lint/tsconfig.json | 2 +- tools/meta/tsconfig.json | 2 +- tools/slackbot/tsconfig.json | 2 +- tools/storybook-addon/tsconfig.json | 2 +- tools/test/scripts/tsconfig.json | 20 +---------------- tools/test/tsconfig.json | 2 +- tools/update/tsconfig.json | 2 +- tools/validate/tsconfig.json | 2 +- tsconfig.json | 5 +++-- 22 files changed, 62 insertions(+), 67 deletions(-) create mode 100644 tools/build/config/node.tsconfig.json rename tools/build/config/{root.tsconfig.json => script.tsconfig.json} (52%) diff --git a/packages/code/tsconfig.json b/packages/code/tsconfig.json index b266709304..d7fc91c421 100644 --- a/packages/code/tsconfig.json +++ b/packages/code/tsconfig.json @@ -11,16 +11,17 @@ ], "@leafygreen-ui/*": [ "../*/src" - ] + ], + "highlight.js": [ + "./node_modules/highlight.js" + ], } }, - "include": [ - "src/**/*", - "../../typings" - ], + "include": ["src/**/*",], "exclude": [ - "**/*.spec.*", - "**/*.stories.*" + "**/*.spec.*", + "**/*.stories.*", + "node_modules" ], "references": [ { diff --git a/packages/emotion/scripts/tsconfig.json b/packages/emotion/scripts/tsconfig.json index 64bae4d3ed..dcc14b3519 100644 --- a/packages/emotion/scripts/tsconfig.json +++ b/packages/emotion/scripts/tsconfig.json @@ -1,3 +1,6 @@ { - "extends": "@lg-tools/build/config/root.tsconfig.json" + "extends": "@lg-tools/build/config/script.tsconfig.json", + "compilerOptions": { + "baseUrl": ".", + } } diff --git a/packages/icon/scripts/tsconfig.json b/packages/icon/scripts/tsconfig.json index 8b474f56ce..dcc14b3519 100644 --- a/packages/icon/scripts/tsconfig.json +++ b/packages/icon/scripts/tsconfig.json @@ -1,8 +1,6 @@ { - "extends": "@lg-tools/build/config/root.tsconfig.json", + "extends": "@lg-tools/build/config/script.tsconfig.json", "compilerOptions": { - "noUnusedLocals": false, - "strict": true, "baseUrl": ".", } } diff --git a/tools/build/config/node.tsconfig.json b/tools/build/config/node.tsconfig.json new file mode 100644 index 0000000000..86a2d11196 --- /dev/null +++ b/tools/build/config/node.tsconfig.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "./package.tsconfig.json", + "compilerOptions": { + "resolveJsonModule": true, + "lib": ["ES2020"] + } +} diff --git a/tools/build/config/package.tsconfig.json b/tools/build/config/package.tsconfig.json index 3c69443fe2..42c183ec46 100644 --- a/tools/build/config/package.tsconfig.json +++ b/tools/build/config/package.tsconfig.json @@ -1,22 +1,22 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { - "module": "esnext", + "module": "ESNext", "moduleResolution": "node", + "target": "ES2017", + "jsx": "react", + "incremental": true, + "composite": true, "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "importHelpers": false, - "composite": true, - "target": "ES2017", - "jsx": "react", - "allowJs": false, - "pretty": true, - "strictNullChecks": true, - "noUnusedLocals": true, "esModuleInterop": true, - "strict": true, "allowSyntheticDefaultImports": true, - "skipLibCheck": true + "importHelpers": false, + "allowJs": true, + "strict": true, + "strictNullChecks": true, + "pretty": true, + "skipLibCheck": true, } } diff --git a/tools/build/config/root.tsconfig.json b/tools/build/config/script.tsconfig.json similarity index 52% rename from tools/build/config/root.tsconfig.json rename to tools/build/config/script.tsconfig.json index 679381ebe5..ab15f461b6 100644 --- a/tools/build/config/root.tsconfig.json +++ b/tools/build/config/script.tsconfig.json @@ -1,20 +1,22 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { - "module": "CommonJS", - "moduleResolution": "node", - "target": "ES6", - "jsx": "react", - "incremental": true, + "module": "NodeNext", + "moduleResolution": "nodenext", + "target": "ESNext", + "incremental": false, + "composite": false, + "declaration": false, + "declarationMap": false, "noEmit": true, "emitDeclarationOnly": false, - "allowJs": true, - "pretty": true, - "strictNullChecks": true, - "noUnusedLocals": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, + "allowJs": true, + "strict": true, "resolveJsonModule": true, - "skipLibCheck": true + "pretty": true, + "skipLibCheck": true, + "lib": ["ESNext"] } } diff --git a/tools/build/src/rollup/build-package.ts b/tools/build/src/rollup/build-package.ts index 0d9099ab24..b24adcc29d 100644 --- a/tools/build/src/rollup/build-package.ts +++ b/tools/build/src/rollup/build-package.ts @@ -4,8 +4,8 @@ import rollup, { type MergedRollupOptions } from 'rollup'; import { type BatchWarnings, type LoadConfigFile, + // @ts-expect-error - type declaration incorrectly defined } from 'rollup/dist/loadConfigFile'; -// @ts-expect-error - type declaration incorrectly defined import { loadConfigFile as _loadConfigFile } from 'rollup/loadConfigFile'; import { findRollupConfigFile } from './findRollupConfigFile'; diff --git a/tools/build/tsconfig.json b/tools/build/tsconfig.json index 5eec8d81f7..36ac1f48de 100644 --- a/tools/build/tsconfig.json +++ b/tools/build/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "./config/package.tsconfig.json", + "extends": "./config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/cli/tsconfig.json b/tools/cli/tsconfig.json index 7a5936bebb..e48ee335ce 100644 --- a/tools/cli/tsconfig.json +++ b/tools/cli/tsconfig.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/codemods/tsconfig.json b/tools/codemods/tsconfig.json index 8355aef68a..9241b199cb 100644 --- a/tools/codemods/tsconfig.json +++ b/tools/codemods/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/create/tsconfig.json b/tools/create/tsconfig.json index 8aa47f44f2..26e7d3c9f4 100644 --- a/tools/create/tsconfig.json +++ b/tools/create/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/install/tsconfig.json b/tools/install/tsconfig.json index 4e2c6dd331..2863411147 100644 --- a/tools/install/tsconfig.json +++ b/tools/install/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/link/tsconfig.json b/tools/link/tsconfig.json index df524d7435..5eec0fcfa1 100644 --- a/tools/link/tsconfig.json +++ b/tools/link/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/lint/tsconfig.json b/tools/lint/tsconfig.json index 138b1ff296..2d8c266657 100644 --- a/tools/lint/tsconfig.json +++ b/tools/lint/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/meta/tsconfig.json b/tools/meta/tsconfig.json index 5cf2118d39..3f4d88e47a 100644 --- a/tools/meta/tsconfig.json +++ b/tools/meta/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/slackbot/tsconfig.json b/tools/slackbot/tsconfig.json index 56246f186f..d28416e26f 100644 --- a/tools/slackbot/tsconfig.json +++ b/tools/slackbot/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/storybook-addon/tsconfig.json b/tools/storybook-addon/tsconfig.json index 9bd3637ea3..4819377ef9 100644 --- a/tools/storybook-addon/tsconfig.json +++ b/tools/storybook-addon/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/test/scripts/tsconfig.json b/tools/test/scripts/tsconfig.json index 8a87b66e02..693fb6c516 100644 --- a/tools/test/scripts/tsconfig.json +++ b/tools/test/scripts/tsconfig.json @@ -1,21 +1,3 @@ { - "compilerOptions": { - "module": "CommonJS", - "noEmit": true, - "tsBuildInfoFile": "./tsconfig.tsbuildinfo", - "incremental": true, - "target": "ES6", - "jsx": "react", - "allowJs": true, - "pretty": true, - "strictNullChecks": true, - "noUnusedLocals": false, - "esModuleInterop": true, - "strict": true, - "allowSyntheticDefaultImports": true, - "moduleResolution": "node", - "baseUrl": ".", - "skipLibCheck": true, - "resolveJsonModule": true, - } + "extends": "@lg-tools/build/config/scripts.tsconfig.json", } diff --git a/tools/test/tsconfig.json b/tools/test/tsconfig.json index b84fcb1e92..a4f4e58d33 100644 --- a/tools/test/tsconfig.json +++ b/tools/test/tsconfig.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/update/tsconfig.json b/tools/update/tsconfig.json index 9adbfb12f2..083e921781 100644 --- a/tools/update/tsconfig.json +++ b/tools/update/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tools/validate/tsconfig.json b/tools/validate/tsconfig.json index 7ecd464d13..a47d7178ef 100644 --- a/tools/validate/tsconfig.json +++ b/tools/validate/tsconfig.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@lg-tools/build/config/package.tsconfig.json", + "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { "declarationDir": "dist", "outDir": "dist", diff --git a/tsconfig.json b/tsconfig.json index 724dab671b..97f9701916 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,8 @@ { "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@lg-tools/build/config/root.tsconfig.json", "compilerOptions": { + "module": "None", + "composite": true, "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": ["./packages/icon/src/generated/*"], @@ -11,6 +12,6 @@ "@lg-tools/*": ["tools/*/src"], } }, - "include": ["./charts", "./chat", "./packages", "./tools", "./scripts" ], + "include": ["./charts", "./chat", "./packages", "./tools" ], "exclude": ["node_modules", "**/dist"] } From 2e15153a053b95d98dfc52d40527fe8b903c4a36 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 21 Apr 2025 17:28:01 -0400 Subject: [PATCH 041/123] Update build-package.ts --- tools/build/src/rollup/build-package.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/build/src/rollup/build-package.ts b/tools/build/src/rollup/build-package.ts index b24adcc29d..71e08a282f 100644 --- a/tools/build/src/rollup/build-package.ts +++ b/tools/build/src/rollup/build-package.ts @@ -4,9 +4,9 @@ import rollup, { type MergedRollupOptions } from 'rollup'; import { type BatchWarnings, type LoadConfigFile, - // @ts-expect-error - type declaration incorrectly defined -} from 'rollup/dist/loadConfigFile'; -import { loadConfigFile as _loadConfigFile } from 'rollup/loadConfigFile'; + loadConfigFile as _loadConfigFile, + // @ts-expect-error - types not declared correctly in rollup +} from 'rollup/loadConfigFile'; import { findRollupConfigFile } from './findRollupConfigFile'; From b00a933a9525f23b4c6d383db5557c18132608f3 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 21 Apr 2025 18:06:00 -0400 Subject: [PATCH 042/123] updates scripts --- pnpm-lock.yaml | 292 ++++++++++++++------- pnpm-workspace.yaml | 3 +- scripts/package.json | 13 + scripts/tsconfig.json | 2 +- scripts/update-readme.ts | 1 - scripts/updateTypesVersions.ts | 100 +++++++ tools/build/scripts/tsconfig.json | 2 +- tools/build/scripts/updateTypesVersions.ts | 83 ------ 8 files changed, 316 insertions(+), 180 deletions(-) create mode 100644 scripts/package.json create mode 100644 scripts/updateTypesVersions.ts delete mode 100644 tools/build/scripts/updateTypesVersions.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d59eefe596..1b30fc9949 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -236,7 +236,7 @@ importers: devDependencies: '@storybook/test': specifier: 8.5.3 - version: 8.5.3(storybook@8.6.12(prettier@2.8.8)) + version: 8.5.3(storybook@8.6.12(prettier@3.5.3)) charts/legend: dependencies: @@ -2899,6 +2899,18 @@ importers: specifier: workspace:^ version: link:../tokens + scripts: + dependencies: + '@lg-tools/meta': + specifier: workspace:* + version: link:../tools/meta + chalk: + specifier: ^4.1.2 + version: 4.1.2 + prettier: + specifier: ^3.5.3 + version: 3.5.3 + tools/build: dependencies: '@babel/core': @@ -3316,43 +3328,43 @@ importers: version: 2.3.0(react@18.2.0) '@storybook/addon-a11y': specifier: 8.6.12 - version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/addon-essentials': specifier: 8.6.12 - version: 8.6.12(@types/react@18.2.23)(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(@types/react@18.2.23)(storybook@8.6.12(prettier@3.5.3)) '@storybook/addon-interactions': specifier: 8.6.12 - version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/addon-links': specifier: 8.6.12 - version: 8.6.12(react@18.2.0)(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(react@18.2.0)(storybook@8.6.12(prettier@3.5.3)) '@storybook/addon-mdx-gfm': specifier: 8.6.12 - version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/components': specifier: 8.6.12 - version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/core-events': specifier: 8.6.12 - version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/manager-api': specifier: 8.6.12 - version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/preview-api': specifier: 8.6.12 - version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) '@storybook/test': specifier: 8.6.12 - version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/theming': specifier: 8.6.12 - version: 8.6.12(storybook@8.6.12(prettier@2.8.8)) + version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@svgr/webpack': specifier: 8.0.1 version: 8.0.1(typescript@5.0.4) @@ -3403,10 +3415,10 @@ importers: version: 18.2.0(react@18.2.0) storybook: specifier: ^8.6.0 - version: 8.6.12(prettier@2.8.8) + version: 8.6.12(prettier@3.5.3) storybook-dark-mode: specifier: ^4.0.1 - version: 4.0.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8)) + version: 4.0.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3)) stream-browserify: specifier: 3.0.0 version: 3.0.0 @@ -3457,7 +3469,7 @@ importers: version: link:../storybook-utils '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) lodash: specifier: 4.17.21 version: 4.17.21 @@ -3469,7 +3481,7 @@ importers: version: 0.1.13 '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) glob: specifier: 10.3.12 version: 10.3.12 @@ -9215,6 +9227,11 @@ packages: engines: {node: '>=10.13.0'} hasBin: true + prettier@3.5.3: + resolution: {integrity: sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==} + engines: {node: '>=14'} + hasBin: true + pretty-error@4.0.0: resolution: {integrity: sha512-AoJ5YMAcXKYxKhuJGdcvse+Voc6v1RgnsR3nWcYU7q4t6z0Q6T86sv5Zq8VIRbOWWFpvdGE83LtdSMNd+6Y0xw==} @@ -12459,129 +12476,129 @@ snapshots: transitivePeerDependencies: - debug - '@storybook/addon-a11y@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-a11y@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: - '@storybook/addon-highlight': 8.6.12(storybook@8.6.12(prettier@2.8.8)) + '@storybook/addon-highlight': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 - '@storybook/test': 8.6.12(storybook@8.6.12(prettier@2.8.8)) + '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) axe-core: 4.10.2 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) - '@storybook/addon-actions@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-actions@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/global': 5.0.0 '@types/uuid': 9.0.8 dequal: 2.0.3 polished: 4.3.1 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) uuid: 9.0.0 - '@storybook/addon-backgrounds@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-backgrounds@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/global': 5.0.0 memoizerific: 1.11.3 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) ts-dedent: 2.2.0 - '@storybook/addon-controls@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-controls@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/global': 5.0.0 dequal: 2.0.3 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) ts-dedent: 2.2.0 - '@storybook/addon-docs@8.6.12(@types/react@18.2.23)(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-docs@8.6.12(@types/react@18.2.23)(storybook@8.6.12(prettier@3.5.3))': dependencies: '@mdx-js/react': 3.1.0(@types/react@18.2.23)(react@18.2.0) - '@storybook/blocks': 8.6.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8)) - '@storybook/csf-plugin': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/react-dom-shim': 8.6.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8)) + '@storybook/blocks': 8.6.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3)) + '@storybook/csf-plugin': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/react-dom-shim': 8.6.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3)) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) ts-dedent: 2.2.0 transitivePeerDependencies: - '@types/react' - '@storybook/addon-essentials@8.6.12(@types/react@18.2.23)(storybook@8.6.12(prettier@2.8.8))': - dependencies: - '@storybook/addon-actions': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/addon-backgrounds': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/addon-controls': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/addon-docs': 8.6.12(@types/react@18.2.23)(storybook@8.6.12(prettier@2.8.8)) - '@storybook/addon-highlight': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/addon-measure': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/addon-outline': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/addon-toolbars': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/addon-viewport': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - storybook: 8.6.12(prettier@2.8.8) + '@storybook/addon-essentials@8.6.12(@types/react@18.2.23)(storybook@8.6.12(prettier@3.5.3))': + dependencies: + '@storybook/addon-actions': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/addon-backgrounds': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/addon-controls': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/addon-docs': 8.6.12(@types/react@18.2.23)(storybook@8.6.12(prettier@3.5.3)) + '@storybook/addon-highlight': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/addon-measure': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/addon-outline': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/addon-toolbars': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/addon-viewport': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + storybook: 8.6.12(prettier@3.5.3) ts-dedent: 2.2.0 transitivePeerDependencies: - '@types/react' - '@storybook/addon-highlight@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-highlight@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/global': 5.0.0 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) - '@storybook/addon-interactions@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-interactions@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/global': 5.0.0 - '@storybook/instrumenter': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/test': 8.6.12(storybook@8.6.12(prettier@2.8.8)) + '@storybook/instrumenter': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) polished: 4.3.1 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) ts-dedent: 2.2.0 - '@storybook/addon-links@8.6.12(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-links@8.6.12(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/global': 5.0.0 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) ts-dedent: 2.2.0 optionalDependencies: react: 18.2.0 - '@storybook/addon-mdx-gfm@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-mdx-gfm@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: remark-gfm: 4.0.0 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) ts-dedent: 2.2.0 transitivePeerDependencies: - supports-color - '@storybook/addon-measure@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-measure@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/global': 5.0.0 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) tiny-invariant: 1.3.3 - '@storybook/addon-outline@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-outline@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/global': 5.0.0 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) ts-dedent: 2.2.0 - '@storybook/addon-toolbars@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-toolbars@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) - '@storybook/addon-viewport@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/addon-viewport@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: memoizerific: 1.11.3 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) - '@storybook/blocks@8.6.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))': + '@storybook/blocks@8.6.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/icons': 1.3.2(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) ts-dedent: 2.2.0 optionalDependencies: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4)': dependencies: - '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@2.8.8)) + '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 browser-assert: 1.2.1 case-sensitive-paths-webpack-plugin: 2.4.0 @@ -12595,7 +12612,7 @@ snapshots: path-browserify: 1.0.1 process: 0.11.10 semver: 7.6.3 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) style-loader: 3.3.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) terser-webpack-plugin: 5.3.9(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) ts-dedent: 2.2.0 @@ -12618,13 +12635,17 @@ snapshots: dependencies: storybook: 8.6.12(prettier@2.8.8) - '@storybook/core-events@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/components@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) - '@storybook/core-webpack@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/core-events@8.6.12(storybook@8.6.12(prettier@3.5.3))': dependencies: - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) + + '@storybook/core-webpack@8.6.12(storybook@8.6.12(prettier@3.5.3))': + dependencies: + storybook: 8.6.12(prettier@3.5.3) ts-dedent: 2.2.0 '@storybook/core@8.6.12(prettier@2.8.8)(storybook@8.6.12(prettier@2.8.8))': @@ -12648,9 +12669,30 @@ snapshots: - supports-color - utf-8-validate - '@storybook/csf-plugin@8.6.12(storybook@8.6.12(prettier@2.8.8))': + '@storybook/core@8.6.12(prettier@3.5.3)(storybook@8.6.12(prettier@3.5.3))': dependencies: - storybook: 8.6.12(prettier@2.8.8) + '@storybook/theming': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + better-opn: 3.0.2 + browser-assert: 1.2.1 + esbuild: 0.24.2 + esbuild-register: 3.5.0(esbuild@0.24.2) + jsdoc-type-pratt-parser: 4.1.0 + process: 0.11.10 + recast: 0.23.9 + semver: 7.6.3 + util: 0.12.5 + ws: 8.16.0 + optionalDependencies: + prettier: 3.5.3 + transitivePeerDependencies: + - bufferutil + - storybook + - supports-color + - utf-8-validate + + '@storybook/csf-plugin@8.6.12(storybook@8.6.12(prettier@3.5.3))': + dependencies: + storybook: 8.6.12(prettier@3.5.3) unplugin: 1.4.0 '@storybook/csf@0.1.12': @@ -12673,26 +12715,37 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/instrumenter@8.5.3(storybook@8.6.12(prettier@2.8.8))': + '@storybook/instrumenter@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/global': 5.0.0 '@vitest/utils': 2.1.9 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) '@storybook/instrumenter@8.6.12(storybook@8.6.12(prettier@2.8.8))': dependencies: '@storybook/global': 5.0.0 '@vitest/utils': 2.1.9 storybook: 8.6.12(prettier@2.8.8) + optional: true + + '@storybook/instrumenter@8.6.12(storybook@8.6.12(prettier@3.5.3))': + dependencies: + '@storybook/global': 5.0.0 + '@vitest/utils': 2.1.9 + storybook: 8.6.12(prettier@3.5.3) '@storybook/manager-api@8.6.12(storybook@8.6.12(prettier@2.8.8))': dependencies: storybook: 8.6.12(prettier@2.8.8) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4)': + '@storybook/manager-api@8.6.12(storybook@8.6.12(prettier@3.5.3))': + dependencies: + storybook: 8.6.12(prettier@3.5.3) + + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4)': dependencies: - '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) + '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 @@ -12702,7 +12755,7 @@ snapshots: react-dom: 18.2.0(react@18.2.0) resolve: 1.22.10 semver: 7.6.3 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: @@ -12719,6 +12772,10 @@ snapshots: dependencies: storybook: 8.6.12(prettier@2.8.8) + '@storybook/preview-api@8.6.12(storybook@8.6.12(prettier@3.5.3))': + dependencies: + storybook: 8.6.12(prettier@3.5.3) + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 @@ -12739,14 +12796,20 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@2.8.8) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4)': + '@storybook/react-dom-shim@8.6.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) + + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4)': + dependencies: + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + storybook: 8.6.12(prettier@3.5.3) optionalDependencies: typescript: 5.0.4 transitivePeerDependencies: @@ -12772,17 +12835,32 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@2.8.8)) typescript: 5.0.4 - '@storybook/test@8.5.3(storybook@8.6.12(prettier@2.8.8))': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4)': + dependencies: + '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/global': 5.0.0 + '@storybook/manager-api': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/preview-api': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/react-dom-shim': 8.6.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3)) + '@storybook/theming': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + storybook: 8.6.12(prettier@3.5.3) + optionalDependencies: + '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + typescript: 5.0.4 + + '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: '@storybook/csf': 0.1.12 '@storybook/global': 5.0.0 - '@storybook/instrumenter': 8.5.3(storybook@8.6.12(prettier@2.8.8)) + '@storybook/instrumenter': 8.5.3(storybook@8.6.12(prettier@3.5.3)) '@testing-library/dom': 9.3.4 '@testing-library/jest-dom': 6.5.0 '@testing-library/user-event': 13.5.0(@testing-library/dom@9.3.4) '@vitest/expect': 2.0.5 '@vitest/spy': 2.0.5 - storybook: 8.6.12(prettier@2.8.8) + storybook: 8.6.12(prettier@3.5.3) '@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8))': dependencies: @@ -12794,11 +12872,27 @@ snapshots: '@vitest/expect': 2.0.5 '@vitest/spy': 2.0.5 storybook: 8.6.12(prettier@2.8.8) + optional: true + + '@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3))': + dependencies: + '@storybook/global': 5.0.0 + '@storybook/instrumenter': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@testing-library/dom': 9.3.4 + '@testing-library/jest-dom': 6.5.0 + '@testing-library/user-event': 13.5.0(@testing-library/dom@9.3.4) + '@vitest/expect': 2.0.5 + '@vitest/spy': 2.0.5 + storybook: 8.6.12(prettier@3.5.3) '@storybook/theming@8.6.12(storybook@8.6.12(prettier@2.8.8))': dependencies: storybook: 8.6.12(prettier@2.8.8) + '@storybook/theming@8.6.12(storybook@8.6.12(prettier@3.5.3))': + dependencies: + storybook: 8.6.12(prettier@3.5.3) + '@svgr/babel-plugin-add-jsx-attribute@5.4.0': {} '@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.24.3)': @@ -17752,6 +17846,8 @@ snapshots: prettier@2.8.8: {} + prettier@3.5.3: {} + pretty-error@4.0.0: dependencies: lodash: 4.17.21 @@ -18464,14 +18560,14 @@ snapshots: dependencies: internal-slot: 1.0.7 - storybook-dark-mode@4.0.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8)): + storybook-dark-mode@4.0.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3)): dependencies: - '@storybook/components': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/core-events': 8.6.12(storybook@8.6.12(prettier@2.8.8)) + '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/core-events': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 '@storybook/icons': 1.2.9(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@storybook/manager-api': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - '@storybook/theming': 8.6.12(storybook@8.6.12(prettier@2.8.8)) + '@storybook/manager-api': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/theming': 8.6.12(storybook@8.6.12(prettier@3.5.3)) fast-deep-equal: 3.1.3 memoizerific: 1.11.3 transitivePeerDependencies: @@ -18489,6 +18585,16 @@ snapshots: - supports-color - utf-8-validate + storybook@8.6.12(prettier@3.5.3): + dependencies: + '@storybook/core': 8.6.12(prettier@3.5.3)(storybook@8.6.12(prettier@3.5.3)) + optionalDependencies: + prettier: 3.5.3 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + stream-browserify@3.0.0: dependencies: inherits: 2.0.4 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4951654c3a..f3dd7b7ed6 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,4 +3,5 @@ packages: - 'charts/*' - 'chat/*' - 'packages/*' - - 'tools/*' \ No newline at end of file + - 'tools/*' + - 'scripts' diff --git a/scripts/package.json b/scripts/package.json new file mode 100644 index 0000000000..86770c517d --- /dev/null +++ b/scripts/package.json @@ -0,0 +1,13 @@ +{ + "name": "lg-scripts", + "description": "Defines dependencies for LeafyGreen scripts, so they don't need to be installed at the root level.", + "version": "0.0.0", + "keywords": [], + "author": "", + "license": "", + "dependencies": { + "@lg-tools/meta": "workspace:*", + "chalk": "^4.1.2", + "prettier": "^3.5.3" + } +} diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index 8b474f56ce..87becf0a5a 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/root.tsconfig.json", + "extends": "@lg-tools/build/config/script.tsconfig.json", "compilerOptions": { "noUnusedLocals": false, "strict": true, diff --git a/scripts/update-readme.ts b/scripts/update-readme.ts index f0a8d75730..0de29e97b3 100644 --- a/scripts/update-readme.ts +++ b/scripts/update-readme.ts @@ -1,7 +1,6 @@ import { getAllPackageNames, getLGConfig } from '@lg-tools/meta'; import fs from 'fs'; import path from 'path'; -// @ts-expect-error - no prettier types import * as prettier from 'prettier'; updateReadme(); diff --git a/scripts/updateTypesVersions.ts b/scripts/updateTypesVersions.ts new file mode 100644 index 0000000000..236214e571 --- /dev/null +++ b/scripts/updateTypesVersions.ts @@ -0,0 +1,100 @@ +/* eslint-disable no-console */ +import { getLGConfig } from '@lg-tools/meta'; +import chalk from 'chalk'; +import fs from 'fs'; +import path from 'path'; +import { promisify } from 'util'; + +const readFile = promisify(fs.readFile); +const writeFile = promisify(fs.writeFile); + +// Packages to exclude from typesVersions updates +// These packages are CLI-only, and don't need to be down-leveled +const EXCLUDED_PACKAGES = [ + '@lg-tools/build', + '@lg-tools/cli', + '@lg-tools/create', + '@lg-tools/install', + '@lg-tools/link', + '@lg-tools/slackbot', + '@lg-tools/build', + '@lg-tools/test', + '@lg-tools/update', + '@lg-tools/validate', +]; + +// Currently we don't downlevel TS +const TYPES_VERSIONS_CONFIG = {}; + +updateAllTypesVersions(); + +/** + * Updates the `typesVersions` field in a package's package.json files + * + * Run this script if we need to change the TypeScript downleveling. + * + * The current build script parses the `typesVersions` field + * to determine which TypeScript version to use for downleveling. + */ +async function updateAllTypesVersions() { + try { + const { scopes } = getLGConfig(); + + // for each scope, + // get the packages in that scope + // and run updateTypesVersionsForPackage + for (const scope in scopes) { + const scopePath = scopes[scope]; + const scopeDir = path.join(process.cwd(), scopePath); + console.log(`Processing scope: ${scope}: ${scopeDir}`); + + const packageDirs = fs + .readdirSync(scopeDir) + .filter(dir => fs.statSync(path.join(scopeDir, dir)).isDirectory()); + + // Process each package directory + for (const pkg of packageDirs) { + console.log(`Processing package: ${chalk.green(pkg)}`); + const dir = path.join(scopeDir, pkg); + await updateTypesVersionsForPackage(dir); + } + } + } catch (error) { + console.error('Error updating typesVersions:', error); + process.exit(1); + } +} + +async function updateTypesVersionsForPackage(cwd: string) { + try { + // Find all package.json files in the packages directory from the repo root + const packageJsonPath = path.join(cwd, 'package.json'); + + // Read the file + const content = await readFile(packageJsonPath, 'utf-8'); + const packageJson = JSON.parse(content); + + const { name: packageName } = packageJson; + + if (EXCLUDED_PACKAGES.includes(packageName)) { + console.log(chalk.gray(`\tSkipping excluded package: ${packageName}`)); + return; + } + + // Update the typesVersions field + packageJson.typesVersions = TYPES_VERSIONS_CONFIG; + + // Write the updated content back to the file + const updatedContent = JSON.stringify(packageJson, null, 2) + '\n'; + await writeFile(packageJsonPath, updatedContent); + + console.log( + `Successfully updated \`typesVersions\` in ${chalk.bold( + packageName, + )} to ${chalk.gray(JSON.stringify(packageJson.typesVersions, null, 2))}`, + ); + } catch (error) { + console.error('Error updating typesVersions:', error); + process.exit(1); + } +} diff --git a/tools/build/scripts/tsconfig.json b/tools/build/scripts/tsconfig.json index 0d7684cfc6..cfac9cffbf 100644 --- a/tools/build/scripts/tsconfig.json +++ b/tools/build/scripts/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../config/root.tsconfig.json", + "extends": "../config/script.tsconfig.json", "compilerOptions": { "noUnusedLocals": false, "strict": true, diff --git a/tools/build/scripts/updateTypesVersions.ts b/tools/build/scripts/updateTypesVersions.ts deleted file mode 100644 index 067c184bea..0000000000 --- a/tools/build/scripts/updateTypesVersions.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* eslint-disable no-console */ -import chalk from 'chalk'; -import fs from 'fs'; -import { glob } from 'glob'; -import path from 'path'; -import { promisify } from 'util'; - -const readFile = promisify(fs.readFile); -const writeFile = promisify(fs.writeFile); - -// Packages to exclude from typesVersions updates -// These packages are CLI-only, and don't need to be down-leveled -const EXCLUDED_PACKAGES = [ - '@lg-tools/build', - '@lg-tools/cli', - '@lg-tools/create', - '@lg-tools/install', - '@lg-tools/link', - '@lg-tools/slackbot', - '@lg-tools/build', - '@lg-tools/test', - '@lg-tools/update', - '@lg-tools/validate', -]; - -// Currently we don't downlevel TS -const TYPES_VERSIONS_CONFIG = {}; - -/** - * Updates the `typesVersions` field in all package.json files - * - * Run this script if we need to change the TypeScript downleveling. - * - * The current build script parses the `typesVersions` field - * to determine which TypeScript version to use for downleveling. - */ -async function updateTypesVersions() { - try { - console.log('Updating typesVersions in package.json files...'); - - // Find the repository root (assuming this script is in tools/build/scripts) - const repoRoot = path.resolve(__dirname, '../../../'); - - // Find all package.json files in the packages directory from the repo root - const packageJsonPaths = await glob('**/package.json', { - cwd: repoRoot, - absolute: true, - }); - - console.log(`Found ${packageJsonPaths.length} packages`); - - // Process each package.json file - for (const filePath of packageJsonPaths) { - // Read the file - const content = await readFile(filePath, 'utf-8'); - const packageJson = JSON.parse(content); - - const packageName = packageJson.name; - - if (EXCLUDED_PACKAGES.includes(packageName)) { - console.log(chalk.gray(`\tSkipping excluded package: ${packageName}`)); - continue; - } - - console.log(chalk.gray(`\tProcessing ${packageName}`)); - - // Update the typesVersions field - packageJson.typesVersions = TYPES_VERSIONS_CONFIG; - - // Write the updated content back to the file - const updatedContent = JSON.stringify(packageJson, null, 2) + '\n'; - await writeFile(filePath, updatedContent); - } - - console.log('Successfully updated typesVersions in all package.json files'); - } catch (error) { - console.error('Error updating typesVersions:', error); - process.exit(1); - } -} - -// Execute the function -updateTypesVersions(); From bc7a0704c64ba403fa3171f0998772fd670cf93e Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 21 Apr 2025 18:44:04 -0400 Subject: [PATCH 043/123] updates downlevel script --- .changeset/build-typescript-5.md | 3 +- scripts/updateTypesVersions.ts | 100 ------------- .../typescript/downlevel/TYPES_VERSIONS.ts | 21 +++ .../src/typescript/downlevel/downlevel-dts.ts | 14 +- .../typescript/downlevel/getTypeVersions.ts | 51 ------- tools/build/src/typescript/downlevel/index.ts | 30 ++-- .../downlevel/updateTypesVersions.ts | 137 ++++++++++++++++++ 7 files changed, 188 insertions(+), 168 deletions(-) delete mode 100644 scripts/updateTypesVersions.ts create mode 100644 tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts delete mode 100644 tools/build/src/typescript/downlevel/getTypeVersions.ts create mode 100644 tools/build/src/typescript/downlevel/updateTypesVersions.ts diff --git a/.changeset/build-typescript-5.md b/.changeset/build-typescript-5.md index 921cedf7bd..0db0b02c6a 100644 --- a/.changeset/build-typescript-5.md +++ b/.changeset/build-typescript-5.md @@ -3,4 +3,5 @@ --- - Upgrades to TS 5.0. -- Adds `--downlevel` option for `build-ts`. This option reads a package's package.json and exports downleveled `*.d.ts` files for all targets listed in `"typesVersions"`. This uses [downlevel-dts](https://github.com/sandersn/downlevel-dts) under the hood. +- Adds `--downlevel` option for `build-ts`. This option exports downleveled `*.d.ts` files for a defined set of targets. Updates a package's `package.json` if necessary. +This uses [downlevel-dts](https://github.com/sandersn/downlevel-dts) under the hood. diff --git a/scripts/updateTypesVersions.ts b/scripts/updateTypesVersions.ts deleted file mode 100644 index 236214e571..0000000000 --- a/scripts/updateTypesVersions.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* eslint-disable no-console */ -import { getLGConfig } from '@lg-tools/meta'; -import chalk from 'chalk'; -import fs from 'fs'; -import path from 'path'; -import { promisify } from 'util'; - -const readFile = promisify(fs.readFile); -const writeFile = promisify(fs.writeFile); - -// Packages to exclude from typesVersions updates -// These packages are CLI-only, and don't need to be down-leveled -const EXCLUDED_PACKAGES = [ - '@lg-tools/build', - '@lg-tools/cli', - '@lg-tools/create', - '@lg-tools/install', - '@lg-tools/link', - '@lg-tools/slackbot', - '@lg-tools/build', - '@lg-tools/test', - '@lg-tools/update', - '@lg-tools/validate', -]; - -// Currently we don't downlevel TS -const TYPES_VERSIONS_CONFIG = {}; - -updateAllTypesVersions(); - -/** - * Updates the `typesVersions` field in a package's package.json files - * - * Run this script if we need to change the TypeScript downleveling. - * - * The current build script parses the `typesVersions` field - * to determine which TypeScript version to use for downleveling. - */ -async function updateAllTypesVersions() { - try { - const { scopes } = getLGConfig(); - - // for each scope, - // get the packages in that scope - // and run updateTypesVersionsForPackage - for (const scope in scopes) { - const scopePath = scopes[scope]; - const scopeDir = path.join(process.cwd(), scopePath); - console.log(`Processing scope: ${scope}: ${scopeDir}`); - - const packageDirs = fs - .readdirSync(scopeDir) - .filter(dir => fs.statSync(path.join(scopeDir, dir)).isDirectory()); - - // Process each package directory - for (const pkg of packageDirs) { - console.log(`Processing package: ${chalk.green(pkg)}`); - const dir = path.join(scopeDir, pkg); - await updateTypesVersionsForPackage(dir); - } - } - } catch (error) { - console.error('Error updating typesVersions:', error); - process.exit(1); - } -} - -async function updateTypesVersionsForPackage(cwd: string) { - try { - // Find all package.json files in the packages directory from the repo root - const packageJsonPath = path.join(cwd, 'package.json'); - - // Read the file - const content = await readFile(packageJsonPath, 'utf-8'); - const packageJson = JSON.parse(content); - - const { name: packageName } = packageJson; - - if (EXCLUDED_PACKAGES.includes(packageName)) { - console.log(chalk.gray(`\tSkipping excluded package: ${packageName}`)); - return; - } - - // Update the typesVersions field - packageJson.typesVersions = TYPES_VERSIONS_CONFIG; - - // Write the updated content back to the file - const updatedContent = JSON.stringify(packageJson, null, 2) + '\n'; - await writeFile(packageJsonPath, updatedContent); - - console.log( - `Successfully updated \`typesVersions\` in ${chalk.bold( - packageName, - )} to ${chalk.gray(JSON.stringify(packageJson.typesVersions, null, 2))}`, - ); - } catch (error) { - console.error('Error updating typesVersions:', error); - process.exit(1); - } -} diff --git a/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts b/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts new file mode 100644 index 0000000000..202f2c4144 --- /dev/null +++ b/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts @@ -0,0 +1,21 @@ +// TS Downlevel mapping +export const DOWNLEVEL_VERSIONS = [ + { condition: '<4.8', target: '4.0' }, + { condition: '<5.0', target: '4.9' }, +] as const; + +// Packages to exclude from typesVersions updates +// These packages are CLI-only, and don't need to be down-leveled +export const EXCLUDED_PACKAGES = [ + 'lg-scripts', + '@lg-tools/build', + '@lg-tools/cli', + '@lg-tools/create', + '@lg-tools/install', + '@lg-tools/link', + '@lg-tools/slackbot', + '@lg-tools/build', + '@lg-tools/test', + '@lg-tools/update', + '@lg-tools/validate', +]; diff --git a/tools/build/src/typescript/downlevel/downlevel-dts.ts b/tools/build/src/typescript/downlevel/downlevel-dts.ts index a5baa68b81..c10b796ecb 100644 --- a/tools/build/src/typescript/downlevel/downlevel-dts.ts +++ b/tools/build/src/typescript/downlevel/downlevel-dts.ts @@ -19,12 +19,14 @@ interface DownlevelDtsOptions { /** * Runs downlevel-dts to create backward compatible TypeScript declaration files * + * This function is called from the command line as `lg build-ts --downlevel` + * * @param options Configuration options */ export async function downlevelDts( options?: DownlevelDtsOptions, ): Promise { - const { verbose, target = '3.4', outDir } = options ?? {}; + const { verbose, target, outDir } = options ?? {}; const packageDir = process.cwd(); // Default to types directory if not specified @@ -40,11 +42,11 @@ export async function downlevelDts( // Ensure types directory exists if (!fse.existsSync(typesDirPath)) { console.error(chalk.red(`Types directory not found: ${typesDirPath}`)); - process.exit(1); + return; } console.log( - chalk.blue.bold(`Downleveling TypeScript declarations to TS ${target}`), + chalk.blue.bold(`Downlevelling TypeScript declarations to TS${target}`), ); verbose && console.log(chalk.gray(`Input: ${typesDirPath}`)); verbose && console.log(chalk.gray(`Output: ${outputDirPath}`)); @@ -53,12 +55,12 @@ export async function downlevelDts( const semverTarget = target + '.0'; downlevel(typesDirPath, outputDirPath, semverTarget); - console.log( - verbose && + verbose && + console.log( chalk.green( `Successfully created downleveled declarations in ${outputDirPath}`, ), - ); + ); } catch (error: any) { console.error( chalk.red(`Error downleveling declarations: ${error.message}`), diff --git a/tools/build/src/typescript/downlevel/getTypeVersions.ts b/tools/build/src/typescript/downlevel/getTypeVersions.ts deleted file mode 100644 index ddd7923d19..0000000000 --- a/tools/build/src/typescript/downlevel/getTypeVersions.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* eslint-disable no-console */ -import chalk from 'chalk'; - -/** - * Extracts TypeScript versions from the typesVersions field in package.json - * and returns an array of version numbers without the 'ts' prefix. - * @returns - */ -export const getTypeVersions = (typesVersions?: { - [target: string]: { - [files: string]: Array; - }; -}): Array<`${number}.${number}`> | undefined => { - if (!typesVersions || typeof typesVersions !== 'object') return; - - const versions: Array<`${number}.${number}`> = []; - - Object.entries(typesVersions).forEach(([_versionRange, pathMappings]) => { - // Get the output directory from the path mappings - // Typical format is { '*': ['ts3.4/*'] } - if (!pathMappings || typeof pathMappings !== 'object') return; - - const wildcardMapping = pathMappings['*']; - if (!Array.isArray(wildcardMapping) || wildcardMapping.length === 0) return; - - // Extract outputDir from format like 'ts3.4/*' - const outputDirMatch = wildcardMapping[0].match(/^dist\/ts([\d.]+)\/\*/); - if (!outputDirMatch || !outputDirMatch[1]) return; - - // Get just the version number without the 'ts' prefix - const versionNumber = outputDirMatch[1] as `${number}.${number}`; - - // Check if the version number is valid - if (!/^\d+\.\d+$/.test(versionNumber)) { - console.log( - chalk.red( - `Invalid TS version number format in directory${outputDirMatch[0]}. Expected format is 'dist/tsX.Y/*'`, - ), - ); - return; - } - - // check if the version number is already in the array - if (versions.includes(versionNumber)) return; - - // Add the version number to the array - versions.push(versionNumber); - }); - - return versions; -}; diff --git a/tools/build/src/typescript/downlevel/index.ts b/tools/build/src/typescript/downlevel/index.ts index 6a781e8659..a48ffd4231 100644 --- a/tools/build/src/typescript/downlevel/index.ts +++ b/tools/build/src/typescript/downlevel/index.ts @@ -4,7 +4,8 @@ import fse from 'fs-extra'; import path from 'path'; import { downlevelDts } from './downlevel-dts'; -import { getTypeVersions } from './getTypeVersions'; +import { DOWNLEVEL_VERSIONS, EXCLUDED_PACKAGES } from './TYPES_VERSIONS'; +import { updateTypesVersions } from './updateTypesVersions'; interface DownlevelCommandOptions { verbose?: boolean; @@ -16,22 +17,31 @@ interface DownlevelCommandOptions { */ export function runTypescriptDownlevel({ verbose }: DownlevelCommandOptions) { const packageDir = process.cwd(); - console.log('\nRunning TypeScript downleveling...', packageDir); + console.log('\nRunning TypeScript downlevel...', packageDir); const packageJsonPath = path.join(packageDir, 'package.json'); - const packageJson = fse.readJSONSync(packageJsonPath, 'utf-8'); - const typesVersions = packageJson?.typesVersions; - const downlevelVersions = getTypeVersions(typesVersions); + const packageJsonContent = fse.readFileSync(packageJsonPath, 'utf8'); + const packageJson = JSON.parse(packageJsonContent); + const { name: packageName } = packageJson; - if (downlevelVersions && downlevelVersions?.length > 0) { - downlevelVersions.forEach(target => { + // Skip excluded packages + if (EXCLUDED_PACKAGES.includes(packageName)) { + console.log(chalk.gray(`\tSkipping excluded package: ${packageName}`)); + return; + } + + if (DOWNLEVEL_VERSIONS && DOWNLEVEL_VERSIONS?.length > 0) { + // First update typesVersions and exports in package.json + updateTypesVersions(packageDir, { verbose }); + + // Then generate downlevelled TypeScript declaration files + DOWNLEVEL_VERSIONS.forEach(({ target }) => { downlevelDts({ verbose, target }); }); } else { verbose && - console.log(chalk.yellow('No typesVersions found in package.json'), { - typesVersions, - downlevelVersions, + console.log(chalk.yellow('No downlevel versions configured'), { + DOWNLEVEL_VERSIONS, }); } } diff --git a/tools/build/src/typescript/downlevel/updateTypesVersions.ts b/tools/build/src/typescript/downlevel/updateTypesVersions.ts new file mode 100644 index 0000000000..94f5ca9553 --- /dev/null +++ b/tools/build/src/typescript/downlevel/updateTypesVersions.ts @@ -0,0 +1,137 @@ +/* eslint-disable no-console */ +import chalk from 'chalk'; +import fs from 'fs'; +import path from 'path'; + +import { DOWNLEVEL_VERSIONS, EXCLUDED_PACKAGES } from './TYPES_VERSIONS'; + +/** + * Updates the `typesVersions` and `exports` fields in a package's package.json file + * based on the TypeScript downlevel versions we support. + * + * For TS targets < 4.9, it adds a `typesVersions` field with the downlevelled + * TypeScript declaration files. + * For TS targets >= 4.9, it adds an `exports` field with the types condition. + * + * e.g. + * ```json + * { + * "typesVersions": { + * "*": { + * ".": ["./index.d.ts"] + * }, + * "<4.8": { + * ".": ["./ts4.0/index.d.ts"] + * } + * }, + * "exports": { + * ".": { + * "import": "./index.d.ts", + * "require": "./index.d.ts", + * "types<4.8": "./ts4.0/index.d.ts", + * "types<5.0": "./ts4.9/index.d.ts" + * } + * } + * } + * ``` + */ +export function updateTypesVersions( + packageDir: string = process.cwd(), + { verbose }: { verbose?: boolean } = {}, +) { + try { + const packageJsonPath = path.join(packageDir, 'package.json'); + + // Check if package.json exists + if (!fs.existsSync(packageJsonPath)) { + console.log(chalk.yellow(`No package.json found in ${packageDir}`)); + return; + } + + // Read the package.json file + const packageJsonContent = fs.readFileSync(packageJsonPath, 'utf8'); + const packageJson = JSON.parse(packageJsonContent); + + const { name: packageName } = packageJson; + + // Skip excluded packages + if (EXCLUDED_PACKAGES.includes(packageName)) { + console.log(chalk.gray(`\tSkipping excluded package: ${packageName}`)); + return; + } + + // Construct the base typesVersions field + const typesVersions: Record>> = { + '*': { + '.': ['./index.d.ts'], + }, + }; + + // Construct the exports field with types conditions + let exportsField = packageJson.exports || { '.': {} }; + + // If exports field is a string, convert it to an object + if (typeof exportsField === 'string') { + exportsField = { '.': exportsField }; + } + + // Ensure the main export path exists + if (!exportsField['.']) { + exportsField['.'] = {}; + } else if (typeof exportsField['.'] === 'string') { + // If the main export is a string, convert it to an object + const mainExport = exportsField['.']; + exportsField['.'] = { + import: mainExport, + require: mainExport, + }; + } + + // set the default types export + if (!exportsField['.'].types) { + exportsField['.'].types = './index.d.ts'; + } + + // Add entries for each TypeScript version we support + DOWNLEVEL_VERSIONS.forEach(({ condition, target }) => { + // Add to typesVersions if target is less than 4.9 + // https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#exports-is-prioritized-over-typesversions + if (parseFloat(target) < 4.9) { + typesVersions[condition] = { + '.': [`./ts${target}/index.d.ts`], + }; + } + + // Add to exports field with types condition + if (typeof exportsField['.'] === 'object') { + exportsField['.'][`types${condition}`] = `./ts${target}/index.d.ts`; + } + }); + + // Update package.json + packageJson.typesVersions = typesVersions; + + // TODO: Add this once the multiple exports PR is merged + // packageJson.exports = exportsField; + + // Write the updated package.json + fs.writeFileSync( + packageJsonPath, + JSON.stringify(packageJson, null, 2) + '\n', + ); + + console.log( + chalk.green.bold(`Updated typesVersions and exports in ${packageName}`), + ); + verbose && + console.log( + chalk.gray(`typesVersions: ${JSON.stringify(typesVersions, null, 2)}`), + ); + verbose && + console.log( + chalk.gray(`exports: ${JSON.stringify(exportsField, null, 2)}`), + ); + } catch (error) { + console.error(chalk.red('Error updating typesVersions:'), error); + } +} From 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 15:41:55 -0400 Subject: [PATCH 044/123] comments --- .../typescript/downlevel/TYPES_VERSIONS.ts | 19 +++++++++++++++--- tools/build/src/typescript/downlevel/index.ts | 20 +++++++++++++++---- ...sVersions.ts => updatePackageJsonTypes.ts} | 16 +++++---------- 3 files changed, 37 insertions(+), 18 deletions(-) rename tools/build/src/typescript/downlevel/{updateTypesVersions.ts => updatePackageJsonTypes.ts} (89%) diff --git a/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts b/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts index 202f2c4144..a473e4dd94 100644 --- a/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts +++ b/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts @@ -1,8 +1,21 @@ +interface DownlevelVersion { + /** If the consuming application's TS version satisfies the condition... */ + condition: `${'<' | '>' | ''}${number}.${number}`; + /** ...we should use this version of the package */ + target: `${number}.${number}`; +} + // TS Downlevel mapping export const DOWNLEVEL_VERSIONS = [ - { condition: '<4.8', target: '4.0' }, - { condition: '<5.0', target: '4.9' }, -] as const; + { + condition: '<4.8', + target: '4.0', + }, + { + condition: '<5.0', + target: '4.9', + }, +] as const satisfies Readonly>; // Packages to exclude from typesVersions updates // These packages are CLI-only, and don't need to be down-leveled diff --git a/tools/build/src/typescript/downlevel/index.ts b/tools/build/src/typescript/downlevel/index.ts index a48ffd4231..4c5773c616 100644 --- a/tools/build/src/typescript/downlevel/index.ts +++ b/tools/build/src/typescript/downlevel/index.ts @@ -5,17 +5,24 @@ import path from 'path'; import { downlevelDts } from './downlevel-dts'; import { DOWNLEVEL_VERSIONS, EXCLUDED_PACKAGES } from './TYPES_VERSIONS'; -import { updateTypesVersions } from './updateTypesVersions'; +import { updatePackageJsonTypes } from './updatePackageJsonTypes'; interface DownlevelCommandOptions { verbose?: boolean; + update?: boolean; } /** * Downlevel TypeScript definitions * based on the typesVersions field in package.json. + * + * @param options.verbose - Enable verbose logging + * @param options.update - When true, updates the package.json typesVersions and exports fields */ -export function runTypescriptDownlevel({ verbose }: DownlevelCommandOptions) { +export function runTypescriptDownlevel({ + verbose, + update = false, +}: DownlevelCommandOptions) { const packageDir = process.cwd(); console.log('\nRunning TypeScript downlevel...', packageDir); @@ -31,8 +38,13 @@ export function runTypescriptDownlevel({ verbose }: DownlevelCommandOptions) { } if (DOWNLEVEL_VERSIONS && DOWNLEVEL_VERSIONS?.length > 0) { - // First update typesVersions and exports in package.json - updateTypesVersions(packageDir, { verbose }); + // Only update typesVersions and exports in package.json when flag is true + if (update) { + console.log( + chalk.blue('Updating package.json typesVersions and exports fields...'), + ); + updatePackageJsonTypes(packageDir, { verbose }); + } // Then generate downlevelled TypeScript declaration files DOWNLEVEL_VERSIONS.forEach(({ target }) => { diff --git a/tools/build/src/typescript/downlevel/updateTypesVersions.ts b/tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts similarity index 89% rename from tools/build/src/typescript/downlevel/updateTypesVersions.ts rename to tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts index 94f5ca9553..a65052deb7 100644 --- a/tools/build/src/typescript/downlevel/updateTypesVersions.ts +++ b/tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts @@ -35,7 +35,7 @@ import { DOWNLEVEL_VERSIONS, EXCLUDED_PACKAGES } from './TYPES_VERSIONS'; * } * ``` */ -export function updateTypesVersions( +export function updatePackageJsonTypes( packageDir: string = process.cwd(), { verbose }: { verbose?: boolean } = {}, ) { @@ -56,7 +56,8 @@ export function updateTypesVersions( // Skip excluded packages if (EXCLUDED_PACKAGES.includes(packageName)) { - console.log(chalk.gray(`\tSkipping excluded package: ${packageName}`)); + verbose && + console.log(chalk.gray(`\tSkipping excluded package: ${packageName}`)); return; } @@ -121,16 +122,9 @@ export function updateTypesVersions( ); console.log( - chalk.green.bold(`Updated typesVersions and exports in ${packageName}`), + verbose && + chalk.green.bold(`Updated typesVersions and exports in ${packageName}`), ); - verbose && - console.log( - chalk.gray(`typesVersions: ${JSON.stringify(typesVersions, null, 2)}`), - ); - verbose && - console.log( - chalk.gray(`exports: ${JSON.stringify(exportsField, null, 2)}`), - ); } catch (error) { console.error(chalk.red('Error updating typesVersions:'), error); } From e64560b0db72ec266442cb38b4666ed8dbcd2e55 Mon Sep 17 00:00:00 2001 From: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue, 22 Apr 2025 15:47:12 -0400 Subject: [PATCH 045/123] T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors --- charts/core/src/XAxis/XAxis.tsx | 1 + charts/core/src/YAxis/YAxis.tsx | 1 + package.json | 5 +- packages/code/src/CopyButton/CopyButton.tsx | 1 + .../polymorphic/src/Polymorphic/Polymorph.tsx | 1 + packages/popover/src/Popover/Popover.tsx | 2 - pnpm-lock.yaml | 332 +++++++++++++----- tools/build/package.json | 4 +- .../PropCombinations/utils/valStr.ts | 5 +- 9 files changed, 249 insertions(+), 103 deletions(-) diff --git a/charts/core/src/XAxis/XAxis.tsx b/charts/core/src/XAxis/XAxis.tsx index 97b414c7bd..213ed26b1f 100644 --- a/charts/core/src/XAxis/XAxis.tsx +++ b/charts/core/src/XAxis/XAxis.tsx @@ -33,6 +33,7 @@ const getOptions = ({ width: 1, }, }, + // @ts-expect-error TODO: axisLabel: { show: true, fontFamily: fontFamilies.default, diff --git a/charts/core/src/YAxis/YAxis.tsx b/charts/core/src/YAxis/YAxis.tsx index db663c9ef0..eb8940bca9 100644 --- a/charts/core/src/YAxis/YAxis.tsx +++ b/charts/core/src/YAxis/YAxis.tsx @@ -33,6 +33,7 @@ const getOptions = ({ width: 1, }, }, + // @ts-expect-error TODO: axisLabel: { show: true, fontFamily: fontFamilies.default, diff --git a/package.json b/package.json index 2cbaaa0393..1eb82aab35 100644 --- a/package.json +++ b/package.json @@ -71,15 +71,14 @@ "stream": "^0.0.3", "ts-node": "10.9.2", "turbo": "^2.0.6", - "typescript": "~5.0.4" + "typescript": "~5.8.0" }, "pnpm": { "overrides": { "@testing-library/dom": "9.3.4", "@testing-library/user-event": "13.5.0", "caniuse-lite": "^1.0.30001585", - "jackspeak": "2.1.1", - "typescript": "~5.0.4" + "jackspeak": "2.1.1" } }, "lg": { diff --git a/packages/code/src/CopyButton/CopyButton.tsx b/packages/code/src/CopyButton/CopyButton.tsx index 213ba5299e..39b94f3a05 100644 --- a/packages/code/src/CopyButton/CopyButton.tsx +++ b/packages/code/src/CopyButton/CopyButton.tsx @@ -62,6 +62,7 @@ function CopyButton({ onCopy, contents, className, ...rest }: CopyProps) { const clipboard = new ClipboardJS(buttonRef.current, { text: () => contents, + // @ts-expect-error TODO: types container: portalContainer, }); diff --git a/packages/polymorphic/src/Polymorphic/Polymorph.tsx b/packages/polymorphic/src/Polymorphic/Polymorph.tsx index ba0df3c508..9e4d8e68b0 100644 --- a/packages/polymorphic/src/Polymorphic/Polymorph.tsx +++ b/packages/polymorphic/src/Polymorphic/Polymorph.tsx @@ -36,6 +36,7 @@ export const BasePolymorph = ( * However: If you want to expose `as` as a prop of your component, * prefer the `{@link Polymorphic}` factory function and related hooks. */ +// @ts-expect-error TODO: Polymorphic TS export const Polymorph: PolymorphicComponentType = React.forwardRef(BasePolymorph); Polymorph.displayName = 'Polymorph'; diff --git a/packages/popover/src/Popover/Popover.tsx b/packages/popover/src/Popover/Popover.tsx index 5ea4691905..1b8ad5ff48 100644 --- a/packages/popover/src/Popover/Popover.tsx +++ b/packages/popover/src/Popover/Popover.tsx @@ -177,7 +177,6 @@ export const Popover = forwardRef( if (renderMode === RenderMode.TopLayer) { // @ts-expect-error - `toggle` event not supported pre-typescript v5 elements.floating?.addEventListener('toggle', onToggle); - // @ts-expect-error - Popover API not currently supported in react v18 https://github.com/facebook/react/pull/27981 elements.floating?.showPopover?.(); } @@ -195,7 +194,6 @@ export const Popover = forwardRef( if (renderMode === RenderMode.TopLayer) { // @ts-expect-error - `toggle` event not supported pre-typescript v5 elements.floating?.removeEventListener('toggle', onToggle); - // @ts-expect-error - Popover API not currently supported in react v18 https://github.com/facebook/react/pull/27981 elements.floating?.hidePopover?.(); } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1b30fc9949..02ee390c95 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,7 +9,6 @@ overrides: '@testing-library/user-event': 13.5.0 caniuse-lite: ^1.0.30001585 jackspeak: 2.1.1 - typescript: ~5.0.4 importers: @@ -50,7 +49,7 @@ importers: version: link:tools/test '@storybook/react': specifier: ^8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.8.3) '@testing-library/react': specifier: ^14.0.0 version: 14.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -83,7 +82,7 @@ importers: version: 3.2.3 npm-package-json-lint: specifier: 8.0.0 - version: 8.0.0(typescript@5.0.4) + version: 8.0.0(typescript@5.8.3) npm-run-all: specifier: ^4.1.5 version: 4.1.5 @@ -104,13 +103,13 @@ importers: version: 0.0.3 ts-node: specifier: 10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3) turbo: specifier: ^2.0.6 version: 2.0.6 typescript: - specifier: ~5.0.4 - version: 5.0.4 + specifier: ~5.8.0 + version: 5.8.3 charts/chart-card: dependencies: @@ -1624,7 +1623,7 @@ importers: version: 11.0.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250422) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -2954,10 +2953,10 @@ importers: version: 8.0.0(@babel/core@7.24.3) '@svgr/cli': specifier: 8.0.1 - version: 8.0.1(typescript@5.0.4) + version: 8.0.1(typescript@5.8.3) '@svgr/rollup': specifier: ^8.1.0 - version: 8.1.0(rollup@4.16.1)(typescript@5.0.4) + version: 8.1.0(rollup@4.16.1)(typescript@5.8.3) '@types/cross-spawn': specifier: 6.0.2 version: 6.0.2 @@ -2984,7 +2983,7 @@ importers: version: 4.17.21 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.0.4) + version: 2.2.2(typescript@5.8.3) rollup: specifier: 4.16.1 version: 4.16.1 @@ -3001,8 +3000,8 @@ importers: specifier: ^2.0.6 version: 2.0.6 typescript: - specifier: ~5.0.4 - version: 5.0.4 + specifier: ~5.8.0 + version: 5.8.3 devDependencies: '@types/mock-fs': specifier: ^4.13.4 @@ -3242,7 +3241,7 @@ importers: specifier: 2.8.8 version: 2.8.8 typescript: - specifier: ~5.0.4 + specifier: ~5.0.0 version: 5.0.4 tools/meta: @@ -3355,10 +3354,10 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) '@storybook/test': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) @@ -3367,7 +3366,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.0.4) + version: 8.0.1(typescript@5.9.0-dev.20250422) assert: specifier: ^2.1.0 version: 2.1.0 @@ -3409,7 +3408,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.0.4) + version: 2.2.2(typescript@5.9.0-dev.20250422) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3469,7 +3468,7 @@ importers: version: link:../storybook-utils '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.8.3) lodash: specifier: 4.17.21 version: 4.17.21 @@ -3481,7 +3480,7 @@ importers: version: 0.1.13 '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.8.3) glob: specifier: 10.3.12 version: 10.3.12 @@ -3556,7 +3555,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -5288,7 +5287,7 @@ packages: '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0': resolution: {integrity: sha512-KUqXC3oa9JuQ0kZJLBhVdS4lOneKTOopnNBK4tUAgoxWQ3u/IjzdueZjFr7gyBrXMoU6duutk3RQR9u8ZpYJ4Q==} peerDependencies: - typescript: ~5.0.4 + typescript: '>= 4.x' webpack: '>= 4' '@storybook/react-dom-shim@8.6.12': @@ -5305,7 +5304,7 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta storybook: ^8.6.12 - typescript: ~5.0.4 + typescript: '>= 4.2.x' peerDependenciesMeta: typescript: optional: true @@ -5318,7 +5317,7 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta storybook: ^8.6.12 - typescript: ~5.0.4 + typescript: '>= 4.2.x' peerDependenciesMeta: '@storybook/test': optional: true @@ -6650,7 +6649,7 @@ packages: resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==} engines: {node: '>=14'} peerDependencies: - typescript: ~5.0.4 + typescript: '>=4.9.5' peerDependenciesMeta: typescript: optional: true @@ -7438,7 +7437,7 @@ packages: resolution: {integrity: sha512-mX3qW3idpueT2klaQXBzrIM/pHw+T0B/V9KHEvNrqijTq9NFnMZU6oreVxDYcf33P8a5cW+67PjodNHthGnNVg==} engines: {node: '>=12.13.0', yarn: '>=1.0.0'} peerDependencies: - typescript: ~5.0.4 + typescript: '>3.6.0' webpack: ^5.11.0 form-data@2.5.1: @@ -9313,7 +9312,7 @@ packages: react-docgen-typescript@2.2.2: resolution: {integrity: sha512-tvg2ZtOpOi6QDwsb3GZhOjDkkX0h8Z2gipvTg6OVMUyoYoURhEiRNePT8NZItTVCDh39JJHnLdfCOkzoLbFnTg==} peerDependencies: - typescript: ~5.0.4 + typescript: '>= 4.3.x' react-docgen@7.0.3: resolution: {integrity: sha512-i8aF1nyKInZnANZ4uZrH49qn1paRgBZ7wZiCNBMnenlPzEv0mRl+ShpTVEI6wZNl8sSc79xZkivtgLKQArcanQ==} @@ -10093,7 +10092,7 @@ packages: resolution: {integrity: sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==} engines: {node: '>=16'} peerDependencies: - typescript: ~5.0.4 + typescript: '>=4.2.0' ts-dedent@2.2.0: resolution: {integrity: sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==} @@ -10106,7 +10105,7 @@ packages: '@swc/core': '>=1.2.50' '@swc/wasm': '>=1.2.50' '@types/node': '*' - typescript: ~5.0.4 + typescript: '>=2.7' peerDependenciesMeta: '@swc/core': optional: true @@ -10133,7 +10132,7 @@ packages: resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} peerDependencies: - typescript: ~5.0.4 + typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' tty-browserify@0.0.1: resolution: {integrity: sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==} @@ -10238,6 +10237,16 @@ packages: engines: {node: '>=12.20'} hasBin: true + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + + typescript@5.9.0-dev.20250422: + resolution: {integrity: sha512-nhqzYEg74esioK1dt0zLZBEdpDv1VXZqX9qWe9qFi3pkYjXr2Rok3MTV0+CEDc7DIL6sKeJ5YBRuePpIsSmmfA==} + engines: {node: '>=14.17'} + hasBin: true + unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} @@ -12111,7 +12120,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12125,7 +12134,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12596,7 +12605,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 @@ -12606,7 +12615,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250422)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -12624,7 +12633,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.0.4 + typescript: 5.9.0-dev.20250422 transitivePeerDependencies: - '@swc/core' - esbuild @@ -12742,11 +12751,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250422)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -12759,7 +12768,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.0.4 + typescript: 5.9.0-dev.20250422 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -12776,16 +12785,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250422)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.0.4) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250422) tslib: 2.6.2 - typescript: 5.0.4 + typescript: 5.9.0-dev.20250422 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -12802,16 +12811,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) optionalDependencies: - typescript: 5.0.4 + typescript: 5.9.0-dev.20250422 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -12820,7 +12829,7 @@ snapshots: - uglify-js - webpack-cli - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.0.4)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@2.8.8)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@2.8.8))(typescript@5.8.3)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@2.8.8)) '@storybook/global': 5.0.0 @@ -12833,9 +12842,9 @@ snapshots: storybook: 8.6.12(prettier@2.8.8) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@2.8.8)) - typescript: 5.0.4 + typescript: 5.8.3 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.0.4)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.8.3)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 @@ -12848,7 +12857,22 @@ snapshots: storybook: 8.6.12(prettier@3.5.3) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - typescript: 5.0.4 + typescript: 5.8.3 + + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422)': + dependencies: + '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/global': 5.0.0 + '@storybook/manager-api': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/preview-api': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + '@storybook/react-dom-shim': 8.6.12(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3)) + '@storybook/theming': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + storybook: 8.6.12(prettier@3.5.3) + optionalDependencies: + '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) + typescript: 5.9.0-dev.20250422 '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: @@ -12980,12 +13004,12 @@ snapshots: '@svgr/babel-plugin-transform-react-native-svg': 8.1.0(@babel/core@7.24.3) '@svgr/babel-plugin-transform-svg-component': 8.0.0(@babel/core@7.24.3) - '@svgr/cli@8.0.1(typescript@5.0.4)': + '@svgr/cli@8.0.1(typescript@5.8.3)': dependencies: - '@svgr/core': 8.0.0(typescript@5.0.4) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) - '@svgr/plugin-prettier': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.8.3) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.8.3)) + '@svgr/plugin-prettier': 8.0.1(@svgr/core@8.0.0(typescript@5.8.3)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.8.3))(typescript@5.8.3) camelcase: 6.3.0 chalk: 4.1.2 commander: 9.5.0 @@ -13004,23 +13028,34 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/core@8.0.0(typescript@5.0.4)': + '@svgr/core@8.0.0(typescript@5.8.3)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.0.4) + cosmiconfig: 8.3.6(typescript@5.8.3) snake-case: 3.0.4 transitivePeerDependencies: - supports-color - typescript - '@svgr/core@8.1.0(typescript@5.0.4)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250422)': + dependencies: + '@babel/core': 7.24.3 + '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) + camelcase: 6.3.0 + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250422) + snake-case: 3.0.4 + transitivePeerDependencies: + - supports-color + - typescript + + '@svgr/core@8.1.0(typescript@5.8.3)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.1.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.0.4) + cosmiconfig: 8.3.6(typescript@5.8.3) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13044,51 +13079,70 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.8.3))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.8.3) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0(typescript@5.0.4))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250422))': + dependencies: + '@babel/core': 7.24.3 + '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250422) + '@svgr/hast-util-to-babel-ast': 8.0.0 + svg-parser: 2.0.4 + transitivePeerDependencies: + - supports-color + + '@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0(typescript@5.8.3))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.1.0(@babel/core@7.24.3) - '@svgr/core': 8.1.0(typescript@5.0.4) + '@svgr/core': 8.1.0(typescript@5.8.3) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: - supports-color - '@svgr/plugin-prettier@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))': + '@svgr/plugin-prettier@8.0.1(@svgr/core@8.0.0(typescript@5.8.3))': dependencies: - '@svgr/core': 8.0.0(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.8.3) deepmerge: 4.3.1 prettier: 2.8.8 - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.8.3))(typescript@5.8.3)': dependencies: - '@svgr/core': 8.0.0(typescript@5.0.4) - cosmiconfig: 8.3.6(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.8.3) + cosmiconfig: 8.3.6(typescript@5.8.3) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.1.0(@svgr/core@8.1.0(typescript@5.0.4))(typescript@5.0.4)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250422))(typescript@5.9.0-dev.20250422)': dependencies: - '@svgr/core': 8.1.0(typescript@5.0.4) - cosmiconfig: 8.3.6(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250422) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250422) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: - typescript - '@svgr/rollup@8.1.0(rollup@4.16.1)(typescript@5.0.4)': + '@svgr/plugin-svgo@8.1.0(@svgr/core@8.1.0(typescript@5.8.3))(typescript@5.8.3)': + dependencies: + '@svgr/core': 8.1.0(typescript@5.8.3) + cosmiconfig: 8.3.6(typescript@5.8.3) + deepmerge: 4.3.1 + svgo: 3.0.2 + transitivePeerDependencies: + - typescript + + '@svgr/rollup@8.1.0(rollup@4.16.1)(typescript@5.8.3)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) @@ -13096,24 +13150,24 @@ snapshots: '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) '@rollup/pluginutils': 5.0.2(rollup@4.16.1) - '@svgr/core': 8.1.0(typescript@5.0.4) - '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@5.0.4)) - '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0(typescript@5.0.4))(typescript@5.0.4) + '@svgr/core': 8.1.0(typescript@5.8.3) + '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0(typescript@5.8.3)) + '@svgr/plugin-svgo': 8.1.0(@svgr/core@8.1.0(typescript@5.8.3))(typescript@5.8.3) transitivePeerDependencies: - rollup - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.0.4)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250422)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.0.4) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.0.4))(typescript@5.0.4) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250422) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250422)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250422))(typescript@5.9.0-dev.20250422) transitivePeerDependencies: - supports-color - typescript @@ -14420,6 +14474,24 @@ snapshots: optionalDependencies: typescript: 5.0.4 + cosmiconfig@8.3.6(typescript@5.8.3): + dependencies: + import-fresh: 3.3.0 + js-yaml: 4.1.0 + parse-json: 5.2.0 + path-type: 4.0.0 + optionalDependencies: + typescript: 5.8.3 + + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250422): + dependencies: + import-fresh: 3.3.0 + js-yaml: 4.1.0 + parse-json: 5.2.0 + path-type: 4.0.0 + optionalDependencies: + typescript: 5.9.0-dev.20250422 + create-ecdh@4.0.4: dependencies: bn.js: 4.12.1 @@ -14814,7 +14886,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.0.4 + typescript: 5.9.0-dev.20250422 dunder-proto@1.0.1: dependencies: @@ -15431,7 +15503,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.0.4)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250422)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15445,7 +15517,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.0.4 + typescript: 5.9.0-dev.20250422 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -16119,16 +16191,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16203,7 +16275,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16229,7 +16301,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16497,12 +16569,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -17502,6 +17574,29 @@ snapshots: - supports-color - typescript + npm-package-json-lint@8.0.0(typescript@5.8.3): + dependencies: + ajv: 6.12.6 + ajv-errors: 1.0.1(ajv@6.12.6) + chalk: 4.1.2 + cosmiconfig: 8.3.6(typescript@5.8.3) + debug: 4.3.4 + globby: 11.1.0 + ignore: 5.3.2 + is-plain-obj: 3.0.0 + jsonc-parser: 3.3.1 + log-symbols: 4.1.0 + meow: 9.0.0 + plur: 4.0.0 + semver: 7.6.3 + slash: 3.0.0 + strip-json-comments: 3.1.1 + type-fest: 4.30.0 + validate-npm-package-name: 5.0.1 + transitivePeerDependencies: + - supports-color + - typescript + npm-run-all@4.1.5: dependencies: ansi-styles: 3.2.1 @@ -17929,9 +18024,13 @@ snapshots: range-parser@1.2.1: {} - react-docgen-typescript@2.2.2(typescript@5.0.4): + react-docgen-typescript@2.2.2(typescript@5.8.3): dependencies: - typescript: 5.0.4 + typescript: 5.8.3 + + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250422): + dependencies: + typescript: 5.9.0-dev.20250422 react-docgen@7.0.3: dependencies: @@ -18888,8 +18987,49 @@ snapshots: yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) + optional: true + + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3): + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.11 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 20.17.12 + acorn: 8.14.0 + acorn-walk: 8.3.3 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.8.3 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + optionalDependencies: + '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.0.4): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250422): + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.11 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 20.17.12 + acorn: 8.14.0 + acorn-walk: 8.3.3 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.9.0-dev.20250422 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + optionalDependencies: + '@swc/core': 1.4.2(@swc/helpers@0.5.1) + + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -18903,7 +19043,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.0.4 + typescript: 5.9.0-dev.20250422 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19030,6 +19170,10 @@ snapshots: typescript@5.0.4: {} + typescript@5.8.3: {} + + typescript@5.9.0-dev.20250422: {} + unbox-primitive@1.0.2: dependencies: call-bind: 1.0.7 diff --git a/tools/build/package.json b/tools/build/package.json index 8c2a27d60b..9905b89f36 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -46,12 +46,12 @@ "rollup-plugin-bundle-stats": "^4.18.2", "rollup-plugin-node-externals": "7.1.1", "rollup-plugin-polyfill-node": "0.13.0", - "typescript": "~5.0.0" + "typescript": "~5.8.0" }, "peerDependencies": { "@babel/core": "7.24.0", "turbo": "^2.0.6", - "typescript": "~5.0.0" + "typescript": "~5.8.0" }, "devDependencies": { "@types/mock-fs": "^4.13.4", diff --git a/tools/storybook-decorators/src/decorators/PropCombinations/utils/valStr.ts b/tools/storybook-decorators/src/decorators/PropCombinations/utils/valStr.ts index c1d81815bd..458efe2923 100644 --- a/tools/storybook-decorators/src/decorators/PropCombinations/utils/valStr.ts +++ b/tools/storybook-decorators/src/decorators/PropCombinations/utils/valStr.ts @@ -13,8 +13,9 @@ export function valStr(val: any): string { if (typeof val === 'object') { if (val.type) { if (typeof val.type === 'string') return `<${val.type} />`; - // eslint-disable-next-line no-constant-binary-expression - return `<${val.type.displayName} />` ?? 'JSX Element'; + return val.type.displayName + ? `<${val.type.displayName} />` + : 'JSX Element'; } if (Array.isArray(val)) return 'Array'; From b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 15:48:13 -0400 Subject: [PATCH 046/123] Update build-typescript-5.md --- .changeset/build-typescript-5.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.changeset/build-typescript-5.md b/.changeset/build-typescript-5.md index 0db0b02c6a..2d701c7d5b 100644 --- a/.changeset/build-typescript-5.md +++ b/.changeset/build-typescript-5.md @@ -2,6 +2,7 @@ '@lg-tools/build': minor --- -- Upgrades to TS 5.0. -- Adds `--downlevel` option for `build-ts`. This option exports downleveled `*.d.ts` files for a defined set of targets. Updates a package's `package.json` if necessary. +- Upgrades to TS 5.8. +- Adds `--downlevel` option for `build-ts`. This option exports downleveled `*.d.ts` files for a defined set of targets. +Updates a package's `package.json` if necessary `--update` flag is provided. This uses [downlevel-dts](https://github.com/sandersn/downlevel-dts) under the hood. From 768915edd5dffdae63a0208b234fae5c685eced4 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 16:38:41 -0400 Subject: [PATCH 047/123] Update tsconfig.json --- tools/install/scripts/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install/scripts/tsconfig.json b/tools/install/scripts/tsconfig.json index b2cb3a1768..1c195bbc16 100644 --- a/tools/install/scripts/tsconfig.json +++ b/tools/install/scripts/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@lg-tools/build/config/root.tsconfig.json", + "extends": "@lg-tools/build/config/script.tsconfig.json", "compilerOptions": { "strict": true, "baseUrl": ".", From 1f6a890914e4f48e3c475004577143f1bcd521de Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 16:59:01 -0400 Subject: [PATCH 048/123] lint fix --- scripts/package.json | 2 +- tools/build/config/package.tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/package.json b/scripts/package.json index 86770c517d..db580a0db5 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "keywords": [], "author": "", - "license": "", + "license": "Apache-2.0", "dependencies": { "@lg-tools/meta": "workspace:*", "chalk": "^4.1.2", diff --git a/tools/build/config/package.tsconfig.json b/tools/build/config/package.tsconfig.json index 42c183ec46..143abf8ddc 100644 --- a/tools/build/config/package.tsconfig.json +++ b/tools/build/config/package.tsconfig.json @@ -17,6 +17,6 @@ "strict": true, "strictNullChecks": true, "pretty": true, - "skipLibCheck": true, + "skipLibCheck": true } } From 988eed624c885c59baf29e563b35d5afa41b0fe0 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 17:10:32 -0400 Subject: [PATCH 049/123] Update typescript-5-all.md --- .changeset/typescript-5-all.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/typescript-5-all.md b/.changeset/typescript-5-all.md index 4d415a0dce..0c2b1367f1 100644 --- a/.changeset/typescript-5-all.md +++ b/.changeset/typescript-5-all.md @@ -99,4 +99,4 @@ --- -Updates Typescript build to TS5.0 +Updates Typescript build to TS5.8 From c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 18:27:34 -0400 Subject: [PATCH 050/123] add --update to bin cmd --- tools/build/bin/ts-downlevel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/build/bin/ts-downlevel.js b/tools/build/bin/ts-downlevel.js index 35b3f7cef8..dc937d8cee 100755 --- a/tools/build/bin/ts-downlevel.js +++ b/tools/build/bin/ts-downlevel.js @@ -2,4 +2,6 @@ const { runTypescriptDownlevel } = require('../dist/index.js'); const args = process.argv.slice(2); const verbose = args.includes('--verbose') || args.includes('-v'); -runTypescriptDownlevel({ verbose }); +const update = args.includes('--update') || args.includes('-u'); + +runTypescriptDownlevel({ verbose, update }); From 96aa7c31f002baf5ed4abd78a459a8590df0c503 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 18:27:54 -0400 Subject: [PATCH 051/123] ensure empty --- tools/build/src/typescript/downlevel/downlevel-dts.ts | 4 ++++ .../src/typescript/downlevel/updatePackageJsonTypes.ts | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/build/src/typescript/downlevel/downlevel-dts.ts b/tools/build/src/typescript/downlevel/downlevel-dts.ts index c10b796ecb..0a5e4a067a 100644 --- a/tools/build/src/typescript/downlevel/downlevel-dts.ts +++ b/tools/build/src/typescript/downlevel/downlevel-dts.ts @@ -45,6 +45,10 @@ export async function downlevelDts( return; } + // Remove existing downlevel directory + fse.ensureDirSync(outputDirPath); + fse.emptyDirSync(outputDirPath); + console.log( chalk.blue.bold(`Downlevelling TypeScript declarations to TS${target}`), ); diff --git a/tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts b/tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts index a65052deb7..c68ff65829 100644 --- a/tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts +++ b/tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts @@ -121,10 +121,10 @@ export function updatePackageJsonTypes( JSON.stringify(packageJson, null, 2) + '\n', ); - console.log( - verbose && + verbose && + console.log( chalk.green.bold(`Updated typesVersions and exports in ${packageName}`), - ); + ); } catch (error) { console.error(chalk.red('Error updating typesVersions:'), error); } From 06ec702e08075e1c99003b917677385e5d1f1b47 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 12:47:19 -0400 Subject: [PATCH 052/123] Create validate-build-package-json.md --- .changeset/validate-build-package-json.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/validate-build-package-json.md diff --git a/.changeset/validate-build-package-json.md b/.changeset/validate-build-package-json.md new file mode 100644 index 0000000000..3cfa9f7a72 --- /dev/null +++ b/.changeset/validate-build-package-json.md @@ -0,0 +1,5 @@ +--- +'@lg-tools/validate': minor +--- + +Updates build validation to use the entry files defined in the package.json From 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 12:53:58 -0400 Subject: [PATCH 053/123] Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. --- .changeset/validate-build-package-json.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .changeset/validate-build-package-json.md diff --git a/.changeset/validate-build-package-json.md b/.changeset/validate-build-package-json.md deleted file mode 100644 index 3cfa9f7a72..0000000000 --- a/.changeset/validate-build-package-json.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lg-tools/validate': minor ---- - -Updates build validation to use the entry files defined in the package.json From fce55fa964fc431173b9453bd0a3b779fe3e9e19 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 13:20:48 -0400 Subject: [PATCH 054/123] Delete package.json --- scripts/package.json | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 scripts/package.json diff --git a/scripts/package.json b/scripts/package.json deleted file mode 100644 index db580a0db5..0000000000 --- a/scripts/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "lg-scripts", - "description": "Defines dependencies for LeafyGreen scripts, so they don't need to be installed at the root level.", - "version": "0.0.0", - "keywords": [], - "author": "", - "license": "Apache-2.0", - "dependencies": { - "@lg-tools/meta": "workspace:*", - "chalk": "^4.1.2", - "prettier": "^3.5.3" - } -} From eb8708786361825a7b040bd69513ccb6852ded0a Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 13:24:54 -0400 Subject: [PATCH 055/123] revert typesversions --- charts/chart-card/package.json | 3 +-- charts/colors/package.json | 3 +-- charts/core/package.json | 3 +-- charts/drag-provider/package.json | 5 ++--- charts/legend/package.json | 3 +-- charts/series-provider/package.json | 5 ++--- chat/avatar/package.json | 8 +++++++- chat/chat-disclaimer/package.json | 3 +-- chat/chat-window/package.json | 8 +++++++- chat/fixed-chat-window/package.json | 3 +-- chat/input-bar/package.json | 8 +++++++- chat/leafygreen-chat-provider/package.json | 8 +++++++- chat/lg-markdown/package.json | 8 +++++++- chat/message-feed/package.json | 8 +++++++- chat/message-feedback/package.json | 8 +++++++- chat/message-prompts/package.json | 3 +-- chat/message-rating/package.json | 8 +++++++- chat/message/package.json | 8 +++++++- chat/rich-links/package.json | 3 +-- chat/title-bar/package.json | 8 +++++++- packages/a11y/package.json | 8 +++++++- packages/avatar/package.json | 8 +++++++- packages/badge/package.json | 8 +++++++- packages/banner/package.json | 8 +++++++- packages/box/package.json | 8 +++++++- packages/button/package.json | 8 +++++++- packages/callout/package.json | 8 +++++++- packages/card/package.json | 8 +++++++- packages/checkbox/package.json | 8 +++++++- packages/chip/package.json | 3 +-- packages/code/package.json | 8 +++++++- packages/combobox/package.json | 8 +++++++- packages/confirmation-modal/package.json | 8 +++++++- packages/copyable/package.json | 8 +++++++- packages/date-picker/package.json | 3 +-- packages/date-utils/package.json | 3 +-- packages/descendants/package.json | 3 +-- packages/drawer/package.json | 3 +-- packages/emotion/package.json | 8 +++++++- packages/empty-state/package.json | 8 +++++++- packages/expandable-card/package.json | 8 +++++++- packages/form-field/package.json | 3 +-- packages/form-footer/package.json | 8 +++++++- packages/gallery-indicator/package.json | 3 +-- packages/guide-cue/package.json | 8 +++++++- packages/hooks/package.json | 8 +++++++- packages/icon-button/package.json | 8 +++++++- packages/icon/package.json | 8 +++++++- packages/info-sprinkle/package.json | 3 +-- packages/inline-definition/package.json | 8 +++++++- packages/input-option/package.json | 8 +++++++- packages/leafygreen-provider/package.json | 8 +++++++- packages/lib/package.json | 8 +++++++- packages/loading-indicator/package.json | 8 +++++++- packages/logo/package.json | 8 +++++++- packages/marketing-modal/package.json | 8 +++++++- packages/menu/package.json | 8 +++++++- packages/modal/package.json | 8 +++++++- packages/number-input/package.json | 8 +++++++- packages/ordered-list/package.json | 3 +-- packages/pagination/package.json | 8 +++++++- packages/palette/package.json | 8 +++++++- packages/password-input/package.json | 8 +++++++- packages/pipeline/package.json | 8 +++++++- packages/polymorphic/package.json | 8 +++++++- packages/popover/package.json | 8 +++++++- packages/portal/package.json | 8 +++++++- packages/radio-box-group/package.json | 8 +++++++- packages/radio-group/package.json | 8 +++++++- packages/ripple/package.json | 8 +++++++- packages/search-input/package.json | 8 +++++++- packages/segmented-control/package.json | 8 +++++++- packages/select/package.json | 8 +++++++- packages/side-nav/package.json | 8 +++++++- packages/skeleton-loader/package.json | 8 +++++++- packages/split-button/package.json | 8 +++++++- packages/stepper/package.json | 8 +++++++- packages/table/package.json | 8 +++++++- packages/tabs/package.json | 8 +++++++- packages/testing-lib/package.json | 8 +++++++- packages/text-area/package.json | 8 +++++++- packages/text-input/package.json | 8 +++++++- packages/toast/package.json | 8 +++++++- packages/toggle/package.json | 8 +++++++- packages/tokens/package.json | 8 +++++++- packages/tooltip/package.json | 8 +++++++- packages/typography/package.json | 8 +++++++- tools/codemods/package.json | 3 +-- tools/meta/package.json | 3 +-- tools/storybook-addon/package.json | 3 +-- tools/storybook-decorators/package.json | 3 +-- tools/storybook-utils/package.json | 3 +-- tools/test-harnesses/package.json | 3 +-- 93 files changed, 503 insertions(+), 120 deletions(-) diff --git a/charts/chart-card/package.json b/charts/chart-card/package.json index 274b698e0d..45a60bf026 100644 --- a/charts/chart-card/package.json +++ b/charts/chart-card/package.json @@ -34,6 +34,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/charts/colors/package.json b/charts/colors/package.json index 8cd0340791..2bcc88f078 100644 --- a/charts/colors/package.json +++ b/charts/colors/package.json @@ -31,6 +31,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/charts/core/package.json b/charts/core/package.json index 4300be0f67..991a6135d2 100644 --- a/charts/core/package.json +++ b/charts/core/package.json @@ -42,6 +42,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index 3ecd091a4a..5b05dfa02b 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -32,6 +32,5 @@ }, "devDependencies": { "@storybook/test": "8.5.3" - }, - "typesVersions": {} -} + } +} \ No newline at end of file diff --git a/charts/legend/package.json b/charts/legend/package.json index 91c00adb96..eb1ce6a478 100644 --- a/charts/legend/package.json +++ b/charts/legend/package.json @@ -36,6 +36,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index dff0c33ab5..95e8612806 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -23,6 +23,5 @@ }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" - }, - "typesVersions": {} -} + } +} \ No newline at end of file diff --git a/chat/avatar/package.json b/chat/avatar/package.json index aa3e305590..0a85b533bc 100644 --- a/chat/avatar/package.json +++ b/chat/avatar/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/chat-disclaimer/package.json b/chat/chat-disclaimer/package.json index 62e0ea30a7..e1c4b25c2d 100644 --- a/chat/chat-disclaimer/package.json +++ b/chat/chat-disclaimer/package.json @@ -32,6 +32,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index a04f61c119..3d93339e9f 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/fixed-chat-window/package.json b/chat/fixed-chat-window/package.json index a77404d140..6745a79728 100644 --- a/chat/fixed-chat-window/package.json +++ b/chat/fixed-chat-window/package.json @@ -45,6 +45,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index 3fe690a226..66c4936a37 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index 59fc43ec6e..31a3923019 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index af6f046bce..87fb31dbe5 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index a92c86b644..a6e8dccfa8 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index 1dc8288669..7defdb78c5 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/chat/message-prompts/package.json b/chat/message-prompts/package.json index 25d4608f85..5b28bd3362 100644 --- a/chat/message-prompts/package.json +++ b/chat/message-prompts/package.json @@ -32,6 +32,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {}, - "typesVersions": {} + "devDependencies": {} } diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index 9d166bdbc6..75f14d28be 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/message/package.json b/chat/message/package.json index 56c2f3ce87..a90f90f79c 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/rich-links/package.json b/chat/rich-links/package.json index c8bd9b61bb..19c76ea5be 100644 --- a/chat/rich-links/package.json +++ b/chat/rich-links/package.json @@ -36,6 +36,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {}, - "typesVersions": {} + "devDependencies": {} } diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index 12ead86a44..6ccbacd550 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/packages/a11y/package.json b/packages/a11y/package.json index eb6f79e254..1bee4faf10 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/avatar/package.json b/packages/avatar/package.json index bf5ad0790c..ead186d902 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/badge/package.json b/packages/badge/package.json index 4de96e7f28..3f29d13c2e 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/banner/package.json b/packages/banner/package.json index dd11dede10..5f32e52351 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/box/package.json b/packages/box/package.json index 2c19c14f95..cfd4328a7b 100644 --- a/packages/box/package.json +++ b/packages/box/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/button/package.json b/packages/button/package.json index 5b38a41013..8573980d26 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/callout/package.json b/packages/callout/package.json index 0c80710999..b377e3a30d 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/card/package.json b/packages/card/package.json index fa3b347582..6a69ecdb9e 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index 6af6542764..a6752d6e1d 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/chip/package.json b/packages/chip/package.json index 4e2a07b8b2..5e37083843 100644 --- a/packages/chip/package.json +++ b/packages/chip/package.json @@ -33,6 +33,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {}, - "typesVersions": {} + "devDependencies": {} } diff --git a/packages/code/package.json b/packages/code/package.json index 20911ea02e..9f021003cc 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/combobox/package.json b/packages/combobox/package.json index fe92fe0e98..f39da6cb45 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index 700e2dea04..ee43066d5e 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/copyable/package.json b/packages/copyable/package.json index fb7806b39d..b074ecea9f 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index fdd073583d..e3284a399d 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -49,6 +49,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index e8e9bac161..35973e66d2 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -37,6 +37,5 @@ "leafygreen", "date", "date-fns" - ], - "typesVersions": {} + ] } diff --git a/packages/descendants/package.json b/packages/descendants/package.json index a4b87fea96..1b1986b26c 100644 --- a/packages/descendants/package.json +++ b/packages/descendants/package.json @@ -35,6 +35,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/packages/drawer/package.json b/packages/drawer/package.json index f4f0966398..883b3d659f 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -43,6 +43,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 8e8d04ec2d..43695bc9fe 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "prebuild": "ts-node scripts/prebuild.ts", "build": "lg build-package", diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index 01d7c6e4c4..45fb4306e3 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index 6c32bc6c13..730239cfd7 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/form-field/package.json b/packages/form-field/package.json index 52ce7bf3b8..5dcf8d89f4 100644 --- a/packages/form-field/package.json +++ b/packages/form-field/package.json @@ -37,6 +37,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index a11c6c4939..de13e8ee78 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index b8caa5ae51..b417d73f7e 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -32,6 +32,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {}, - "typesVersions": {} + "devDependencies": {} } diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index 4506c3004a..1b2a08e9e0 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/hooks/package.json b/packages/hooks/package.json index df4ad00242..8a0a482200 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index 2e640eb2cf..2ba294d991 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/icon/package.json b/packages/icon/package.json index 229ce74a02..605b1d4e6f 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "prebuild": "ts-node ./scripts/prebuild.ts", "build": "lg build-package", diff --git a/packages/info-sprinkle/package.json b/packages/info-sprinkle/package.json index 883e11dca4..92f63affdf 100644 --- a/packages/info-sprinkle/package.json +++ b/packages/info-sprinkle/package.json @@ -33,6 +33,5 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {}, - "typesVersions": {} + "devDependencies": {} } diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index 73a9f4d910..7dfdc2e6da 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/input-option/package.json b/packages/input-option/package.json index cddf4b6053..b93d3cc587 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index 7c0aec8ed4..a43609e5a6 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/lib/package.json b/packages/lib/package.json index 737a338e9a..3a920df9a5 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index 46d3b64673..7bfaabdd47 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/logo/package.json b/packages/logo/package.json index 24d6413b7c..d7954fd622 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index 3319390a63..d37ce13f48 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/menu/package.json b/packages/menu/package.json index 1e068a8bc9..db6718b7c2 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/modal/package.json b/packages/modal/package.json index f5e22c0e92..af95f2633c 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/number-input/package.json b/packages/number-input/package.json index 2df96fe448..cfdbabceff 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/ordered-list/package.json b/packages/ordered-list/package.json index 746154c80a..886db14207 100644 --- a/packages/ordered-list/package.json +++ b/packages/ordered-list/package.json @@ -32,6 +32,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/packages/pagination/package.json b/packages/pagination/package.json index af7f6f4841..b693da2436 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/palette/package.json b/packages/palette/package.json index 0eb9dff255..a091ce3af7 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/password-input/package.json b/packages/password-input/package.json index 7bbcb60cfb..200ebc1f60 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index 7cb9af732a..a0f94a7259 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index 50d411352f..1303bdfa09 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/popover/package.json b/packages/popover/package.json index 7407328fd4..2c37eb8b78 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/portal/package.json b/packages/portal/package.json index 718e48d064..c38806bdce 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index 19d4a6ab67..3bbafc438c 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index 8819ed533d..8668bd009b 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 217d9c97cf..82ef1db953 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/search-input/package.json b/packages/search-input/package.json index e603d0f2fc..92d903074d 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index a9948abb5d..77a0d4338c 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/select/package.json b/packages/select/package.json index f6fe4b7adb..bb9a63312f 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index 7f0a54e06b..20c00e468a 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index 576fe1927a..1f37d6043e 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/split-button/package.json b/packages/split-button/package.json index b1e5eec828..4ea4ff34db 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/stepper/package.json b/packages/stepper/package.json index 002332a08e..f9e6aae6f5 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/table/package.json b/packages/table/package.json index a62afdf655..14a9ded005 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 9a18e42834..3be2d82038 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index 2c07f07607..293da90ff1 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "dependencies": { "@lg-tools/build": "workspace:^", "@testing-library/user-event": "13.5.0", diff --git a/packages/text-area/package.json b/packages/text-area/package.json index bd089f391a..06c367116f 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/text-input/package.json b/packages/text-input/package.json index 3a11e258a4..b21c01115c 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/toast/package.json b/packages/toast/package.json index afc1747dcb..958f88ce06 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/toggle/package.json b/packages/toggle/package.json index 35ae85d59b..544a879f2d 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 46150abec6..92a1776ef2 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index ea022cbbdd..2c7f7be0d2 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/typography/package.json b/packages/typography/package.json index 47a2084b04..dd8be9b524 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -5,7 +5,13 @@ "main": "./dist/index.js", "module": "./dist/esm/index.js", "types": "./dist/index.d.ts", - "typesVersions": {}, + "typesVersions": { + "<3.9": { + "*": [ + "ts3.4/*" + ] + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/tools/codemods/package.json b/tools/codemods/package.json index d3fbe6767a..4ffe089e86 100644 --- a/tools/codemods/package.json +++ b/tools/codemods/package.json @@ -34,6 +34,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/tools/meta/package.json b/tools/meta/package.json index 3b58998f3d..5da58c9ddb 100644 --- a/tools/meta/package.json +++ b/tools/meta/package.json @@ -20,6 +20,5 @@ "cross-spawn": "7.0.3", "fs-extra": "11.1.1", "lodash": "4.17.21" - }, - "typesVersions": {} + } } diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index c7d5019f61..cf97c1c67b 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -74,6 +74,5 @@ "react": "^17.0.0 || ^18.0.0", "react-dom": "^17.0.0 || ^18.0.0", "storybook": "^8.6.0" - }, - "typesVersions": {} + } } diff --git a/tools/storybook-decorators/package.json b/tools/storybook-decorators/package.json index bdc1b22621..5133e39223 100644 --- a/tools/storybook-decorators/package.json +++ b/tools/storybook-decorators/package.json @@ -26,6 +26,5 @@ }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" - }, - "typesVersions": {} + } } diff --git a/tools/storybook-utils/package.json b/tools/storybook-utils/package.json index 903343cf07..5df2a990e7 100644 --- a/tools/storybook-utils/package.json +++ b/tools/storybook-utils/package.json @@ -27,6 +27,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "typesVersions": {} + } } diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index 80e165cd26..3024b6722a 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -14,6 +14,5 @@ }, "dependencies": { "@testing-library/dom": "9.3.1" - }, - "typesVersions": {} + } } From c591660db5ae5d6a406d454d7fb59c4589d9f252 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 13:26:13 -0400 Subject: [PATCH 056/123] lockfile --- pnpm-lock.yaml | 131 ++++++++++++++++++++------------------------ pnpm-workspace.yaml | 1 - 2 files changed, 60 insertions(+), 72 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a039c241db..04aa61aa38 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1623,7 +1623,7 @@ importers: version: 11.0.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250422) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250423) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -2898,18 +2898,6 @@ importers: specifier: workspace:^ version: link:../tokens - scripts: - dependencies: - '@lg-tools/meta': - specifier: workspace:* - version: link:../tools/meta - chalk: - specifier: ^4.1.2 - version: 4.1.2 - prettier: - specifier: ^3.5.3 - version: 3.5.3 - tools/build: dependencies: '@babel/core': @@ -3360,10 +3348,10 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) '@storybook/test': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) @@ -3372,7 +3360,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.9.0-dev.20250422) + version: 8.0.1(typescript@5.9.0-dev.20250423) assert: specifier: ^2.1.0 version: 2.1.0 @@ -3414,7 +3402,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.9.0-dev.20250422) + version: 2.2.2(typescript@5.9.0-dev.20250423) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3561,7 +3549,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -10243,8 +10231,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.9.0-dev.20250422: - resolution: {integrity: sha512-nhqzYEg74esioK1dt0zLZBEdpDv1VXZqX9qWe9qFi3pkYjXr2Rok3MTV0+CEDc7DIL6sKeJ5YBRuePpIsSmmfA==} + typescript@5.9.0-dev.20250423: + resolution: {integrity: sha512-+r3x9N0J/p6S0zh/xyfFhaeS+neYCpmVmUxg0Xm5ZWPU672Bhpx/5r/pMg184u/Onk4LYHbAlChXuqdSdsTYcw==} engines: {node: '>=14.17'} hasBin: true @@ -12121,7 +12109,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12135,7 +12123,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12606,7 +12594,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 @@ -12616,7 +12604,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250422)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250423)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -12634,7 +12622,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 transitivePeerDependencies: - '@swc/core' - esbuild @@ -12752,11 +12740,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250422)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250423)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -12769,7 +12757,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -12786,16 +12774,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250422)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250423)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250422) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250423) tslib: 2.6.2 - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -12812,16 +12800,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) optionalDependencies: - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -12860,7 +12848,7 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) typescript: 5.8.3 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250422)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 @@ -12873,7 +12861,7 @@ snapshots: storybook: 8.6.12(prettier@3.5.3) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: @@ -13040,12 +13028,12 @@ snapshots: - supports-color - typescript - '@svgr/core@8.0.0(typescript@5.9.0-dev.20250422)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250423)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250422) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250423) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13090,11 +13078,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250422))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250423))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250422) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250423) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: @@ -13125,10 +13113,10 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250422))(typescript@5.9.0-dev.20250422)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250423))(typescript@5.9.0-dev.20250423)': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250422) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250422) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250423) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250423) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: @@ -13159,16 +13147,16 @@ snapshots: - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250422)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250423)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250422) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250422)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250422))(typescript@5.9.0-dev.20250422) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250423) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250423)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250423))(typescript@5.9.0-dev.20250423) transitivePeerDependencies: - supports-color - typescript @@ -14484,14 +14472,14 @@ snapshots: optionalDependencies: typescript: 5.8.3 - cosmiconfig@8.3.6(typescript@5.9.0-dev.20250422): + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250423): dependencies: import-fresh: 3.3.0 js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 optionalDependencies: - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 create-ecdh@4.0.4: dependencies: @@ -14887,7 +14875,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 dunder-proto@1.0.1: dependencies: @@ -15504,7 +15492,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250422)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250423)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15518,7 +15506,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -16198,16 +16186,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16282,7 +16270,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16308,7 +16296,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16576,12 +16564,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -17944,7 +17932,8 @@ snapshots: prettier@2.8.8: {} - prettier@3.5.3: {} + prettier@3.5.3: + optional: true pretty-error@4.0.0: dependencies: @@ -18031,9 +18020,9 @@ snapshots: dependencies: typescript: 5.8.3 - react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250422): + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250423): dependencies: - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 react-docgen@7.0.3: dependencies: @@ -19012,7 +19001,7 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250422): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250423): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19026,13 +19015,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250422): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19046,7 +19035,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250422 + typescript: 5.9.0-dev.20250423 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19175,7 +19164,7 @@ snapshots: typescript@5.8.3: {} - typescript@5.9.0-dev.20250422: {} + typescript@5.9.0-dev.20250423: {} unbox-primitive@1.0.2: dependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index f3dd7b7ed6..e01ae25f2c 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -4,4 +4,3 @@ packages: - 'chat/*' - 'packages/*' - 'tools/*' - - 'scripts' From a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 13:28:13 -0400 Subject: [PATCH 057/123] disable downlevel --- tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts b/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts index a473e4dd94..d8f9f2c3ed 100644 --- a/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts +++ b/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts @@ -7,14 +7,7 @@ interface DownlevelVersion { // TS Downlevel mapping export const DOWNLEVEL_VERSIONS = [ - { - condition: '<4.8', - target: '4.0', - }, - { - condition: '<5.0', - target: '4.9', - }, + // No downlevelling for now ] as const satisfies Readonly>; // Packages to exclude from typesVersions updates From 5de5a48848ba128b1150fcb07d0132c991590684 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 18:00:38 -0400 Subject: [PATCH 058/123] Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files --- .changeset/validate-build-package-json.md | 5 + tools/validate/src/builds/getModuleTypes.ts | 90 +++++++++ tools/validate/src/builds/index.ts | 196 +++++++------------- tools/validate/src/index.ts | 15 +- 4 files changed, 172 insertions(+), 134 deletions(-) create mode 100644 .changeset/validate-build-package-json.md create mode 100644 tools/validate/src/builds/getModuleTypes.ts diff --git a/.changeset/validate-build-package-json.md b/.changeset/validate-build-package-json.md new file mode 100644 index 0000000000..3cfa9f7a72 --- /dev/null +++ b/.changeset/validate-build-package-json.md @@ -0,0 +1,5 @@ +--- +'@lg-tools/validate': minor +--- + +Updates build validation to use the entry files defined in the package.json diff --git a/tools/validate/src/builds/getModuleTypes.ts b/tools/validate/src/builds/getModuleTypes.ts new file mode 100644 index 0000000000..d405bea44d --- /dev/null +++ b/tools/validate/src/builds/getModuleTypes.ts @@ -0,0 +1,90 @@ +import fse from 'fs-extra'; +import vm from 'vm'; + +import { ModuleType } from './modules.types'; + +/** + * Adapted from https://github.com/formatjs/js-module-formats + * + * Analyze JavaScript source, collecting the module or modules information when possible. + * @method extract + * @default + * @param {string} path The JavaScript source path to be analyzed + * @return {object|array} an object or a collection of object with the info gathered from the analysis, it usually includes objects with `type` and `name` per module. + **/ +export function getModuleTypes(path: string): Array { + // Essentially we're looking for import/export statements + const ES6ImportExportRegExp = + /(?:^\s*|[}{();,\n]\s*)(import\s*['"][a-zA-Z]+['"]|(import|module)\s*[^"'()\n;]+\s*from\s*['"]|export\s*((\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF])[\s_$a-zA-Z0-9\xA0-\uFFFF]*))/; + const ES6AliasRegExp = + /(?:^\s*|[}{();,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/; + const context = vm.createContext({}); + const mods: Array = []; + + /** + * YUI detection is based on a simple rule: + * - if `YUI.add()` is called + **/ + context.YUI = { + add: function () { + mods.push(ModuleType.yui); + }, + }; + + /** + AMD detection is based on a simple rule: + - if `define()` is called + **/ + context.define = function () { + mods.push(ModuleType.amd); + }; + + /** + Steal detection is based on a simple rule: + - if `steal()` is called + **/ + context.steal = function () { + mods.push(ModuleType.steal); + }; + + /** + CommonJS detection is based on simple rules: + - if the script calls `require()` + - or if the script tries to export a function thru `module.exports` + - or if the script tries to export an object thru `module.exports` + - or if the script tries to export a function thru `exports` + - or if the script tries to export an object thru `exports` + - or if the script tries to add a new member to `module.exports` + **/ + context.require = function () { + mods.push(ModuleType.cjs); + throw new Error('Confirmed CJS Package. Stop Execution'); + }; + context.exports = Object.create(null); + context.module = context; + + const src = fse.readFileSync(path, 'utf-8'); + + // executing the JavaScript source into a new context to avoid leaking + // globals during the detection process. + try { + vm.runInContext(src, context); + } catch (_e) { + if (ES6ImportExportRegExp.test(src) || ES6AliasRegExp.test(src)) { + mods.push(ModuleType.esm); + } + } finally { + // very dummy detection process for CommonJS modules + if ( + typeof context.exports === 'function' || + typeof context.exports === 'string' || + typeof context.exports === 'number' || + Object.keys(context.exports).length > 0 || + Object.getPrototypeOf(context.exports) + ) { + mods.push(ModuleType.cjs); + } + } + + return mods; +} diff --git a/tools/validate/src/builds/index.ts b/tools/validate/src/builds/index.ts index 38cb726ebb..2a74ca5f89 100644 --- a/tools/validate/src/builds/index.ts +++ b/tools/validate/src/builds/index.ts @@ -3,19 +3,14 @@ */ /* eslint-disable no-console */ -import { getAllPackages, getPackageName } from '@lg-tools/meta'; +import { getAllPackages, getPackageJson } from '@lg-tools/meta'; import chalk from 'chalk'; import fse from 'fs-extra'; import path from 'path'; -import vm from 'vm'; import { ValidateCommandOptions } from '../validate.types'; -import { ModuleType } from './modules.types'; - -// A list of -const ignorePackages = ['@lg-tools/storybook']; - +import { getModuleTypes } from './getModuleTypes'; /** * Validates `umd`, `esm` and TS build integrity for all packages in the repository. */ @@ -31,17 +26,28 @@ export const validateBuilds = ({ // Check that every package's /dist folder has a valid UMD, ESM & TS files for (const pkgPath of packagePaths) { - const pkgName = getPackageName(pkgPath); + const pkgJson = getPackageJson(pkgPath); - if (!pkgName) { + if (!pkgJson) { exit1('Invalid package path: ' + pkgPath); return; } - // Skip packages - if (ignorePackages.includes(pkgName)) { - continue; - } + // extract the name and output paths from the package.json + const { + name: pkgName, + main: umdPath, + module: esmPath, + types: typesPath, + } = pkgJson; + + const checks = { + umdExists: true, + isUMDValid: true, + esmExists: true, + isESMValid: true, + tsExists: true, + }; const distDir = path.resolve(pkgPath, 'dist'); const buildExists = fse.existsSync(distDir); @@ -51,47 +57,61 @@ export const validateBuilds = ({ return; } - const umdIndex = path.resolve(distDir, `index.js`); - const umdExists = fse.existsSync(umdIndex); - const isCJSValid = umdExists && getModuleTypes(umdIndex).includes('cjs'); - - const esmIndex = path.resolve(distDir, `esm/index.js`); - const esmExists = fse.existsSync(esmIndex); - const isESMValid = esmExists && getModuleTypes(esmIndex).includes('esm'); - - const tsIndex = path.resolve(distDir, `index.d.ts`); - const tsExists = fse.existsSync(tsIndex); - - verbose && - console.log({ - pkgName, - umdExists, - esmExists, - tsExists, - isCJSValid, - isESMValid, - }); - - if ( - ![umdExists, esmExists, tsExists, isCJSValid, isESMValid].every(Boolean) - ) { + if (umdPath) { + const umdIndex = path.resolve(pkgPath, umdPath); + checks.umdExists = fse.existsSync(umdIndex); + checks.isUMDValid = + checks.umdExists && getModuleTypes(umdIndex).includes('cjs'); + verbose && + console.log(chalk.gray('UMD:'), checks.isUMDValid ? '✅' : '❌'); + } + + if (esmPath) { + const esmIndex = path.resolve(pkgPath, esmPath); + checks.esmExists = fse.existsSync(esmIndex); + checks.isESMValid = + checks.esmExists && getModuleTypes(esmIndex).includes('esm'); + verbose && + console.log(chalk.gray('ESM:'), checks.isESMValid ? '✅' : '❌'); + } + + if (typesPath) { + const tsIndex = path.resolve(pkgPath, typesPath); + checks.tsExists = fse.existsSync(tsIndex); + verbose && + console.log(chalk.gray('Types:'), checks.tsExists ? '✅' : '❌'); + } + + if (!Object.values(checks).every(Boolean)) { const errorMsg: Array = [ chalk.red.bold(`Error in package \`${pkgName}\`:`), ]; - if (!umdExists) errorMsg.push(chalk.red('`dist/index.js` not found')); - if (!esmExists) - errorMsg.push(chalk.red('`dist/esm/index.js` not found')); - if (!tsExists) errorMsg.push(chalk.red('Typescript build not found')); - if (!isCJSValid) + + if (!checks.umdExists) { + errorMsg.push(chalk.red(umdPath, 'not found')); + } + + if (!checks.esmExists) { + errorMsg.push(chalk.red(esmPath, 'not found')); + } + + if (!checks.tsExists) { + errorMsg.push(chalk.red('Typescript build not found')); + } + + if (!checks.isUMDValid) { errorMsg.push( chalk.red(`UMD module not valid`), - chalk.gray(`(${umdIndex})`), + chalk.gray(`(${umdPath})`), ); - if (!isESMValid) + } + + if (!checks.isESMValid) { errorMsg.push( chalk.red(`ESM module not valid`), - chalk.gray(`(${esmIndex})`), + chalk.gray(`(${esmPath})`), ); + } if (errorMsg.length > 0) { exit1(errorMsg.join('\n')); @@ -110,89 +130,3 @@ export const validateBuilds = ({ } }); }; - -/** - * Adapted from https://github.com/formatjs/js-module-formats - * - * Analyze JavaScript source, collecting the module or modules information when possible. - * @method extract - * @default - * @param {string} path The JavaScript source path to be analyzed - * @return {object|array} an object or a collection of object with the info gathered from the analysis, it usually includes objects with `type` and `name` per module. - **/ -function getModuleTypes(path: string): Array { - // Essentially we're looking for import/export statements - const ES6ImportExportRegExp = - /(?:^\s*|[}{();,\n]\s*)(import\s*['"][a-zA-Z]+['"]|(import|module)\s*[^"'()\n;]+\s*from\s*['"]|export\s*((\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF])[\s_$a-zA-Z0-9\xA0-\uFFFF]*))/; - const ES6AliasRegExp = - /(?:^\s*|[}{();,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/; - const context = vm.createContext({}); - const mods: Array = []; - - /** - * YUI detection is based on a simple rule: - * - if `YUI.add()` is called - **/ - context.YUI = { - add: function () { - mods.push(ModuleType.yui); - }, - }; - - /** - AMD detection is based on a simple rule: - - if `define()` is called - **/ - context.define = function () { - mods.push(ModuleType.amd); - }; - - /** - Steal detection is based on a simple rule: - - if `steal()` is called - **/ - context.steal = function () { - mods.push(ModuleType.steal); - }; - - /** - CommonJS detection is based on simple rules: - - if the script calls `require()` - - or if the script tries to export a function thru `module.exports` - - or if the script tries to export an object thru `module.exports` - - or if the script tries to export a function thru `exports` - - or if the script tries to export an object thru `exports` - - or if the script tries to add a new member to `module.exports` - **/ - context.require = function () { - mods.push(ModuleType.cjs); - throw new Error('Confirmed CJS Package. Stop Execution'); - }; - context.exports = Object.create(null); - context.module = context; - - const src = fse.readFileSync(path, 'utf-8'); - - // executing the JavaScript source into a new context to avoid leaking - // globals during the detection process. - try { - vm.runInContext(src, context); - } catch (_e) { - if (ES6ImportExportRegExp.test(src) || ES6AliasRegExp.test(src)) { - mods.push(ModuleType.esm); - } - } finally { - // very dummy detection process for CommonJS modules - if ( - typeof context.exports === 'function' || - typeof context.exports === 'string' || - typeof context.exports === 'number' || - Object.keys(context.exports).length > 0 || - Object.getPrototypeOf(context.exports) - ) { - mods.push(ModuleType.cjs); - } - } - - return mods; -} diff --git a/tools/validate/src/index.ts b/tools/validate/src/index.ts index 6f3eaea80c..f512386c7f 100644 --- a/tools/validate/src/index.ts +++ b/tools/validate/src/index.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { validateBuilds } from './builds'; import { validateDependencies } from './dependencies'; import { ValidateCommandOptions } from './validate.types'; @@ -6,14 +7,22 @@ import { ValidateCommandOptions } from './validate.types'; export const validate = async (options: ValidateCommandOptions) => { const validators: Array> = []; - if (!options.buildsOnly) validators.push(validateDependencies(options)); - if (!options.depsOnly) validators.push(validateBuilds(options)); + if (!options.buildsOnly) { + validators.push(validateDependencies(options)); + } + + if (!options.depsOnly) { + validators.push(validateBuilds(options)); + } Promise.all(validators) .then(() => { + options.verbose && console.log('All validations passed. ✅'); process.exit(0); }) - .catch(() => { + .catch(err => { + console.log('❌ Some validation failed.'); + console.error(err); process.exit(1); }); }; From db70c1853f4a75ac9b2fc0a89b13d2a63c2a6270 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 13:00:01 -0400 Subject: [PATCH 059/123] updates all TSconfigs --- charts/chart-card/tsconfig.json | 19 +++++--- charts/colors/tsconfig.json | 19 +++++--- charts/core/tsconfig.json | 26 +++++----- charts/drag-provider/tsconfig.json | 21 ++++---- charts/legend/tsconfig.json | 19 +++++--- charts/series-provider/tsconfig.json | 21 ++++---- chat/avatar/tsconfig.json | 42 ++++++++-------- chat/chat-disclaimer/tsconfig.json | 41 +++++++++------- chat/chat-window/tsconfig.json | 54 +++++++++++---------- chat/fixed-chat-window/tsconfig.json | 27 ++++++----- chat/input-bar/tsconfig.json | 47 +++++++++--------- chat/leafygreen-chat-provider/tsconfig.json | 7 +-- chat/lg-markdown/tsconfig.json | 27 ++++++----- chat/message-feed/tsconfig.json | 26 +++++----- chat/message-feedback/tsconfig.json | 23 +++++---- chat/message-prompts/tsconfig.json | 25 ++++++---- chat/message-rating/tsconfig.json | 24 +++++---- chat/message/tsconfig.json | 30 +++++++----- chat/rich-links/tsconfig.json | 25 ++++++---- chat/title-bar/tsconfig.json | 28 ++++++----- packages/a11y/tsconfig.json | 19 +++++--- packages/avatar/tsconfig.json | 40 ++++++++------- packages/badge/tsconfig.json | 19 +++++--- packages/banner/tsconfig.json | 17 ++++--- packages/box/tsconfig.json | 19 +++++--- packages/button/tsconfig.json | 19 +++++--- packages/callout/tsconfig.json | 19 +++++--- packages/card/tsconfig.json | 20 ++++---- packages/checkbox/tsconfig.json | 19 +++++--- packages/chip/tsconfig.json | 8 +-- packages/code/tsconfig.json | 17 +++---- packages/combobox/tsconfig.json | 6 +-- packages/confirmation-modal/tsconfig.json | 19 +++++--- packages/copyable/tsconfig.json | 19 +++++--- packages/date-picker/tsconfig.json | 10 ++-- packages/date-utils/tsconfig.json | 14 +++--- packages/descendants/tsconfig.json | 17 ++++--- packages/drawer/tsconfig.json | 19 +++++--- packages/emotion/tsconfig.json | 19 +++++--- packages/empty-state/tsconfig.json | 19 +++++--- packages/expandable-card/tsconfig.json | 19 +++++--- packages/form-field/tsconfig.json | 19 +++++--- packages/form-footer/tsconfig.json | 19 +++++--- packages/gallery-indicator/tsconfig.json | 6 +-- packages/guide-cue/tsconfig.json | 19 +++++--- packages/hooks/tsconfig.json | 32 +++++++----- packages/icon-button/tsconfig.json | 19 +++++--- packages/icon/tsconfig.json | 15 +++--- packages/info-sprinkle/tsconfig.json | 6 +-- packages/inline-definition/tsconfig.json | 19 +++++--- packages/input-option/tsconfig.json | 19 +++++--- packages/leafygreen-provider/tsconfig.json | 19 +++++--- packages/lib/tsconfig.json | 22 +++++---- packages/loading-indicator/tsconfig.json | 19 +++++--- packages/logo/tsconfig.json | 14 +++--- packages/marketing-modal/tsconfig.json | 19 +++++--- packages/menu/tsconfig.json | 19 +++++--- packages/modal/tsconfig.json | 19 +++++--- packages/number-input/tsconfig.json | 19 +++++--- packages/ordered-list/tsconfig.json | 23 +++++---- packages/pagination/tsconfig.json | 19 +++++--- packages/palette/tsconfig.json | 19 +++++--- packages/password-input/tsconfig.json | 19 +++++--- packages/pipeline/tsconfig.json | 14 +++--- packages/polymorphic/tsconfig.json | 5 +- packages/popover/tsconfig.json | 19 +++++--- packages/portal/tsconfig.json | 19 +++++--- packages/radio-box-group/tsconfig.json | 19 +++++--- packages/radio-group/tsconfig.json | 19 +++++--- packages/ripple/tsconfig.json | 19 +++++--- packages/search-input/tsconfig.json | 19 +++++--- packages/segmented-control/tsconfig.json | 19 +++++--- packages/select/tsconfig.json | 8 +-- packages/side-nav/tsconfig.json | 19 +++++--- packages/skeleton-loader/tsconfig.json | 6 +-- packages/split-button/tsconfig.json | 19 +++++--- packages/stepper/tsconfig.json | 19 +++++--- packages/table/tsconfig.json | 6 +-- packages/tabs/tsconfig.json | 19 +++++--- packages/testing-lib/tsconfig.json | 15 +++--- packages/text-area/tsconfig.json | 19 +++++--- packages/text-input/tsconfig.json | 6 +-- packages/toast/tsconfig.json | 19 +++++--- packages/toggle/tsconfig.json | 19 +++++--- packages/tokens/tsconfig.json | 19 +++++--- packages/tooltip/tsconfig.json | 19 +++++--- packages/typography/tsconfig.json | 21 ++++---- tools/build/config/package.tsconfig.json | 11 +++-- tools/build/tsconfig.json | 7 +-- tools/cli/tsconfig.json | 6 +-- tools/codemods/tsconfig.json | 16 +++--- tools/create/tsconfig.json | 7 +-- tools/install/scripts/tsconfig.json | 10 +++- tools/install/tsconfig.json | 12 ++--- tools/link/tsconfig.json | 19 +++++--- tools/lint/tsconfig.json | 7 +-- tools/meta/tsconfig.json | 15 +++--- tools/slackbot/tsconfig.json | 7 +-- tools/storybook-addon/tsconfig.json | 7 +-- tools/storybook-decorators/tsconfig.json | 15 ++---- tools/storybook-utils/tsconfig.json | 22 +++++---- tools/test-harnesses/tsconfig.json | 7 +-- tools/test/tsconfig.json | 7 +-- tools/update/tsconfig.json | 19 +++++--- tools/validate/tsconfig.json | 7 +-- tsconfig.json | 7 ++- 106 files changed, 1043 insertions(+), 881 deletions(-) diff --git a/charts/chart-card/tsconfig.json b/charts/chart-card/tsconfig.json index b02b3d3d41..212d6deb9e 100644 --- a/charts/chart-card/tsconfig.json +++ b/charts/chart-card/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../../icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../../packages/emotion" diff --git a/charts/colors/tsconfig.json b/charts/colors/tsconfig.json index ec4dbd770e..61fc42d8e2 100644 --- a/charts/colors/tsconfig.json +++ b/charts/colors/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../../icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../../packages/emotion" diff --git a/charts/core/tsconfig.json b/charts/core/tsconfig.json index 28061e8c05..81fa506740 100644 --- a/charts/core/tsconfig.json +++ b/charts/core/tsconfig.json @@ -1,19 +1,23 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { + "moduleResolution": "node", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../chart-card" @@ -29,16 +33,16 @@ }, { "path": "../../packages/icon" - }, + }, { "path": "../../packages/leafygreen-provider" - }, + }, { "path": "../../packages/lib" }, { "path": "../../packages/loading-indicator" - }, + }, { "path": "../../packages/palette" }, diff --git a/charts/drag-provider/tsconfig.json b/charts/drag-provider/tsconfig.json index 63c5f95d8c..22ed5523f8 100644 --- a/charts/drag-provider/tsconfig.json +++ b/charts/drag-provider/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../chart-card" @@ -26,6 +29,6 @@ }, { "path": "../../packages/leafygreen-provider" - }, + } ] -} \ No newline at end of file +} diff --git a/charts/legend/tsconfig.json b/charts/legend/tsconfig.json index cf2addd31c..3baed1d5bd 100644 --- a/charts/legend/tsconfig.json +++ b/charts/legend/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../../icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../colors" diff --git a/charts/series-provider/tsconfig.json b/charts/series-provider/tsconfig.json index b5e2d90d18..e0e009cbc6 100644 --- a/charts/series-provider/tsconfig.json +++ b/charts/series-provider/tsconfig.json @@ -1,22 +1,25 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../../packages/leafygreen-provider" - }, + } ] -} \ No newline at end of file +} diff --git a/chat/avatar/tsconfig.json b/chat/avatar/tsconfig.json index 0b66f706ad..d0bb11e960 100644 --- a/chat/avatar/tsconfig.json +++ b/chat/avatar/tsconfig.json @@ -1,48 +1,52 @@ - { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../leafygreen-chat-provider" }, { "path": "../../packages/avatar" - }, + }, { "path": "../../packages/emotion" - }, + }, { "path": "../../packages/icon" - }, + }, { "path": "../../packages/lib" - }, + }, { "path": "../../packages/logo" - }, + }, { "path": "../../packages/icon" - }, + }, { "path": "../../packages/palette" - }, + }, { "path": "../../packages/tokens" - }, - { + }, + { "path": "../../packages/leafygreen-provider" - }, + } ] } diff --git a/chat/chat-disclaimer/tsconfig.json b/chat/chat-disclaimer/tsconfig.json index 5c4fe052c0..059698f44c 100644 --- a/chat/chat-disclaimer/tsconfig.json +++ b/chat/chat-disclaimer/tsconfig.json @@ -1,41 +1,46 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], - "references": [ + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], + "references": [ { "path": "../../packages/button" - }, + }, { "path": "../../packages/emotion" - }, + }, { "path": "../../packages/lib" - }, + }, { "path": "../../packages/marketing-modal" - }, + }, { "path": "../../packages/modal" - }, + }, { "path": "../../packages/tokens" - }, + }, { "path": "../../packages/typography" - }, + }, { "path": "../../packages/leafygreen-provider" - }, + } ] -} \ No newline at end of file +} diff --git a/chat/chat-window/tsconfig.json b/chat/chat-window/tsconfig.json index 8ff74169b1..6ca0bafdf6 100644 --- a/chat/chat-window/tsconfig.json +++ b/chat/chat-window/tsconfig.json @@ -1,18 +1,22 @@ - { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../avatar" @@ -37,51 +41,51 @@ }, { "path": "../title-bar" - }, + }, { "path": "../../packages/badge" - }, + }, { "path": "../../packages/button" - }, + }, { "path": "../../packages/code" - }, + }, { "path": "../../packages/emotion" - }, + }, { "path": "../../packages/hooks" - }, + }, { "path": "../../packages/icon" - }, + }, { "path": "../../packages/input-option" - }, + }, { "path": "../../packages/lib" - }, + }, { "path": "../../packages/marketing-modal" - }, + }, { "path": "../../packages/polymorphic" - }, + }, { "path": "../../packages/search-input" - }, + }, { "path": "../../packages/text-area" - }, + }, { "path": "../../packages/tokens" - }, + }, { "path": "../../packages/typography" - }, + }, { "path": "../../packages/leafygreen-provider" - }, + } ] } diff --git a/chat/fixed-chat-window/tsconfig.json b/chat/fixed-chat-window/tsconfig.json index 8f4f4bbab2..ab8c736675 100644 --- a/chat/fixed-chat-window/tsconfig.json +++ b/chat/fixed-chat-window/tsconfig.json @@ -1,17 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../../packages/button" @@ -52,7 +57,7 @@ { "path": "../avatar" }, - { + { "path": "../lg-markdown" }, { @@ -60,6 +65,6 @@ }, { "path": "../../packages/leafygreen-provider" - }, + } ] -} \ No newline at end of file +} diff --git a/chat/input-bar/tsconfig.json b/chat/input-bar/tsconfig.json index 0898d139a1..b382e3852c 100644 --- a/chat/input-bar/tsconfig.json +++ b/chat/input-bar/tsconfig.json @@ -1,64 +1,67 @@ - { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../leafygreen-chat-provider" }, { "path": "../../packages/badge" - }, + }, { "path": "../../packages/button" - }, + }, { "path": "../../packages/emotion" - }, + }, { "path": "../../packages/hooks" - }, + }, { "path": "../../packages/icon" }, { "path": "../../packages/input-option" - }, + }, { "path": "../../packages/lib" - }, + }, { "path": "../../packages/palette" - }, + }, { "path": "../../packages/polymorphic" - }, + }, { "path": "../../packages/popover" - }, + }, { "path": "../../packages/search-input" - }, + }, { "path": "../../packages/tokens" - }, + }, { "path": "../../packages/typography" - }, + }, { "path": "../../packages/leafygreen-provider" } - ] } diff --git a/chat/leafygreen-chat-provider/tsconfig.json b/chat/leafygreen-chat-provider/tsconfig.json index d33b6a6354..cdb40f1615 100644 --- a/chat/leafygreen-chat-provider/tsconfig.json +++ b/chat/leafygreen-chat-provider/tsconfig.json @@ -1,12 +1,7 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", - }, + "compilerOptions": {}, "include": ["src/**/*"], "references": [ { diff --git a/chat/lg-markdown/tsconfig.json b/chat/lg-markdown/tsconfig.json index f2ad2e6fe1..8575400771 100644 --- a/chat/lg-markdown/tsconfig.json +++ b/chat/lg-markdown/tsconfig.json @@ -1,18 +1,24 @@ - { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { + "moduleResolution": "node", + "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../../packages/code" @@ -32,6 +38,5 @@ { "path": "../../packages/leafygreen-provider" } - ] } diff --git a/chat/message-feed/tsconfig.json b/chat/message-feed/tsconfig.json index 36c4e13841..3465ced7a7 100644 --- a/chat/message-feed/tsconfig.json +++ b/chat/message-feed/tsconfig.json @@ -1,18 +1,22 @@ - { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../avatar" @@ -31,7 +35,7 @@ }, { "path": "../message-prompts" - }, + }, { "path": "../../packages/button" }, @@ -61,6 +65,6 @@ }, { "path": "../../packages/leafygreen-provider" - }, + } ] } diff --git a/chat/message-feedback/tsconfig.json b/chat/message-feedback/tsconfig.json index 55ec5cd246..e2ba1f1fd5 100644 --- a/chat/message-feedback/tsconfig.json +++ b/chat/message-feedback/tsconfig.json @@ -1,17 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../message-rating" @@ -51,6 +56,6 @@ }, { "path": "../../packages/leafygreen-provider" - }, + } ] } diff --git a/chat/message-prompts/tsconfig.json b/chat/message-prompts/tsconfig.json index e3fa68e32b..8afae2bd56 100644 --- a/chat/message-prompts/tsconfig.json +++ b/chat/message-prompts/tsconfig.json @@ -1,17 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../../packages/emotion" @@ -30,6 +35,6 @@ }, { "path": "../../packages/leafygreen-provider" - }, + } ] -} \ No newline at end of file +} diff --git a/chat/message-rating/tsconfig.json b/chat/message-rating/tsconfig.json index 525874ddbb..d3cbd10d7b 100644 --- a/chat/message-rating/tsconfig.json +++ b/chat/message-rating/tsconfig.json @@ -1,18 +1,22 @@ - { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../../packages/emotion" @@ -37,6 +41,6 @@ }, { "path": "../../packages/leafygreen-provider" - }, + } ] } diff --git a/chat/message/tsconfig.json b/chat/message/tsconfig.json index 31af8fff17..4238caac9a 100644 --- a/chat/message/tsconfig.json +++ b/chat/message/tsconfig.json @@ -1,19 +1,23 @@ - { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], - "references": [ + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], + "references": [ { "path": "../avatar" }, @@ -25,7 +29,7 @@ }, { "path": "../message-feedback" - }, + }, { "path": "../../packages/emotion" }, @@ -43,12 +47,12 @@ }, { "path": "../../packages/leafygreen-provider" - }, + }, { "path": "../../packages/banner" }, { "path": "../rich-links" - }, + } ] } diff --git a/chat/rich-links/tsconfig.json b/chat/rich-links/tsconfig.json index f0665561e1..09f6b59e88 100644 --- a/chat/rich-links/tsconfig.json +++ b/chat/rich-links/tsconfig.json @@ -1,17 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../../packages/card" @@ -30,6 +35,6 @@ }, { "path": "../../packages/typography" - }, + } ] } diff --git a/chat/title-bar/tsconfig.json b/chat/title-bar/tsconfig.json index cb2b78a176..e3eddcde16 100644 --- a/chat/title-bar/tsconfig.json +++ b/chat/title-bar/tsconfig.json @@ -1,22 +1,26 @@ - { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { - "path": "../avatar", - }, + "path": "../avatar" + }, { "path": "../../packages/badge" }, @@ -43,6 +47,6 @@ }, { "path": "../../packages/leafygreen-provider" - }, + } ] } diff --git a/packages/a11y/tsconfig.json b/packages/a11y/tsconfig.json index 18e8f2dff3..efc77e1458 100644 --- a/packages/a11y/tsconfig.json +++ b/packages/a11y/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../hooks" diff --git a/packages/avatar/tsconfig.json b/packages/avatar/tsconfig.json index 8828f61e38..e5c90f86c5 100644 --- a/packages/avatar/tsconfig.json +++ b/packages/avatar/tsconfig.json @@ -1,42 +1,46 @@ - { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" - }, + }, { "path": "../icon" - }, + }, { "path": "../lib" - }, + }, { "path": "../logo" - }, + }, { "path": "../icon" - }, + }, { "path": "../palette" - }, + }, { "path": "../tokens" - }, - { + }, + { "path": "../leafygreen-provider" - }, + } ] } diff --git a/packages/badge/tsconfig.json b/packages/badge/tsconfig.json index 6b0e314fba..384249dac2 100644 --- a/packages/badge/tsconfig.json +++ b/packages/badge/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/banner/tsconfig.json b/packages/banner/tsconfig.json index 4f756182d5..c28d17266f 100644 --- a/packages/banner/tsconfig.json +++ b/packages/banner/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "rootDir": "src", - "outDir": "dist", - "baseUrl": ".", "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../lib" diff --git a/packages/box/tsconfig.json b/packages/box/tsconfig.json index 42840ff8fe..7d7dd3a781 100644 --- a/packages/box/tsconfig.json +++ b/packages/box/tsconfig.json @@ -1,18 +1,21 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [] } diff --git a/packages/button/tsconfig.json b/packages/button/tsconfig.json index 1938e6d6b4..8c51f72622 100644 --- a/packages/button/tsconfig.json +++ b/packages/button/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/callout/tsconfig.json b/packages/callout/tsconfig.json index 956c8e79c0..39479583a0 100644 --- a/packages/callout/tsconfig.json +++ b/packages/callout/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/card/tsconfig.json b/packages/card/tsconfig.json index 8a810013d3..02710be4c3 100644 --- a/packages/card/tsconfig.json +++ b/packages/card/tsconfig.json @@ -1,21 +1,23 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ - { "path": "../emotion" }, diff --git a/packages/checkbox/tsconfig.json b/packages/checkbox/tsconfig.json index 80c853ed29..363599da99 100644 --- a/packages/checkbox/tsconfig.json +++ b/packages/checkbox/tsconfig.json @@ -1,13 +1,13 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ @@ -15,7 +15,10 @@ "../../typings/*", "../a11y/src/useReducedMotionQuery.ts" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../a11y" diff --git a/packages/chip/tsconfig.json b/packages/chip/tsconfig.json index 9231cf253d..9c5257db29 100644 --- a/packages/chip/tsconfig.json +++ b/packages/chip/tsconfig.json @@ -1,10 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": [ "../icon/src/generated/*" @@ -42,6 +38,6 @@ }, { "path": "../tokens" - }, + } ] -} \ No newline at end of file +} diff --git a/packages/code/tsconfig.json b/packages/code/tsconfig.json index d7fc91c421..514354c813 100644 --- a/packages/code/tsconfig.json +++ b/packages/code/tsconfig.json @@ -1,10 +1,7 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "moduleResolution": "node", "paths": { "@leafygreen-ui/icon/dist/*": [ "../icon/src/generated/*" @@ -14,13 +11,15 @@ ], "highlight.js": [ "./node_modules/highlight.js" - ], + ] } }, - "include": ["src/**/*",], + "include": [ + "src/**/*" + ], "exclude": [ - "**/*.spec.*", - "**/*.stories.*", + "**/*.spec.*", + "**/*.stories.*", "node_modules" ], "references": [ @@ -67,4 +66,4 @@ "path": "../leafygreen-provider" } ] -} \ No newline at end of file +} diff --git a/packages/combobox/tsconfig.json b/packages/combobox/tsconfig.json index 0a0a07740f..447ee0736a 100644 --- a/packages/combobox/tsconfig.json +++ b/packages/combobox/tsconfig.json @@ -1,10 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": [ "../icon/src/generated/*" @@ -68,4 +64,4 @@ "path": "../leafygreen-provider" } ] -} \ No newline at end of file +} diff --git a/packages/confirmation-modal/tsconfig.json b/packages/confirmation-modal/tsconfig.json index 3858a20f60..5738417957 100644 --- a/packages/confirmation-modal/tsconfig.json +++ b/packages/confirmation-modal/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../button" diff --git a/packages/copyable/tsconfig.json b/packages/copyable/tsconfig.json index 1a15e22d8e..e6f8396c7a 100644 --- a/packages/copyable/tsconfig.json +++ b/packages/copyable/tsconfig.json @@ -1,20 +1,23 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*", "../../typings" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../button" diff --git a/packages/date-picker/tsconfig.json b/packages/date-picker/tsconfig.json index 06e481bc11..2bbbf587e4 100644 --- a/packages/date-picker/tsconfig.json +++ b/packages/date-picker/tsconfig.json @@ -1,17 +1,13 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": [ "../icon/src/generated/*" ], "@leafygreen-ui/*": [ "../*/src" - ], + ] } }, "include": [ @@ -19,7 +15,7 @@ ], "exclude": [ "**/*.spec.*", - "**/*.stories.*", + "**/*.stories.*" ], "references": [ { @@ -74,4 +70,4 @@ "path": "../typography" } ] -} \ No newline at end of file +} diff --git a/packages/date-utils/tsconfig.json b/packages/date-utils/tsconfig.json index b5eed19ae2..2644e0244f 100644 --- a/packages/date-utils/tsconfig.json +++ b/packages/date-utils/tsconfig.json @@ -1,18 +1,18 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*"], + "exclude": [ + "**/*.spec.*" + ], "references": [ { "path": "../lib" diff --git a/packages/descendants/tsconfig.json b/packages/descendants/tsconfig.json index 6f8eb7f566..93061a0a01 100644 --- a/packages/descendants/tsconfig.json +++ b/packages/descendants/tsconfig.json @@ -1,18 +1,19 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../button" @@ -28,6 +29,6 @@ }, { "path": "../testing-lib" - }, + } ] } diff --git a/packages/drawer/tsconfig.json b/packages/drawer/tsconfig.json index 8a6470d710..9ae648a8d2 100644 --- a/packages/drawer/tsconfig.json +++ b/packages/drawer/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../button" diff --git a/packages/emotion/tsconfig.json b/packages/emotion/tsconfig.json index 42840ff8fe..7d7dd3a781 100644 --- a/packages/emotion/tsconfig.json +++ b/packages/emotion/tsconfig.json @@ -1,18 +1,21 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [] } diff --git a/packages/empty-state/tsconfig.json b/packages/empty-state/tsconfig.json index c877d35c90..0729c9d7b3 100644 --- a/packages/empty-state/tsconfig.json +++ b/packages/empty-state/tsconfig.json @@ -1,20 +1,23 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*", "./example-graphics/svg.d.ts" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../badge" diff --git a/packages/expandable-card/tsconfig.json b/packages/expandable-card/tsconfig.json index 97422fc69f..8ac1eb584b 100644 --- a/packages/expandable-card/tsconfig.json +++ b/packages/expandable-card/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../card" diff --git a/packages/form-field/tsconfig.json b/packages/form-field/tsconfig.json index ed50d238ca..64092c6cc2 100644 --- a/packages/form-field/tsconfig.json +++ b/packages/form-field/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../button" diff --git a/packages/form-footer/tsconfig.json b/packages/form-footer/tsconfig.json index 7a5f15894b..263693ec49 100644 --- a/packages/form-footer/tsconfig.json +++ b/packages/form-footer/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../banner" diff --git a/packages/gallery-indicator/tsconfig.json b/packages/gallery-indicator/tsconfig.json index 3aa4611ae3..2ad32f6cbf 100644 --- a/packages/gallery-indicator/tsconfig.json +++ b/packages/gallery-indicator/tsconfig.json @@ -1,10 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": [ "../icon/src/generated/*" @@ -39,4 +35,4 @@ "path": "../tokens" } ] -} \ No newline at end of file +} diff --git a/packages/guide-cue/tsconfig.json b/packages/guide-cue/tsconfig.json index 379636d391..32a80b6a10 100644 --- a/packages/guide-cue/tsconfig.json +++ b/packages/guide-cue/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../a11y" diff --git a/packages/hooks/tsconfig.json b/packages/hooks/tsconfig.json index c19d82c416..394488bd86 100644 --- a/packages/hooks/tsconfig.json +++ b/packages/hooks/tsconfig.json @@ -1,22 +1,28 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], - "references": [{ - "path": "../lib" - }, { - "path": "../emotion" - }] + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], + "references": [ + { + "path": "../lib" + }, + { + "path": "../emotion" + } + ] } diff --git a/packages/icon-button/tsconfig.json b/packages/icon-button/tsconfig.json index db95a56fca..f56b93e332 100644 --- a/packages/icon-button/tsconfig.json +++ b/packages/icon-button/tsconfig.json @@ -1,13 +1,13 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ @@ -15,7 +15,10 @@ "../../typings/*", "typings/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../a11y" diff --git a/packages/icon/tsconfig.json b/packages/icon/tsconfig.json index d60a56672d..0b6cade79b 100644 --- a/packages/icon/tsconfig.json +++ b/packages/icon/tsconfig.json @@ -1,18 +1,19 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/info-sprinkle/tsconfig.json b/packages/info-sprinkle/tsconfig.json index 1309dc849b..4b32728424 100644 --- a/packages/info-sprinkle/tsconfig.json +++ b/packages/info-sprinkle/tsconfig.json @@ -1,10 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": [ "../icon/src/generated/*" @@ -45,4 +41,4 @@ "path": "../tokens" } ] -} \ No newline at end of file +} diff --git a/packages/inline-definition/tsconfig.json b/packages/inline-definition/tsconfig.json index f428982609..695d0f3dc3 100644 --- a/packages/inline-definition/tsconfig.json +++ b/packages/inline-definition/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/input-option/tsconfig.json b/packages/input-option/tsconfig.json index 5543629652..a420dcdbb9 100644 --- a/packages/input-option/tsconfig.json +++ b/packages/input-option/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../a11y" diff --git a/packages/leafygreen-provider/tsconfig.json b/packages/leafygreen-provider/tsconfig.json index c3d9c18b45..f30232da50 100644 --- a/packages/leafygreen-provider/tsconfig.json +++ b/packages/leafygreen-provider/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../lib" diff --git a/packages/lib/tsconfig.json b/packages/lib/tsconfig.json index 87642f10ed..7d7dd3a781 100644 --- a/packages/lib/tsconfig.json +++ b/packages/lib/tsconfig.json @@ -1,19 +1,21 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], - "references": [ - ] + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], + "references": [] } diff --git a/packages/loading-indicator/tsconfig.json b/packages/loading-indicator/tsconfig.json index 4acecc8878..55ead520e3 100644 --- a/packages/loading-indicator/tsconfig.json +++ b/packages/loading-indicator/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/logo/tsconfig.json b/packages/logo/tsconfig.json index c17b8d2b1b..637c6101a5 100644 --- a/packages/logo/tsconfig.json +++ b/packages/logo/tsconfig.json @@ -1,13 +1,13 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ diff --git a/packages/marketing-modal/tsconfig.json b/packages/marketing-modal/tsconfig.json index 808cafa038..d4ceacd4ce 100644 --- a/packages/marketing-modal/tsconfig.json +++ b/packages/marketing-modal/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../button" diff --git a/packages/menu/tsconfig.json b/packages/menu/tsconfig.json index ef8bcaf4c9..7cfe44dfdc 100644 --- a/packages/menu/tsconfig.json +++ b/packages/menu/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../descendants" diff --git a/packages/modal/tsconfig.json b/packages/modal/tsconfig.json index 0549def2dd..c045f8a8d6 100644 --- a/packages/modal/tsconfig.json +++ b/packages/modal/tsconfig.json @@ -1,20 +1,23 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*", "../../typings" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/number-input/tsconfig.json b/packages/number-input/tsconfig.json index 6ce25964c6..7687c1f49d 100644 --- a/packages/number-input/tsconfig.json +++ b/packages/number-input/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../a11y" diff --git a/packages/ordered-list/tsconfig.json b/packages/ordered-list/tsconfig.json index 00a5067d91..b203a12478 100644 --- a/packages/ordered-list/tsconfig.json +++ b/packages/ordered-list/tsconfig.json @@ -1,21 +1,26 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ - {"path": "../descendants"}, + { + "path": "../descendants" + }, { "path": "../typography" }, diff --git a/packages/pagination/tsconfig.json b/packages/pagination/tsconfig.json index a676a7ce17..60a9631b0c 100644 --- a/packages/pagination/tsconfig.json +++ b/packages/pagination/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/palette/tsconfig.json b/packages/palette/tsconfig.json index 42840ff8fe..7d7dd3a781 100644 --- a/packages/palette/tsconfig.json +++ b/packages/palette/tsconfig.json @@ -1,18 +1,21 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [] } diff --git a/packages/password-input/tsconfig.json b/packages/password-input/tsconfig.json index 996d0246f6..cc55cd34dc 100644 --- a/packages/password-input/tsconfig.json +++ b/packages/password-input/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../a11y" diff --git a/packages/pipeline/tsconfig.json b/packages/pipeline/tsconfig.json index 9f6e987e3f..df9bf794bd 100644 --- a/packages/pipeline/tsconfig.json +++ b/packages/pipeline/tsconfig.json @@ -1,13 +1,13 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ diff --git a/packages/polymorphic/tsconfig.json b/packages/polymorphic/tsconfig.json index 8278117fcf..5b53966094 100644 --- a/packages/polymorphic/tsconfig.json +++ b/packages/polymorphic/tsconfig.json @@ -1,14 +1,11 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", "noErrorTruncation": false, "noUnusedLocals": false }, "include": [ - "src/**/*", + "src/**/*" ], "exclude": ["src/Example/*", "**/*.stories.*"], "references": [ diff --git a/packages/popover/tsconfig.json b/packages/popover/tsconfig.json index 67c2510f42..88d0958582 100644 --- a/packages/popover/tsconfig.json +++ b/packages/popover/tsconfig.json @@ -1,20 +1,23 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*", "../../typings/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/portal/tsconfig.json b/packages/portal/tsconfig.json index 695db526a9..aa47d51c29 100644 --- a/packages/portal/tsconfig.json +++ b/packages/portal/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../hooks" diff --git a/packages/radio-box-group/tsconfig.json b/packages/radio-box-group/tsconfig.json index 7a9cc9c6dc..75f85c80af 100644 --- a/packages/radio-box-group/tsconfig.json +++ b/packages/radio-box-group/tsconfig.json @@ -1,20 +1,23 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*", "../tooltip/src/getTooltipTriggerHandlers.ts" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/radio-group/tsconfig.json b/packages/radio-group/tsconfig.json index ddbac7e640..e8f85e63a3 100644 --- a/packages/radio-group/tsconfig.json +++ b/packages/radio-group/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/ripple/tsconfig.json b/packages/ripple/tsconfig.json index a49a9ec395..31c000fa81 100644 --- a/packages/ripple/tsconfig.json +++ b/packages/ripple/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../tokens" diff --git a/packages/search-input/tsconfig.json b/packages/search-input/tsconfig.json index 66d6b42cb6..550fa1bbaf 100644 --- a/packages/search-input/tsconfig.json +++ b/packages/search-input/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../a11y" diff --git a/packages/segmented-control/tsconfig.json b/packages/segmented-control/tsconfig.json index 40af0e88f7..b89a85b393 100644 --- a/packages/segmented-control/tsconfig.json +++ b/packages/segmented-control/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/select/tsconfig.json b/packages/select/tsconfig.json index 09d0116646..a16ba7115c 100644 --- a/packages/select/tsconfig.json +++ b/packages/select/tsconfig.json @@ -1,10 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": [ "../icon/src/generated/*" @@ -19,7 +15,7 @@ ], "exclude": [ "**/*.spec.*", - "**/*.stories.*", + "**/*.stories.*" ], "references": [ { @@ -59,4 +55,4 @@ "path": "../leafygreen-provider" } ] -} \ No newline at end of file +} diff --git a/packages/side-nav/tsconfig.json b/packages/side-nav/tsconfig.json index 1b75e79185..5e471972b3 100644 --- a/packages/side-nav/tsconfig.json +++ b/packages/side-nav/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../a11y" diff --git a/packages/skeleton-loader/tsconfig.json b/packages/skeleton-loader/tsconfig.json index 9045929ece..ef7948eb9a 100644 --- a/packages/skeleton-loader/tsconfig.json +++ b/packages/skeleton-loader/tsconfig.json @@ -1,10 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": [ "../icon/src/generated/*" @@ -44,4 +40,4 @@ "path": "../typography" } ] -} \ No newline at end of file +} diff --git a/packages/split-button/tsconfig.json b/packages/split-button/tsconfig.json index b62acae8db..d66eb66219 100644 --- a/packages/split-button/tsconfig.json +++ b/packages/split-button/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../button" diff --git a/packages/stepper/tsconfig.json b/packages/stepper/tsconfig.json index 7737e6aa5b..1d00963378 100644 --- a/packages/stepper/tsconfig.json +++ b/packages/stepper/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/table/tsconfig.json b/packages/table/tsconfig.json index b5eb3422e1..a58e455144 100644 --- a/packages/table/tsconfig.json +++ b/packages/table/tsconfig.json @@ -1,10 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": [ "../icon/src/generated/*" @@ -59,4 +55,4 @@ "path": "../leafygreen-provider" } ] -} \ No newline at end of file +} diff --git a/packages/tabs/tsconfig.json b/packages/tabs/tsconfig.json index dcc9c781d7..783bc160bc 100644 --- a/packages/tabs/tsconfig.json +++ b/packages/tabs/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../a11y" diff --git a/packages/testing-lib/tsconfig.json b/packages/testing-lib/tsconfig.json index 16f314e954..67930ea7ca 100644 --- a/packages/testing-lib/tsconfig.json +++ b/packages/testing-lib/tsconfig.json @@ -1,17 +1,18 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [] } diff --git a/packages/text-area/tsconfig.json b/packages/text-area/tsconfig.json index 892c893c08..9fc7c1c150 100644 --- a/packages/text-area/tsconfig.json +++ b/packages/text-area/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/text-input/tsconfig.json b/packages/text-input/tsconfig.json index 4de2f92f74..f17a29c163 100644 --- a/packages/text-input/tsconfig.json +++ b/packages/text-input/tsconfig.json @@ -1,10 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": [ "../icon/src/generated/*" @@ -50,4 +46,4 @@ "path": "../leafygreen-provider" } ] -} \ No newline at end of file +} diff --git a/packages/toast/tsconfig.json b/packages/toast/tsconfig.json index 731b0df283..198003b129 100644 --- a/packages/toast/tsconfig.json +++ b/packages/toast/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/toggle/tsconfig.json b/packages/toggle/tsconfig.json index bf359c7941..b3c3873f12 100644 --- a/packages/toggle/tsconfig.json +++ b/packages/toggle/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../a11y" diff --git a/packages/tokens/tsconfig.json b/packages/tokens/tsconfig.json index 23cbbbded4..99c44f3ac6 100644 --- a/packages/tokens/tsconfig.json +++ b/packages/tokens/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/tooltip/tsconfig.json b/packages/tooltip/tsconfig.json index 2980a18452..abb2077e4d 100644 --- a/packages/tooltip/tsconfig.json +++ b/packages/tooltip/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" diff --git a/packages/typography/tsconfig.json b/packages/typography/tsconfig.json index 1bd4ee6ae4..1c5d20716a 100644 --- a/packages/typography/tsconfig.json +++ b/packages/typography/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../emotion" @@ -37,4 +40,4 @@ "path": "../leafygreen-provider" } ] -} \ No newline at end of file +} diff --git a/tools/build/config/package.tsconfig.json b/tools/build/config/package.tsconfig.json index 143abf8ddc..10855cfb0f 100644 --- a/tools/build/config/package.tsconfig.json +++ b/tools/build/config/package.tsconfig.json @@ -2,8 +2,8 @@ "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "module": "ESNext", - "moduleResolution": "node", - "target": "ES2017", + "moduleResolution": "bundler", + "target": "ES2020", "jsx": "react", "incremental": true, "composite": true, @@ -17,6 +17,11 @@ "strict": true, "strictNullChecks": true, "pretty": true, - "skipLibCheck": true + "skipLibCheck": true, + "lib": ["DOM", "DOM.Iterable", "ES2020"], + "baseUrl": "${configDir}", + "rootDir": "${configDir}/src", + "outDir": "${configDir}/dist", + "declarationDir": "${configDir}/dist/types" } } diff --git a/tools/build/tsconfig.json b/tools/build/tsconfig.json index 36ac1f48de..bb8d4e916b 100644 --- a/tools/build/tsconfig.json +++ b/tools/build/tsconfig.json @@ -1,11 +1,6 @@ { "extends": "./config/node.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": "." - }, + "compilerOptions": {}, "include": [ "src/**/*" ], diff --git a/tools/cli/tsconfig.json b/tools/cli/tsconfig.json index e48ee335ce..75e17a489f 100644 --- a/tools/cli/tsconfig.json +++ b/tools/cli/tsconfig.json @@ -2,10 +2,6 @@ "$schema": "https://json.schemastore.org/tsconfig", "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@lg-tools/*": [ "../*/src" @@ -51,4 +47,4 @@ "**/*.spec.*", "**/*.stories.*" ] -} \ No newline at end of file +} diff --git a/tools/codemods/tsconfig.json b/tools/codemods/tsconfig.json index 9241b199cb..4918de2c61 100644 --- a/tools/codemods/tsconfig.json +++ b/tools/codemods/tsconfig.json @@ -1,10 +1,6 @@ { "extends": "@lg-tools/build/config/node.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { "@lg-tools/*": [ "../*/src" @@ -14,7 +10,11 @@ "include": [ "src/**/*" ], - "exclude": ["**/*.input.*", "**/*.output.*", "**/*.spec.*", "**/*.stories.*"], - "references": [ - ] + "exclude": [ + "**/*.input.*", + "**/*.output.*", + "**/*.spec.*", + "**/*.stories.*" + ], + "references": [] } diff --git a/tools/create/tsconfig.json b/tools/create/tsconfig.json index 26e7d3c9f4..280e1e90fa 100644 --- a/tools/create/tsconfig.json +++ b/tools/create/tsconfig.json @@ -1,11 +1,6 @@ { "extends": "@lg-tools/build/config/node.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": "." - }, + "compilerOptions": {}, "include": [ "src/**/*" ], diff --git a/tools/install/scripts/tsconfig.json b/tools/install/scripts/tsconfig.json index 1c195bbc16..a41973498c 100644 --- a/tools/install/scripts/tsconfig.json +++ b/tools/install/scripts/tsconfig.json @@ -3,5 +3,13 @@ "compilerOptions": { "strict": true, "baseUrl": ".", - } + }, + "references": [ + { + "path": "../../lint" + }, + { + "path": "../../meta" + } + ] } diff --git a/tools/install/tsconfig.json b/tools/install/tsconfig.json index 2863411147..594696d33f 100644 --- a/tools/install/tsconfig.json +++ b/tools/install/tsconfig.json @@ -1,12 +1,10 @@ { "extends": "@lg-tools/build/config/node.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@lg-tools/*": ["../*/src"] + "@lg-tools/*": [ + "../*/src" + ] } }, "include": [ @@ -20,4 +18,4 @@ "path": "../meta" } ] -} \ No newline at end of file +} diff --git a/tools/link/tsconfig.json b/tools/link/tsconfig.json index 5eec0fcfa1..0643525270 100644 --- a/tools/link/tsconfig.json +++ b/tools/link/tsconfig.json @@ -1,19 +1,22 @@ { "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@lg-tools/*": ["../*/src"] + "@lg-tools/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ - {"path": "../meta"} + { + "path": "../meta" + } ] -} \ No newline at end of file +} diff --git a/tools/lint/tsconfig.json b/tools/lint/tsconfig.json index 2d8c266657..2bab3b6865 100644 --- a/tools/lint/tsconfig.json +++ b/tools/lint/tsconfig.json @@ -1,11 +1,6 @@ { "extends": "@lg-tools/build/config/node.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": "." - }, + "compilerOptions": {}, "include": [ "src/**/*" ], diff --git a/tools/meta/tsconfig.json b/tools/meta/tsconfig.json index 3f4d88e47a..21f939f5f8 100644 --- a/tools/meta/tsconfig.json +++ b/tools/meta/tsconfig.json @@ -1,21 +1,22 @@ { "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@lg-tools/*": ["../*/src"] + "@lg-tools/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../build" } ] -} \ No newline at end of file +} diff --git a/tools/slackbot/tsconfig.json b/tools/slackbot/tsconfig.json index d28416e26f..6a71ba0810 100644 --- a/tools/slackbot/tsconfig.json +++ b/tools/slackbot/tsconfig.json @@ -1,11 +1,6 @@ { "extends": "@lg-tools/build/config/node.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": "." - }, + "compilerOptions": {}, "include": [ "src/**/*" ], diff --git a/tools/storybook-addon/tsconfig.json b/tools/storybook-addon/tsconfig.json index 4819377ef9..7fb232c247 100644 --- a/tools/storybook-addon/tsconfig.json +++ b/tools/storybook-addon/tsconfig.json @@ -1,11 +1,6 @@ { "extends": "@lg-tools/build/config/node.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": "." - }, + "compilerOptions": {}, "include": [ "src/**/*" ], diff --git a/tools/storybook-decorators/tsconfig.json b/tools/storybook-decorators/tsconfig.json index a392240dfd..23b516da23 100644 --- a/tools/storybook-decorators/tsconfig.json +++ b/tools/storybook-decorators/tsconfig.json @@ -1,13 +1,8 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", - }, - "include": [ - "src/**/*" - ], + "compilerOptions": {}, + "include": [ + "src/**/*" + ], "exclude": ["**/*.spec.*", "**/*.stories.*"] -} \ No newline at end of file +} diff --git a/tools/storybook-utils/tsconfig.json b/tools/storybook-utils/tsconfig.json index 05778289f1..3fab6ce1c7 100644 --- a/tools/storybook-utils/tsconfig.json +++ b/tools/storybook-utils/tsconfig.json @@ -1,19 +1,21 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", + "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.story.*"], - "references": [ - ] + "exclude": [ + "**/*.spec.*", + "**/*.story.*" + ], + "references": [] } diff --git a/tools/test-harnesses/tsconfig.json b/tools/test-harnesses/tsconfig.json index 54fe6c435d..7b8cd1dcad 100644 --- a/tools/test-harnesses/tsconfig.json +++ b/tools/test-harnesses/tsconfig.json @@ -1,12 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "extends": "@lg-tools/build/config/package.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": "." - }, + "compilerOptions": {}, "include": [ "src/**/*" ], diff --git a/tools/test/tsconfig.json b/tools/test/tsconfig.json index a4f4e58d33..3158649ede 100644 --- a/tools/test/tsconfig.json +++ b/tools/test/tsconfig.json @@ -1,12 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "extends": "@lg-tools/build/config/node.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": "." - }, + "compilerOptions": {}, "include": [ "src/**/*" ] diff --git a/tools/update/tsconfig.json b/tools/update/tsconfig.json index 083e921781..825488a547 100644 --- a/tools/update/tsconfig.json +++ b/tools/update/tsconfig.json @@ -1,12 +1,10 @@ { "extends": "@lg-tools/build/config/node.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { - "@lg-tools/*": ["../*/src"] + "@lg-tools/*": [ + "../*/src" + ] } }, "references": [ @@ -17,6 +15,11 @@ "path": "../meta" } ], - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"] -} \ No newline at end of file + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ] +} diff --git a/tools/validate/tsconfig.json b/tools/validate/tsconfig.json index a47d7178ef..352dd8855a 100644 --- a/tools/validate/tsconfig.json +++ b/tools/validate/tsconfig.json @@ -1,12 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "extends": "@lg-tools/build/config/node.tsconfig.json", - "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": "." - }, + "compilerOptions": {}, "include": [ "src/**/*" ], diff --git a/tsconfig.json b/tsconfig.json index 97f9701916..0e9ffd65ef 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,12 @@ { "$schema": "https://json.schemastore.org/tsconfig", + "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "module": "None", - "composite": true, + "module": "NodeNext", + "moduleResolution": "nodenext", "baseUrl": ".", + "rootDir": ".", + "composite": true, "paths": { "@leafygreen-ui/icon/dist/*": ["./packages/icon/src/generated/*"], "@leafygreen-ui/*": ["packages/*/src"], From 26da682cf865f30830e45148ab4c8d47775dd2f6 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 13:00:06 -0400 Subject: [PATCH 060/123] adds changesets --- .changeset/build-tsconfig-bundler.md | 6 ++++++ .changeset/build-tsconfig-configDir.md | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 .changeset/build-tsconfig-bundler.md create mode 100644 .changeset/build-tsconfig-configDir.md diff --git a/.changeset/build-tsconfig-bundler.md b/.changeset/build-tsconfig-bundler.md new file mode 100644 index 0000000000..e6b6653777 --- /dev/null +++ b/.changeset/build-tsconfig-bundler.md @@ -0,0 +1,6 @@ +--- +'@lg-tools/build': minor +--- + +Updates `package.tsconfig.json` "moduleResolution" to "bundler", and "target" to "ES2020" + diff --git a/.changeset/build-tsconfig-configDir.md b/.changeset/build-tsconfig-configDir.md new file mode 100644 index 0000000000..5f91344f36 --- /dev/null +++ b/.changeset/build-tsconfig-configDir.md @@ -0,0 +1,6 @@ +--- +'@lg-tools/build': minor +--- + +- Updates default types directory to `./dist/types` +- Uses "${configDir}" in base package.json baseUrl, rootDir, outDir, & declarationDir properties \ No newline at end of file From 40f18b8fcdf4ea7c22ecc9f1546077deca9937e1 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 13:05:29 -0400 Subject: [PATCH 061/123] adds types entry point in package.json --- .changeset/all-types-entry-point.md | 107 ++++++++++++++++++ charts/chart-card/package.json | 2 +- charts/colors/package.json | 2 +- charts/core/package.json | 2 +- charts/drag-provider/package.json | 2 +- charts/legend/package.json | 2 +- charts/series-provider/package.json | 2 +- chat/avatar/package.json | 10 +- chat/chat-disclaimer/package.json | 2 +- chat/chat-window/package.json | 10 +- chat/fixed-chat-window/package.json | 2 +- chat/input-bar/package.json | 10 +- chat/leafygreen-chat-provider/package.json | 10 +- chat/lg-markdown/package.json | 10 +- chat/message-feed/package.json | 10 +- chat/message-feedback/package.json | 10 +- chat/message-prompts/package.json | 2 +- chat/message-rating/package.json | 10 +- chat/message/package.json | 10 +- chat/rich-links/package.json | 2 +- chat/title-bar/package.json | 10 +- packages/a11y/package.json | 10 +- packages/avatar/package.json | 10 +- packages/badge/package.json | 10 +- packages/banner/package.json | 10 +- packages/box/package.json | 10 +- packages/button/package.json | 10 +- packages/callout/package.json | 10 +- packages/card/package.json | 10 +- packages/checkbox/package.json | 10 +- packages/chip/package.json | 2 +- packages/code/package.json | 10 +- packages/combobox/package.json | 10 +- packages/confirmation-modal/package.json | 10 +- packages/copyable/package.json | 10 +- packages/date-picker/package.json | 2 +- packages/date-utils/package.json | 2 +- packages/descendants/package.json | 2 +- packages/drawer/package.json | 2 +- packages/emotion/package.json | 10 +- packages/empty-state/package.json | 10 +- packages/expandable-card/package.json | 10 +- packages/form-field/package.json | 2 +- packages/form-footer/package.json | 10 +- packages/gallery-indicator/package.json | 2 +- packages/guide-cue/package.json | 10 +- packages/hooks/package.json | 10 +- packages/icon-button/package.json | 10 +- packages/icon/package.json | 10 +- packages/info-sprinkle/package.json | 2 +- packages/inline-definition/package.json | 10 +- packages/input-option/package.json | 10 +- packages/leafygreen-provider/package.json | 10 +- packages/lib/package.json | 10 +- packages/loading-indicator/package.json | 10 +- packages/logo/package.json | 10 +- packages/marketing-modal/package.json | 10 +- packages/menu/package.json | 10 +- packages/modal/package.json | 10 +- packages/number-input/package.json | 10 +- packages/ordered-list/package.json | 2 +- packages/pagination/package.json | 10 +- packages/palette/package.json | 10 +- packages/password-input/package.json | 10 +- packages/pipeline/package.json | 10 +- packages/polymorphic/package.json | 10 +- packages/popover/package.json | 10 +- packages/portal/package.json | 10 +- packages/radio-box-group/package.json | 10 +- packages/radio-group/package.json | 10 +- packages/ripple/package.json | 10 +- packages/search-input/package.json | 10 +- packages/segmented-control/package.json | 10 +- packages/select/package.json | 10 +- packages/side-nav/package.json | 10 +- packages/skeleton-loader/package.json | 10 +- packages/split-button/package.json | 10 +- packages/stepper/package.json | 10 +- packages/table/package.json | 10 +- packages/tabs/package.json | 10 +- packages/testing-lib/package.json | 10 +- packages/text-area/package.json | 10 +- packages/text-input/package.json | 10 +- packages/toast/package.json | 10 +- packages/toggle/package.json | 10 +- packages/tokens/package.json | 10 +- packages/tooltip/package.json | 10 +- packages/typography/package.json | 10 +- tools/build/package.json | 1 + tools/cli/package.json | 1 + tools/codemods/package.json | 2 +- .../src/templates/component/package.json.ts | 2 +- tools/install/package.json | 2 +- tools/link/package.json | 1 + tools/lint/package.json | 1 + tools/meta/package.json | 1 + tools/slackbot/package.json | 1 + tools/storybook-addon/package.json | 2 +- tools/storybook-decorators/package.json | 2 +- tools/storybook-utils/package.json | 2 +- tools/test-harnesses/package.json | 1 + tools/test/package.json | 1 + tools/update/package.json | 1 + tools/validate/package.json | 1 + 104 files changed, 278 insertions(+), 569 deletions(-) create mode 100644 .changeset/all-types-entry-point.md diff --git a/.changeset/all-types-entry-point.md b/.changeset/all-types-entry-point.md new file mode 100644 index 0000000000..7659d1279b --- /dev/null +++ b/.changeset/all-types-entry-point.md @@ -0,0 +1,107 @@ +--- +'@lg-chat/leafygreen-chat-provider': patch +'@leafygreen-ui/leafygreen-provider': patch +'@leafygreen-ui/confirmation-modal': patch +'@leafygreen-ui/gallery-indicator': patch +'@leafygreen-ui/inline-definition': patch +'@leafygreen-ui/loading-indicator': patch +'@leafygreen-ui/segmented-control': patch +'@lg-tools/storybook-decorators': patch +'@leafygreen-ui/expandable-card': patch +'@leafygreen-ui/marketing-modal': patch +'@leafygreen-ui/radio-box-group': patch +'@leafygreen-ui/skeleton-loader': patch +'@leafygreen-ui/password-input': patch +'@lg-charts/series-provider': patch +'@lg-chat/fixed-chat-window': patch +'@leafygreen-ui/info-sprinkle': patch +'@lg-chat/message-feedback': patch +'@leafygreen-ui/input-option': patch +'@leafygreen-ui/number-input': patch +'@leafygreen-ui/ordered-list': patch +'@leafygreen-ui/search-input': patch +'@leafygreen-ui/split-button': patch +'@lg-tools/storybook-addon': patch +'@lg-tools/storybook-utils': patch +'@lg-charts/drag-provider': patch +'@lg-chat/chat-disclaimer': patch +'@lg-chat/message-prompts': patch +'@leafygreen-ui/date-picker': patch +'@leafygreen-ui/descendants': patch +'@leafygreen-ui/empty-state': patch +'@leafygreen-ui/form-footer': patch +'@leafygreen-ui/icon-button': patch +'@leafygreen-ui/polymorphic': patch +'@leafygreen-ui/radio-group': patch +'@leafygreen-ui/testing-lib': patch +'@lg-tools/test-harnesses': patch +'@lg-chat/message-rating': patch +'@leafygreen-ui/date-utils': patch +'@leafygreen-ui/form-field': patch +'@leafygreen-ui/pagination': patch +'@leafygreen-ui/text-input': patch +'@leafygreen-ui/typography': patch +'@leafygreen-ui/guide-cue': patch +'@leafygreen-ui/text-area': patch +'@lg-charts/chart-card': patch +'@lg-chat/message-feed': patch +'@leafygreen-ui/checkbox': patch +'@leafygreen-ui/combobox': patch +'@leafygreen-ui/copyable': patch +'@leafygreen-ui/pipeline': patch +'@leafygreen-ui/side-nav': patch +'@lg-chat/chat-window': patch +'@lg-chat/lg-markdown': patch +'@leafygreen-ui/callout': patch +'@leafygreen-ui/emotion': patch +'@leafygreen-ui/palette': patch +'@leafygreen-ui/popover': patch +'@leafygreen-ui/stepper': patch +'@leafygreen-ui/tooltip': patch +'@lg-chat/rich-links': patch +'@leafygreen-ui/avatar': patch +'@leafygreen-ui/banner': patch +'@leafygreen-ui/button': patch +'@leafygreen-ui/drawer': patch +'@leafygreen-ui/portal': patch +'@leafygreen-ui/ripple': patch +'@leafygreen-ui/select': patch +'@leafygreen-ui/toggle': patch +'@leafygreen-ui/tokens': patch +'@lg-chat/input-bar': patch +'@lg-chat/title-bar': patch +'@leafygreen-ui/badge': patch +'@leafygreen-ui/hooks': patch +'@leafygreen-ui/modal': patch +'@leafygreen-ui/table': patch +'@leafygreen-ui/toast': patch +'@lg-tools/codemods': patch +'@lg-tools/slackbot': patch +'@lg-tools/validate': patch +'@lg-charts/colors': patch +'@lg-charts/legend': patch +'@leafygreen-ui/a11y': patch +'@leafygreen-ui/card': patch +'@leafygreen-ui/chip': patch +'@leafygreen-ui/code': patch +'@leafygreen-ui/icon': patch +'@leafygreen-ui/logo': patch +'@leafygreen-ui/menu': patch +'@leafygreen-ui/tabs': patch +'@lg-tools/install': patch +'@lg-chat/message': patch +'@leafygreen-ui/box': patch +'@leafygreen-ui/lib': patch +'@lg-tools/create': patch +'@lg-tools/update': patch +'@lg-charts/core': patch +'@lg-chat/avatar': patch +'@lg-tools/build': patch +'@lg-tools/link': patch +'@lg-tools/lint': patch +'@lg-tools/meta': patch +'@lg-tools/test': patch +'@lg-tools/cli': patch +--- + +Updates `types` entry point to `./dist/types` diff --git a/charts/chart-card/package.json b/charts/chart-card/package.json index 45a60bf026..417a5e3bb4 100644 --- a/charts/chart-card/package.json +++ b/charts/chart-card/package.json @@ -4,7 +4,7 @@ "description": "lg-charts ChartCard", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/charts/colors/package.json b/charts/colors/package.json index 2bcc88f078..a81fe62e10 100644 --- a/charts/colors/package.json +++ b/charts/colors/package.json @@ -4,7 +4,7 @@ "description": "lg-charts colors", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/charts/core/package.json b/charts/core/package.json index 991a6135d2..c1e55fbcf0 100644 --- a/charts/core/package.json +++ b/charts/core/package.json @@ -4,7 +4,7 @@ "description": "lg-charts Core Chart Components", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index 5b05dfa02b..91f01ed27a 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -4,7 +4,7 @@ "description": "lg-charts DragProvider Component", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/charts/legend/package.json b/charts/legend/package.json index eb1ce6a478..e5eb3b79ef 100644 --- a/charts/legend/package.json +++ b/charts/legend/package.json @@ -4,7 +4,7 @@ "description": "lg-charts Legend", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index 95e8612806..89610e2f0f 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -4,7 +4,7 @@ "description": "lg-charts SeriesProvider Component", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/chat/avatar/package.json b/chat/avatar/package.json index 0a85b533bc..69b1a528b2 100644 --- a/chat/avatar/package.json +++ b/chat/avatar/package.json @@ -4,14 +4,8 @@ "description": "lg-chat Avatar", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/chat-disclaimer/package.json b/chat/chat-disclaimer/package.json index e1c4b25c2d..358bf9afdd 100644 --- a/chat/chat-disclaimer/package.json +++ b/chat/chat-disclaimer/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Chat Disclaimer", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index 3d93339e9f..bba6420213 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -4,14 +4,8 @@ "description": "lg-chat Chat Window", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/fixed-chat-window/package.json b/chat/fixed-chat-window/package.json index 6745a79728..03b2593924 100644 --- a/chat/fixed-chat-window/package.json +++ b/chat/fixed-chat-window/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Fixed Chat Window", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index 66c4936a37..f449c175b9 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -4,14 +4,8 @@ "description": "lg-chat Input Bar", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index 31a3923019..794d53d6e8 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -4,14 +4,8 @@ "description": "lg-chat LeafyGreen Chat Context", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index 87fb31dbe5..d60b1784e9 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -4,14 +4,8 @@ "description": "lg-chat LGMarkdown", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index a6e8dccfa8..436effd379 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -4,14 +4,8 @@ "description": "lg-chat Message Feed", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index 7defdb78c5..bb113f1610 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Message Feedback", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/chat/message-prompts/package.json b/chat/message-prompts/package.json index 5b28bd3362..9c8ead10e5 100644 --- a/chat/message-prompts/package.json +++ b/chat/message-prompts/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Message Prompts", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index 75f14d28be..c2a36a3ba6 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -4,14 +4,8 @@ "description": "lg-chat Message Rating", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/message/package.json b/chat/message/package.json index a90f90f79c..1f00cb6566 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -4,14 +4,8 @@ "description": "lg-chat Message", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/chat/rich-links/package.json b/chat/rich-links/package.json index 19c76ea5be..0d8db2d04b 100644 --- a/chat/rich-links/package.json +++ b/chat/rich-links/package.json @@ -4,7 +4,7 @@ "description": "lg-chat Rich Links", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index 6ccbacd550..a1768c3ee6 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -4,14 +4,8 @@ "description": "lg-chat Title Bar", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts" diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 1bee4faf10..377d6af97a 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit A11y", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/avatar/package.json b/packages/avatar/package.json index ead186d902..1bcd365c01 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Avatar", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/badge/package.json b/packages/badge/package.json index 3f29d13c2e..e04d772ef9 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Badge", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/banner/package.json b/packages/banner/package.json index 5f32e52351..fcdb505b18 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Banner", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/box/package.json b/packages/box/package.json index cfd4328a7b..9d03bbbb29 100644 --- a/packages/box/package.json +++ b/packages/box/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Box", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/button/package.json b/packages/button/package.json index 8573980d26..eee5b5d071 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Button", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/callout/package.json b/packages/callout/package.json index b377e3a30d..5831381b68 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Callout", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/card/package.json b/packages/card/package.json index 6a69ecdb9e..bd301c9a44 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Card", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index a6752d6e1d..ac0f5aac14 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Checkbox", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/chip/package.json b/packages/chip/package.json index 5e37083843..e1436c5e8b 100644 --- a/packages/chip/package.json +++ b/packages/chip/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Chip", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/packages/code/package.json b/packages/code/package.json index 9f021003cc..aaf2b868e2 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Code Blocks", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/combobox/package.json b/packages/combobox/package.json index f39da6cb45..ae3a1571ad 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Combobox", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index ee43066d5e..d9035ee230 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Confirmation Modal", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/copyable/package.json b/packages/copyable/package.json index b074ecea9f..23db38340f 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Copyable", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index e3284a399d..04ecc8cfd9 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index 35973e66d2..c1b4045bdc 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Date Utils", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/packages/descendants/package.json b/packages/descendants/package.json index 1b1986b26c..e5b8445f00 100644 --- a/packages/descendants/package.json +++ b/packages/descendants/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Descendants", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/packages/drawer/package.json b/packages/drawer/package.json index 883b3d659f..71a5741f32 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Drawer", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 43695bc9fe..f1b6d421d3 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit's Custom Instance of Emotion", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "prebuild": "ts-node scripts/prebuild.ts", "build": "lg build-package", diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index 45fb4306e3..3998fe05c8 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Empty State", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index 730239cfd7..589e1cb703 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Expandable Card", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/form-field/package.json b/packages/form-field/package.json index 5dcf8d89f4..8830dea264 100644 --- a/packages/form-field/package.json +++ b/packages/form-field/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Form Field", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index de13e8ee78..f9287687b7 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Form Footer", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index b417d73f7e..0b7a477d3c 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Gallery Indicator", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index 1b2a08e9e0..68f066349d 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit GuideCue", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 8a0a482200..953624600a 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Custom Hooks", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index 2ba294d991..bdb1b4475f 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Icon Buttons", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/icon/package.json b/packages/icon/package.json index 605b1d4e6f..bd625eba76 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Icons", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "prebuild": "ts-node ./scripts/prebuild.ts", "build": "lg build-package", diff --git a/packages/info-sprinkle/package.json b/packages/info-sprinkle/package.json index 92f63affdf..589fbb2d49 100644 --- a/packages/info-sprinkle/package.json +++ b/packages/info-sprinkle/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Info Sprinkle", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index 7dfdc2e6da..4e9f4a9f9d 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Inline Definition", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/input-option/package.json b/packages/input-option/package.json index b93d3cc587..2210aaf016 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Internal Input Option", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index a43609e5a6..4a63413b84 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Context Provider", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/lib/package.json b/packages/lib/package.json index 3a920df9a5..a576f478ba 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Internal Library", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index 7bfaabdd47..9a17d2eb18 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Loading Indicator", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/logo/package.json b/packages/logo/package.json index d7954fd622..8bae83a998 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Logos", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index d37ce13f48..6812b2ba3c 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Marketing Modal", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/menu/package.json b/packages/menu/package.json index db6718b7c2..a22cd45fa1 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Menu", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/modal/package.json b/packages/modal/package.json index af95f2633c..17f86b9e1a 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Modal", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/number-input/package.json b/packages/number-input/package.json index cfdbabceff..80ec8f80d4 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Number Input", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/ordered-list/package.json b/packages/ordered-list/package.json index 886db14207..9579114ece 100644 --- a/packages/ordered-list/package.json +++ b/packages/ordered-list/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Ordered List", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/packages/pagination/package.json b/packages/pagination/package.json index b693da2436..dc89af6a88 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Pagination", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/palette/package.json b/packages/palette/package.json index a091ce3af7..8f7c513f0c 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Palettes", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/password-input/package.json b/packages/password-input/package.json index 200ebc1f60..a8ec7d9820 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Password Input", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index a0f94a7259..55984064a8 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Pipeline", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index 1303bdfa09..9018f23d4e 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Polymorphic", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/popover/package.json b/packages/popover/package.json index 2c37eb8b78..b5173da939 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Popover", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/portal/package.json b/packages/portal/package.json index c38806bdce..3b48185f65 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Portal", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index 3bbafc438c..ada442ba51 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit RadioBoxGroup", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index 8668bd009b..91368185f2 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit RadioGroup", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 82ef1db953..73a3acbd4b 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Ripple", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/search-input/package.json b/packages/search-input/package.json index 92d903074d..f52cc1557f 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Search Input", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index 77a0d4338c..c46cc5ada4 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Segmented Control", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/select/package.json b/packages/select/package.json index bb9a63312f..f8681002f9 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Select", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index 20c00e468a..efb9612eaf 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Side Nav", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index 1f37d6043e..82628ec98e 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Skeleton Loader", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/split-button/package.json b/packages/split-button/package.json index 4ea4ff34db..76a38b4431 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Split Button", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/stepper/package.json b/packages/stepper/package.json index f9e6aae6f5..bfb7ca007b 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Stepper", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/table/package.json b/packages/table/package.json index 14a9ded005..90a153be9b 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Table", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 3be2d82038..82749aa153 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Tabs", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index 293da90ff1..db4d0e5a9a 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Internal Testing Library", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "dependencies": { "@lg-tools/build": "workspace:^", "@testing-library/user-event": "13.5.0", diff --git a/packages/text-area/package.json b/packages/text-area/package.json index 06c367116f..8438a76d83 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Text Area", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/text-input/package.json b/packages/text-input/package.json index b21c01115c..7578cbcf58 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Text Input", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/toast/package.json b/packages/toast/package.json index 958f88ce06..1dd2561790 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Toast", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/toggle/package.json b/packages/toggle/package.json index 544a879f2d..d6060970ce 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Toggle", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 92a1776ef2..050731c366 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Tokens", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index 2c7f7be0d2..ac19c7b00f 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -4,14 +4,8 @@ "description": "LeafyGreen UI Kit Tooltip", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/typography/package.json b/packages/typography/package.json index dd8be9b524..4da4db06d0 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -4,14 +4,8 @@ "description": "leafyGreen UI Kit Typography", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", - "typesVersions": { - "<3.9": { - "*": [ - "ts3.4/*" - ] - } - }, + "types": "./dist/types/index.d.ts", + "typesVersions": {}, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/tools/build/package.json b/tools/build/package.json index 9905b89f36..a10b9d6fca 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -12,6 +12,7 @@ }, "main": "dist/index.js", "module": "dist/esm/index.js", + "types": "./dist/types/index.d.ts", "scripts": { "build": "rollup -c ./config/rollup.config.mjs", "tsc": "tsc --build tsconfig.json", diff --git a/tools/cli/package.json b/tools/cli/package.json index 6ffbbd6131..2e22d3ee6e 100644 --- a/tools/cli/package.json +++ b/tools/cli/package.json @@ -5,6 +5,7 @@ "license": "Apache-2.0", "main": "./dist/index.js", "module": "./dist/esm/index.js", + "types": "./dist/types/index.d.ts", "publishConfig": { "access": "public" }, diff --git a/tools/codemods/package.json b/tools/codemods/package.json index 4ffe089e86..6410449f18 100644 --- a/tools/codemods/package.json +++ b/tools/codemods/package.json @@ -4,7 +4,7 @@ "description": "Codemods for LeafyGreen UI", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", diff --git a/tools/create/src/templates/component/package.json.ts b/tools/create/src/templates/component/package.json.ts index 29d895c494..e5da06062c 100644 --- a/tools/create/src/templates/component/package.json.ts +++ b/tools/create/src/templates/component/package.json.ts @@ -14,7 +14,7 @@ export const pkgJson = ({ "description": "LeafyGreen UI Kit ${packageNameTitle}", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/tools/install/package.json b/tools/install/package.json index 025c229eae..33078a6a66 100644 --- a/tools/install/package.json +++ b/tools/install/package.json @@ -4,7 +4,7 @@ "description": "LeafyGreen UI Kit Install", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "prebuild": "npx ts-node ./scripts/writePackageNames.ts", diff --git a/tools/link/package.json b/tools/link/package.json index e9143929ca..7a0dfe53a0 100644 --- a/tools/link/package.json +++ b/tools/link/package.json @@ -5,6 +5,7 @@ "license": "Apache-2.0", "main": "dist/index.js", "module": "dist/esm/index.js", + "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-internal-build-package", "tsc": "tsc --build tsconfig.json" diff --git a/tools/lint/package.json b/tools/lint/package.json index fde6f7d2f4..97a1e10c49 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -4,6 +4,7 @@ "description": "Lint rules & config for LeafyGreen repositories", "main": "dist/index.js", "module": "dist/esm/index.js", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "publishConfig": { "access": "public" diff --git a/tools/meta/package.json b/tools/meta/package.json index 5da58c9ddb..c7599977a2 100644 --- a/tools/meta/package.json +++ b/tools/meta/package.json @@ -4,6 +4,7 @@ "description": "Utilities for managing LeafyGreen repositories", "main": "./dist/index.js", "module": "./dist/esm/index.js", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "publishConfig": { "access": "public" diff --git a/tools/slackbot/package.json b/tools/slackbot/package.json index 46896ef8d2..1ae487ccc8 100644 --- a/tools/slackbot/package.json +++ b/tools/slackbot/package.json @@ -8,6 +8,7 @@ }, "main": "dist/index.js", "module": "dist/esm/index.js", + "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-internal-build-package", "tsc": "tsc --build tsconfig.json" diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index cf97c1c67b..60fca643be 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -4,7 +4,7 @@ "description": "Storybook Addon for LeafyGreen UI Kit", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", diff --git a/tools/storybook-decorators/package.json b/tools/storybook-decorators/package.json index 5133e39223..20a30995ae 100644 --- a/tools/storybook-decorators/package.json +++ b/tools/storybook-decorators/package.json @@ -4,7 +4,7 @@ "description": "Storybook decorators used in LeafyGreen repos", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", diff --git a/tools/storybook-utils/package.json b/tools/storybook-utils/package.json index 5df2a990e7..183939fca2 100644 --- a/tools/storybook-utils/package.json +++ b/tools/storybook-utils/package.json @@ -4,7 +4,7 @@ "description": "Storybook Utilities for LeafyGreen UI", "main": "./dist/index.js", "module": "./dist/esm/index.js", - "types": "./dist/index.d.ts", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index 3024b6722a..5cd4cc081b 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -5,6 +5,7 @@ "license": "Apache-2.0", "main": "dist/index.js", "module": "dist/esm/index.js", + "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-internal-build-package", "tsc": "tsc --build tsconfig.json" diff --git a/tools/test/package.json b/tools/test/package.json index 8354d50fb2..a04c31aa59 100644 --- a/tools/test/package.json +++ b/tools/test/package.json @@ -5,6 +5,7 @@ "license": "Apache-2.0", "main": "dist/index.js", "module": "dist/esm/index.js", + "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-internal-build-package", "tsc": "tsc --build tsconfig.json" diff --git a/tools/update/package.json b/tools/update/package.json index 38ad40acbc..81c3f08d8f 100644 --- a/tools/update/package.json +++ b/tools/update/package.json @@ -3,6 +3,7 @@ "version": "0.1.16", "description": "Updates all LeafyGreen UI packages to the latest version", "main": "dist/index.js", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "publishConfig": { "access": "public" diff --git a/tools/validate/package.json b/tools/validate/package.json index edb70a5b9e..7fba5bab99 100644 --- a/tools/validate/package.json +++ b/tools/validate/package.json @@ -4,6 +4,7 @@ "description": "Validation tools for LeafyGreen repositories", "main": "./dist/index.js", "module": "./dist/esm/index.js", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "publishConfig": { "access": "public" From 7f7fe79a82db3590f21fb7ff1f7a3ed59663391a Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 13:16:40 -0400 Subject: [PATCH 062/123] code postinstall --- .changeset/code-postinstall-hljs.md | 5 ++ packages/code/package.json | 4 +- packages/code/scripts/postinstall.ts | 61 +++++++++++++++++++ packages/code/scripts/tsconfig.json | 8 +++ packages/code/src/CopyButton/CopyButton.tsx | 3 +- .../utils/getTestUtils/getTestUtils.types.ts | 2 +- 6 files changed, 78 insertions(+), 5 deletions(-) create mode 100644 .changeset/code-postinstall-hljs.md create mode 100644 packages/code/scripts/postinstall.ts create mode 100644 packages/code/scripts/tsconfig.json diff --git a/.changeset/code-postinstall-hljs.md b/.changeset/code-postinstall-hljs.md new file mode 100644 index 0000000000..d2cd7cd27b --- /dev/null +++ b/.changeset/code-postinstall-hljs.md @@ -0,0 +1,5 @@ +--- +'@leafygreen-ui/code': minor +--- + +Adds postinstall script to ensure dependency types are resolved correctly diff --git a/packages/code/package.json b/packages/code/package.json index aaf2b868e2..0c687f9d09 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -9,7 +9,8 @@ "scripts": { "build": "lg build-package", "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "docs": "lg build-tsdoc", + "postinstall": "npx ts-node scripts/postinstall.ts" }, "keywords": [], "license": "Apache-2.0", @@ -40,7 +41,6 @@ "lodash": "^4.17.21", "polished": "^4.2.2" }, - "devDependencies": {}, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, diff --git a/packages/code/scripts/postinstall.ts b/packages/code/scripts/postinstall.ts new file mode 100644 index 0000000000..73652016b6 --- /dev/null +++ b/packages/code/scripts/postinstall.ts @@ -0,0 +1,61 @@ +/* eslint-disable no-console */ +import packageConfig from '@lg-tools/build/config/package.tsconfig.json'; +import fs from 'fs'; +import path from 'path'; + +const highlightJsPath = path.resolve( + __dirname, + '..', + 'node_modules', + 'highlight.js', +); + +const tsConfigPath = path.join(highlightJsPath, 'tsconfig.json'); + +/** + * This script adds a tsconfig.json file to the highlight.js module in node_modules, + * to ensure TypeScript can properly resolve types when importing highlight.js + * + * Hopefully this will be removed in the future. + */ +async function main() { + try { + if (fs.existsSync(highlightJsPath)) { + if (fs.existsSync(tsConfigPath)) { + // If the tsconfig.json file already exists, skip creating it + return; + } + + console.log('📦 Adding tsconfig.json to highlight.js module...'); + + // Define the tsconfig.json content + const tsconfig = { + ...packageConfig, + compilerOptions: { + ...packageConfig.compilerOptions, + baseUrl: './types', + }, + }; + + // Write the tsconfig.json file to the highlight.js directory + fs.writeFileSync(tsConfigPath, JSON.stringify(tsconfig, null, 2)); + + console.log(`✅ Successfully wrote file ${tsConfigPath}`); + } else { + console.log( + '⚠️ highlight.js module not found in node_modules. Skipping tsconfig.json creation.', + ); + } + } catch (error) { + console.error( + '❌ Error adding tsconfig.json to highlight.js module:', + error, + ); + process.exit(1); + } +} + +main().catch(error => { + console.error('❌ Unhandled error:', error); + process.exit(1); +}); diff --git a/packages/code/scripts/tsconfig.json b/packages/code/scripts/tsconfig.json new file mode 100644 index 0000000000..87becf0a5a --- /dev/null +++ b/packages/code/scripts/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "@lg-tools/build/config/script.tsconfig.json", + "compilerOptions": { + "noUnusedLocals": false, + "strict": true, + "baseUrl": ".", + } +} diff --git a/packages/code/src/CopyButton/CopyButton.tsx b/packages/code/src/CopyButton/CopyButton.tsx index 39b94f3a05..d4cf338bd5 100644 --- a/packages/code/src/CopyButton/CopyButton.tsx +++ b/packages/code/src/CopyButton/CopyButton.tsx @@ -62,8 +62,7 @@ function CopyButton({ onCopy, contents, className, ...rest }: CopyProps) { const clipboard = new ClipboardJS(buttonRef.current, { text: () => contents, - // @ts-expect-error TODO: types - container: portalContainer, + container: portalContainer ?? undefined, }); if (copied) { diff --git a/packages/code/src/utils/getTestUtils/getTestUtils.types.ts b/packages/code/src/utils/getTestUtils/getTestUtils.types.ts index a9ce6c6a85..f217fc11d7 100644 --- a/packages/code/src/utils/getTestUtils/getTestUtils.types.ts +++ b/packages/code/src/utils/getTestUtils/getTestUtils.types.ts @@ -1,5 +1,5 @@ import { GetTestUtilsReturnType as GetButtonTestUtilsReturnType } from '@leafygreen-ui/button'; -import { GetTestUtilsReturnType as GetSelectTestUtilsReturnType } from '@leafygreen-ui/select'; +import type { GetTestUtilsReturnType as GetSelectTestUtilsReturnType } from '@leafygreen-ui/select'; export interface TestUtilsReturnType { /** From b8cf683087ed7b983596a05f2f56d888f6be1f8e Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 13:49:18 -0400 Subject: [PATCH 063/123] fix builds --- pnpm-lock.yaml | 192 ++++++++---------------- tools/build/src/rollup/build-package.ts | 1 - tools/lint/package.json | 2 +- 3 files changed, 67 insertions(+), 128 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 04aa61aa38..6aa7dc14cc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3158,7 +3158,7 @@ importers: version: 7.25.9(@babel/core@7.23.2)(eslint@9.16.0) '@emotion/eslint-plugin': specifier: 11.12.0 - version: 11.12.0(eslint@9.16.0)(typescript@5.0.4) + version: 11.12.0(eslint@9.16.0)(typescript@5.8.3) '@eslint/compat': specifier: ^1.2.3 version: 1.2.3(eslint@9.16.0) @@ -3182,10 +3182,10 @@ importers: version: 2.7.3 '@typescript-eslint/eslint-plugin': specifier: 8.17.0 - version: 8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(typescript@5.0.4) + version: 8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.8.3))(eslint@9.16.0)(typescript@5.8.3) '@typescript-eslint/parser': specifier: 8.17.0 - version: 8.17.0(eslint@9.16.0)(typescript@5.0.4) + version: 8.17.0(eslint@9.16.0)(typescript@5.8.3) chalk: specifier: 4.1.2 version: 4.1.2 @@ -3200,10 +3200,10 @@ importers: version: 9.1.0(eslint@9.16.0) eslint-plugin-import: specifier: 2.31.0 - version: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0) + version: 2.31.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.8.3))(eslint@9.16.0) eslint-plugin-jest: specifier: 28.9.0 - version: 28.9.0(@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)))(typescript@5.0.4) + version: 28.9.0(@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.8.3))(eslint@9.16.0)(typescript@5.8.3))(eslint@9.16.0)(jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)))(typescript@5.8.3) eslint-plugin-jsx-a11y: specifier: 6.10.2 version: 6.10.2(eslint@9.16.0) @@ -3218,7 +3218,7 @@ importers: version: 12.1.1(eslint@9.16.0) eslint-plugin-storybook: specifier: 0.11.1 - version: 0.11.1(eslint@9.16.0)(typescript@5.0.4) + version: 0.11.1(eslint@9.16.0)(typescript@5.8.3) glob: specifier: 11.0.1 version: 11.0.1 @@ -3227,16 +3227,16 @@ importers: version: 15.13.0 npm-package-json-lint: specifier: 8.0.0 - version: 8.0.0(typescript@5.0.4) + version: 8.0.0(typescript@5.8.3) npm-package-json-lint-config-default: specifier: 7.0.1 - version: 7.0.1(npm-package-json-lint@8.0.0(typescript@5.0.4)) + version: 7.0.1(npm-package-json-lint@8.0.0(typescript@5.8.3)) prettier: specifier: 2.8.8 version: 2.8.8 typescript: - specifier: ~5.0.0 - version: 5.0.4 + specifier: ~5.8.0 + version: 5.8.3 tools/meta: dependencies: @@ -10221,11 +10221,6 @@ packages: resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==} engines: {node: '>= 0.4'} - typescript@5.0.4: - resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} - engines: {node: '>=12.20'} - hasBin: true - typescript@5.8.3: resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} engines: {node: '>=14.17'} @@ -11776,9 +11771,9 @@ snapshots: optionalDependencies: '@babel/core': 7.24.3 - '@emotion/eslint-plugin@11.12.0(eslint@9.16.0)(typescript@5.0.4)': + '@emotion/eslint-plugin@11.12.0(eslint@9.16.0)(typescript@5.8.3)': dependencies: - '@typescript-eslint/utils': 5.62.0(eslint@9.16.0)(typescript@5.0.4) + '@typescript-eslint/utils': 5.62.0(eslint@9.16.0)(typescript@5.8.3) eslint: 9.16.0 transitivePeerDependencies: - supports-color @@ -12073,7 +12068,7 @@ snapshots: jest-util: 29.7.0 slash: 3.0.0 - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12087,7 +12082,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -13529,34 +13524,34 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.0 - '@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(typescript@5.0.4)': + '@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.8.3))(eslint@9.16.0)(typescript@5.8.3)': dependencies: '@eslint-community/regexpp': 4.12.1 - '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@5.0.4) + '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@5.8.3) '@typescript-eslint/scope-manager': 8.17.0 - '@typescript-eslint/type-utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) - '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) + '@typescript-eslint/type-utils': 8.17.0(eslint@9.16.0)(typescript@5.8.3) + '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.8.3) '@typescript-eslint/visitor-keys': 8.17.0 eslint: 9.16.0 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.4.3(typescript@5.0.4) + ts-api-utils: 1.4.3(typescript@5.8.3) optionalDependencies: - typescript: 5.0.4 + typescript: 5.8.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4)': + '@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.8.3)': dependencies: '@typescript-eslint/scope-manager': 8.17.0 '@typescript-eslint/types': 8.17.0 - '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.0.4) + '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.8.3) '@typescript-eslint/visitor-keys': 8.17.0 debug: 4.3.4 eslint: 9.16.0 optionalDependencies: - typescript: 5.0.4 + typescript: 5.8.3 transitivePeerDependencies: - supports-color @@ -13570,15 +13565,15 @@ snapshots: '@typescript-eslint/types': 8.17.0 '@typescript-eslint/visitor-keys': 8.17.0 - '@typescript-eslint/type-utils@8.17.0(eslint@9.16.0)(typescript@5.0.4)': + '@typescript-eslint/type-utils@8.17.0(eslint@9.16.0)(typescript@5.8.3)': dependencies: - '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.0.4) - '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) + '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.8.3) + '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.8.3) debug: 4.3.4 eslint: 9.16.0 - ts-api-utils: 1.4.3(typescript@5.0.4) + ts-api-utils: 1.4.3(typescript@5.8.3) optionalDependencies: - typescript: 5.0.4 + typescript: 5.8.3 transitivePeerDependencies: - supports-color @@ -13586,7 +13581,7 @@ snapshots: '@typescript-eslint/types@8.17.0': {} - '@typescript-eslint/typescript-estree@5.62.0(typescript@5.0.4)': + '@typescript-eslint/typescript-estree@5.62.0(typescript@5.8.3)': dependencies: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 @@ -13594,13 +13589,13 @@ snapshots: globby: 11.1.0 is-glob: 4.0.3 semver: 7.6.3 - tsutils: 3.21.0(typescript@5.0.4) + tsutils: 3.21.0(typescript@5.8.3) optionalDependencies: - typescript: 5.0.4 + typescript: 5.8.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/typescript-estree@8.17.0(typescript@5.0.4)': + '@typescript-eslint/typescript-estree@8.17.0(typescript@5.8.3)': dependencies: '@typescript-eslint/types': 8.17.0 '@typescript-eslint/visitor-keys': 8.17.0 @@ -13609,20 +13604,20 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.4.3(typescript@5.0.4) + ts-api-utils: 1.4.3(typescript@5.8.3) optionalDependencies: - typescript: 5.0.4 + typescript: 5.8.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@5.62.0(eslint@9.16.0)(typescript@5.0.4)': + '@typescript-eslint/utils@5.62.0(eslint@9.16.0)(typescript@5.8.3)': dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.0.4) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.8.3) eslint: 9.16.0 eslint-scope: 5.1.1 semver: 7.6.3 @@ -13630,15 +13625,15 @@ snapshots: - supports-color - typescript - '@typescript-eslint/utils@8.17.0(eslint@9.16.0)(typescript@5.0.4)': + '@typescript-eslint/utils@8.17.0(eslint@9.16.0)(typescript@5.8.3)': dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.16.0) '@typescript-eslint/scope-manager': 8.17.0 '@typescript-eslint/types': 8.17.0 - '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.0.4) + '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.8.3) eslint: 9.16.0 optionalDependencies: - typescript: 5.0.4 + typescript: 5.8.3 transitivePeerDependencies: - supports-color @@ -14454,15 +14449,6 @@ snapshots: path-type: 4.0.0 yaml: 1.10.2 - cosmiconfig@8.3.6(typescript@5.0.4): - dependencies: - import-fresh: 3.3.0 - js-yaml: 4.1.0 - parse-json: 5.2.0 - path-type: 4.0.0 - optionalDependencies: - typescript: 5.0.4 - cosmiconfig@8.3.6(typescript@5.8.3): dependencies: import-fresh: 3.3.0 @@ -15118,17 +15104,17 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint@9.16.0): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint@9.16.0): dependencies: debug: 3.2.7 optionalDependencies: - '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@5.0.4) + '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@5.8.3) eslint: 9.16.0 eslint-import-resolver-node: 0.3.9 transitivePeerDependencies: - supports-color - eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0): + eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.8.3))(eslint@9.16.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -15139,7 +15125,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.16.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint-import-resolver-node@0.3.9)(eslint@9.16.0) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint@9.16.0) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -15151,19 +15137,19 @@ snapshots: string.prototype.trimend: 1.0.8 tsconfig-paths: 3.15.0 optionalDependencies: - '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@5.0.4) + '@typescript-eslint/parser': 8.17.0(eslint@9.16.0)(typescript@5.8.3) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack - supports-color - eslint-plugin-jest@28.9.0(@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)))(typescript@5.0.4): + eslint-plugin-jest@28.9.0(@typescript-eslint/eslint-plugin@8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.8.3))(eslint@9.16.0)(typescript@5.8.3))(eslint@9.16.0)(jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)))(typescript@5.8.3): dependencies: - '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) + '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.8.3) eslint: 9.16.0 optionalDependencies: - '@typescript-eslint/eslint-plugin': 8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.0.4))(eslint@9.16.0)(typescript@5.0.4) - jest: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) + '@typescript-eslint/eslint-plugin': 8.17.0(@typescript-eslint/parser@8.17.0(eslint@9.16.0)(typescript@5.8.3))(eslint@9.16.0)(typescript@5.8.3) + jest: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)) transitivePeerDependencies: - supports-color - typescript @@ -15217,10 +15203,10 @@ snapshots: dependencies: eslint: 9.16.0 - eslint-plugin-storybook@0.11.1(eslint@9.16.0)(typescript@5.0.4): + eslint-plugin-storybook@0.11.1(eslint@9.16.0)(typescript@5.8.3): dependencies: '@storybook/csf': 0.1.12 - '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.0.4) + '@typescript-eslint/utils': 8.17.0(eslint@9.16.0)(typescript@5.8.3) eslint: 9.16.0 ts-dedent: 2.2.0 transitivePeerDependencies: @@ -16165,16 +16151,16 @@ snapshots: - babel-plugin-macros - supports-color - jest-cli@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)): + jest-cli@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) + jest-config: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16206,7 +16192,7 @@ snapshots: - supports-color - ts-node - jest-config@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)): + jest-config@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16232,13 +16218,13 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.17.12 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3) transitivePeerDependencies: - babel-plugin-macros - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16264,7 +16250,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16551,12 +16537,12 @@ snapshots: merge-stream: 2.0.0 supports-color: 8.1.1 - jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)): + jest@29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4)) + jest-cli: 29.6.2(@types/node@20.17.12)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -17538,32 +17524,9 @@ snapshots: normalize-path@3.0.0: {} - npm-package-json-lint-config-default@7.0.1(npm-package-json-lint@8.0.0(typescript@5.0.4)): - dependencies: - npm-package-json-lint: 8.0.0(typescript@5.0.4) - - npm-package-json-lint@8.0.0(typescript@5.0.4): + npm-package-json-lint-config-default@7.0.1(npm-package-json-lint@8.0.0(typescript@5.8.3)): dependencies: - ajv: 6.12.6 - ajv-errors: 1.0.1(ajv@6.12.6) - chalk: 4.1.2 - cosmiconfig: 8.3.6(typescript@5.0.4) - debug: 4.3.4 - globby: 11.1.0 - ignore: 5.3.2 - is-plain-obj: 3.0.0 - jsonc-parser: 3.3.1 - log-symbols: 4.1.0 - meow: 9.0.0 - plur: 4.0.0 - semver: 7.6.3 - slash: 3.0.0 - strip-json-comments: 3.1.1 - type-fest: 4.30.0 - validate-npm-package-name: 5.0.1 - transitivePeerDependencies: - - supports-color - - typescript + npm-package-json-lint: 8.0.0(typescript@5.8.3) npm-package-json-lint@8.0.0(typescript@5.8.3): dependencies: @@ -18954,33 +18917,12 @@ snapshots: trough@2.1.0: {} - ts-api-utils@1.4.3(typescript@5.0.4): + ts-api-utils@1.4.3(typescript@5.8.3): dependencies: - typescript: 5.0.4 + typescript: 5.8.3 ts-dedent@2.2.0: {} - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.0.4): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.11 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 20.17.12 - acorn: 8.14.0 - acorn-walk: 8.3.3 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.0.4 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - optionalDependencies: - '@swc/core': 1.4.2(@swc/helpers@0.5.1) - optional: true - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.8.3): dependencies: '@cspotcode/source-map-support': 0.8.1 @@ -19061,10 +19003,10 @@ snapshots: tslib@2.6.2: {} - tsutils@3.21.0(typescript@5.0.4): + tsutils@3.21.0(typescript@5.8.3): dependencies: tslib: 1.14.1 - typescript: 5.0.4 + typescript: 5.8.3 tty-browserify@0.0.1: {} @@ -19160,8 +19102,6 @@ snapshots: possible-typed-array-names: 1.0.0 reflect.getprototypeof: 1.0.7 - typescript@5.0.4: {} - typescript@5.8.3: {} typescript@5.9.0-dev.20250423: {} diff --git a/tools/build/src/rollup/build-package.ts b/tools/build/src/rollup/build-package.ts index 71e08a282f..a198c58339 100644 --- a/tools/build/src/rollup/build-package.ts +++ b/tools/build/src/rollup/build-package.ts @@ -5,7 +5,6 @@ import { type BatchWarnings, type LoadConfigFile, loadConfigFile as _loadConfigFile, - // @ts-expect-error - types not declared correctly in rollup } from 'rollup/loadConfigFile'; import { findRollupConfigFile } from './findRollupConfigFile'; diff --git a/tools/lint/package.json b/tools/lint/package.json index 97a1e10c49..70108e3c15 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -44,7 +44,7 @@ "prettier": "2.8.8" }, "peerDependencies": { - "typescript": "~5.0.0" + "typescript": "~5.8.0" }, "typesVersions": {} } From ebe5b1f83b62e52896c8b38e873536bbcdbc49cc Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 17:42:41 -0400 Subject: [PATCH 064/123] Update prettier.ts --- tools/lint/src/prettier.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lint/src/prettier.ts b/tools/lint/src/prettier.ts index 6171a5261e..a65c04e61a 100644 --- a/tools/lint/src/prettier.ts +++ b/tools/lint/src/prettier.ts @@ -1,7 +1,7 @@ /* eslint-disable no-console */ import chalk from 'chalk'; import fs from 'fs/promises'; -import glob from 'glob'; +import { sync as globSync } from 'glob'; import prettierAPI from 'prettier'; import { @@ -35,7 +35,7 @@ export const runPrettier: LintFn = async ({ fix, verbose }) => { verbose && console.log(chalk.gray(`Ignoring patterns: ${ignorePattern.join(', ')}`)); - const files = glob.sync(pattern, { + const files = globSync(pattern, { ignore: ignorePattern, }); From 1f61c36d7981deee8c42d3b7f9a2fd9d4e3ba411 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 18:42:03 -0400 Subject: [PATCH 065/123] update each package's tsconfig --- charts/core/tsconfig.json | 18 ++++-------------- chat/lg-markdown/tsconfig.json | 19 ++++--------------- packages/code/tsconfig.json | 23 +++++------------------ 3 files changed, 13 insertions(+), 47 deletions(-) diff --git a/charts/core/tsconfig.json b/charts/core/tsconfig.json index 81fa506740..f130942974 100644 --- a/charts/core/tsconfig.json +++ b/charts/core/tsconfig.json @@ -1,23 +1,13 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "moduleResolution": "node", "paths": { - "@leafygreen-ui/icon/dist/*": [ - "../../packages/icon/src/generated/*" - ], - "@leafygreen-ui/*": [ - "../../packages/*/src" - ] + "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], + "@leafygreen-ui/*": ["../../packages/*/src"] } }, - "include": [ - "src/**/*" - ], - "exclude": [ - "**/*.spec.*", - "**/*.stories.*" - ], + "include": ["src/**/*"], + "exclude": ["**/*.spec.*", "**/*.stories.*"], "references": [ { "path": "../chart-card" diff --git a/chat/lg-markdown/tsconfig.json b/chat/lg-markdown/tsconfig.json index 8575400771..da4bc6e48b 100644 --- a/chat/lg-markdown/tsconfig.json +++ b/chat/lg-markdown/tsconfig.json @@ -1,24 +1,13 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "moduleResolution": "node", - "paths": { - "@leafygreen-ui/icon/dist/*": [ - "../../packages/icon/src/generated/*" - ], - "@leafygreen-ui/*": [ - "../../packages/*/src" - ] + "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], + "@leafygreen-ui/*": ["../../packages/*/src"] } }, - "include": [ - "src/**/*" - ], - "exclude": [ - "**/*.spec.*", - "**/*.stories.*" - ], + "include": ["src/**/*"], + "exclude": ["**/*.spec.*", "**/*.stories.*"], "references": [ { "path": "../../packages/code" diff --git a/packages/code/tsconfig.json b/packages/code/tsconfig.json index 514354c813..8966e9259e 100644 --- a/packages/code/tsconfig.json +++ b/packages/code/tsconfig.json @@ -1,27 +1,14 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "moduleResolution": "node", "paths": { - "@leafygreen-ui/icon/dist/*": [ - "../icon/src/generated/*" - ], - "@leafygreen-ui/*": [ - "../*/src" - ], - "highlight.js": [ - "./node_modules/highlight.js" - ] + "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], + "@leafygreen-ui/*": ["../*/src"], + "highlight.js": ["./node_modules/highlight.js"] } }, - "include": [ - "src/**/*" - ], - "exclude": [ - "**/*.spec.*", - "**/*.stories.*", - "node_modules" - ], + "include": ["src/**/*"], + "exclude": ["**/*.spec.*", "**/*.stories.*", "node_modules"], "references": [ { "path": "../a11y" From 57e3404937b8595adbdf089c6682a8d1e232df85 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 19:03:35 -0400 Subject: [PATCH 066/123] updates `types` source in package.json --- .changeset/itchy-mice-cry.md | 5 +++++ tools/create/package.json | 1 + tools/update/package.json | 1 + 3 files changed, 7 insertions(+) create mode 100644 .changeset/itchy-mice-cry.md diff --git a/.changeset/itchy-mice-cry.md b/.changeset/itchy-mice-cry.md new file mode 100644 index 0000000000..0f79543b0c --- /dev/null +++ b/.changeset/itchy-mice-cry.md @@ -0,0 +1,5 @@ +--- +'@lg-tools/lint': patch +--- + +Updates `typescript` peerDepedency to v5.8 diff --git a/tools/create/package.json b/tools/create/package.json index 7b8a98cc5a..21894eb6dd 100644 --- a/tools/create/package.json +++ b/tools/create/package.json @@ -4,6 +4,7 @@ "description": "Creates a new LeafyGreen packages", "main": "dist/index.js", "module": "dist/esm/index.js", + "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { "build": "lg-internal-build-package", diff --git a/tools/update/package.json b/tools/update/package.json index 81c3f08d8f..14c4160abe 100644 --- a/tools/update/package.json +++ b/tools/update/package.json @@ -3,6 +3,7 @@ "version": "0.1.16", "description": "Updates all LeafyGreen UI packages to the latest version", "main": "dist/index.js", + "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "publishConfig": { From f5cbf133e2a6a23bafec111311af65937d570401 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 19:04:29 -0400 Subject: [PATCH 067/123] downlevel 5.0 --- tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts | 1 + tools/build/src/typescript/downlevel/downlevel-dts.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts b/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts index d8f9f2c3ed..90aef9184c 100644 --- a/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts +++ b/tools/build/src/typescript/downlevel/TYPES_VERSIONS.ts @@ -6,6 +6,7 @@ interface DownlevelVersion { } // TS Downlevel mapping +// Note, conditions should be listed in order (i.e. as if they were multiple cascading `if` statements) export const DOWNLEVEL_VERSIONS = [ // No downlevelling for now ] as const satisfies Readonly>; diff --git a/tools/build/src/typescript/downlevel/downlevel-dts.ts b/tools/build/src/typescript/downlevel/downlevel-dts.ts index 0a5e4a067a..5d4a6a0d00 100644 --- a/tools/build/src/typescript/downlevel/downlevel-dts.ts +++ b/tools/build/src/typescript/downlevel/downlevel-dts.ts @@ -30,7 +30,7 @@ export async function downlevelDts( const packageDir = process.cwd(); // Default to types directory if not specified - const typesDirPath = path.resolve(packageDir, 'dist'); + const typesDirPath = path.resolve(packageDir, 'dist/types'); // Default output directory const defaultOutDir = `ts${target}`; From 0edb9deb661c61dee95da290b470277ad12c0dbb Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 22:38:28 -0400 Subject: [PATCH 068/123] use getPackageRoot in build & lint --- .../build/src/rollup/findRollupConfigFile.ts | 22 +++++++++++++++++-- tools/lint/src/config.ts | 13 ++++++----- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/tools/build/src/rollup/findRollupConfigFile.ts b/tools/build/src/rollup/findRollupConfigFile.ts index 53a8457019..973dc3b2ed 100644 --- a/tools/build/src/rollup/findRollupConfigFile.ts +++ b/tools/build/src/rollup/findRollupConfigFile.ts @@ -10,12 +10,13 @@ export const findRollupConfigFile = ( ) => { const packageDir = process.cwd(); const workspaceRoot = getRepositoryRoot(); + const buildPackageDir = getBuildPackageDir(__dirname); const packageRollupConfigPath = path.join(packageDir, 'rollup.config.mjs'); const repoRollupConfigPath = path.join(workspaceRoot, 'rollup.config.mjs'); const defaultRollupConfigPath = path.join( - __dirname, // __dirname is `dist` - '../config/rollup.config.mjs', + buildPackageDir, + './config/rollup.config.mjs', ); if (fse.existsSync(packageRollupConfigPath)) { @@ -57,3 +58,20 @@ export const getRepositoryRoot = (): string => { return ''; } }; + +export const getBuildPackageDir = (startDir: string): string => { + let currentDir = startDir; + + while (currentDir !== '/') { + const packageJsonPath = path.join(currentDir, 'package.json'); + + if (fse.existsSync(packageJsonPath)) { + return currentDir; + } + + // Move up one directory + currentDir = path.dirname(currentDir); + } + + return '/'; +}; diff --git a/tools/lint/src/config.ts b/tools/lint/src/config.ts index 0cc587d750..23dafd9ebe 100644 --- a/tools/lint/src/config.ts +++ b/tools/lint/src/config.ts @@ -1,3 +1,4 @@ +import { getPackageRoot } from '@lg-tools/meta'; import { ESLint } from 'eslint'; import path from 'path'; @@ -7,8 +8,8 @@ import path from 'path'; /** ESLint config path */ export const eslintConfigPath = path.resolve( - __dirname, - '../config/eslint.config.mjs', + getPackageRoot(__dirname), + './config/eslint.config.mjs', ); export const esLintExtensions = ['ts', 'tsx']; @@ -26,8 +27,8 @@ export function createESLintInstance(options: Partial): ESLint { ***** Prettier **** *******************/ export const prettierConfigPath = path.resolve( - __dirname, - '../config/prettier.config.js', + getPackageRoot(__dirname), + './config/prettier.config.js', ); export const prettierExtensions = [ @@ -47,6 +48,6 @@ export const prettierIgnorePath = path.resolve( *** packageJson *** *******************/ export const npmPkgLintConfigPath = path.resolve( - __dirname, - '../config/npmpackagejsonlintrc.config.js', + getPackageRoot(__dirname), + './config/npmpackagejsonlintrc.config.js', ); From 9cedcf77a1e178b99764015c7a727d4bd459830c Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 22:38:45 -0400 Subject: [PATCH 069/123] update umd build dir --- tools/build/config/rollup.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/config/rollup.config.mjs b/tools/build/config/rollup.config.mjs index cca8754ebf..80ce438a52 100644 --- a/tools/build/config/rollup.config.mjs +++ b/tools/build/config/rollup.config.mjs @@ -98,7 +98,7 @@ const external = [/node_modules/]; const moduleFormatToDirectory = { esm: 'dist/esm/', - umd: 'dist', + umd: 'dist/umd', }; const configForFormat = format => ({ From 672f22f664eff8d88cf0281f1a160ed01c30f957 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 22:39:43 -0400 Subject: [PATCH 070/123] updates 'main' entry in package.json --- charts/chart-card/package.json | 2 +- charts/colors/package.json | 2 +- charts/core/package.json | 2 +- charts/drag-provider/package.json | 2 +- charts/legend/package.json | 2 +- charts/series-provider/package.json | 2 +- chat/avatar/package.json | 2 +- chat/chat-disclaimer/package.json | 2 +- chat/chat-window/package.json | 2 +- chat/fixed-chat-window/package.json | 2 +- chat/input-bar/package.json | 2 +- chat/leafygreen-chat-provider/package.json | 2 +- chat/lg-markdown/package.json | 2 +- chat/message-feed/package.json | 2 +- chat/message-feedback/package.json | 2 +- chat/message-prompts/package.json | 2 +- chat/message-rating/package.json | 2 +- chat/message/package.json | 2 +- chat/rich-links/package.json | 2 +- chat/title-bar/package.json | 2 +- packages/a11y/package.json | 2 +- packages/avatar/package.json | 2 +- packages/badge/package.json | 2 +- packages/banner/package.json | 2 +- packages/box/package.json | 2 +- packages/button/package.json | 2 +- packages/callout/package.json | 2 +- packages/card/package.json | 2 +- packages/checkbox/package.json | 2 +- packages/chip/package.json | 2 +- packages/code/package.json | 2 +- packages/combobox/package.json | 2 +- packages/confirmation-modal/package.json | 2 +- packages/copyable/package.json | 2 +- packages/date-picker/package.json | 2 +- packages/date-utils/package.json | 2 +- packages/descendants/package.json | 2 +- packages/drawer/package.json | 2 +- packages/emotion/package.json | 2 +- packages/empty-state/package.json | 2 +- packages/expandable-card/package.json | 2 +- packages/form-field/package.json | 2 +- packages/form-footer/package.json | 2 +- packages/gallery-indicator/package.json | 2 +- packages/guide-cue/package.json | 2 +- packages/hooks/package.json | 2 +- packages/icon-button/package.json | 2 +- packages/icon/package.json | 2 +- packages/info-sprinkle/package.json | 2 +- packages/inline-definition/package.json | 2 +- packages/input-option/package.json | 2 +- packages/leafygreen-provider/package.json | 2 +- packages/lib/package.json | 2 +- packages/loading-indicator/package.json | 2 +- packages/logo/package.json | 2 +- packages/marketing-modal/package.json | 2 +- packages/menu/package.json | 2 +- packages/modal/package.json | 2 +- packages/number-input/package.json | 2 +- packages/ordered-list/package.json | 2 +- packages/pagination/package.json | 2 +- packages/palette/package.json | 2 +- packages/password-input/package.json | 2 +- packages/pipeline/package.json | 2 +- packages/polymorphic/package.json | 2 +- packages/popover/package.json | 2 +- packages/portal/package.json | 2 +- packages/radio-box-group/package.json | 2 +- packages/radio-group/package.json | 2 +- packages/ripple/package.json | 2 +- packages/search-input/package.json | 2 +- packages/segmented-control/package.json | 2 +- packages/select/package.json | 2 +- packages/side-nav/package.json | 2 +- packages/skeleton-loader/package.json | 2 +- packages/split-button/package.json | 2 +- packages/stepper/package.json | 2 +- packages/table/package.json | 2 +- packages/tabs/package.json | 2 +- packages/testing-lib/package.json | 2 +- packages/text-area/package.json | 2 +- packages/text-input/package.json | 2 +- packages/toast/package.json | 2 +- packages/toggle/package.json | 2 +- packages/tokens/package.json | 2 +- packages/tooltip/package.json | 2 +- packages/typography/package.json | 2 +- tools/cli/package.json | 2 +- tools/codemods/package.json | 2 +- tools/create/package.json | 4 ++-- tools/create/src/templates/component/package.json.ts | 2 +- tools/install/package.json | 2 +- tools/link/package.json | 4 ++-- tools/lint/package.json | 5 +++-- tools/meta/package.json | 2 +- tools/slackbot/package.json | 4 ++-- tools/storybook-addon/package.json | 2 +- tools/storybook-decorators/package.json | 2 +- tools/storybook-utils/package.json | 2 +- tools/test-harnesses/package.json | 4 ++-- tools/test/package.json | 4 ++-- tools/update/package.json | 4 ++-- tools/validate/package.json | 2 +- 103 files changed, 111 insertions(+), 110 deletions(-) diff --git a/charts/chart-card/package.json b/charts/chart-card/package.json index 417a5e3bb4..97d1e401f1 100644 --- a/charts/chart-card/package.json +++ b/charts/chart-card/package.json @@ -2,7 +2,7 @@ "name": "@lg-charts/chart-card", "version": "0.2.4", "description": "lg-charts ChartCard", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/charts/colors/package.json b/charts/colors/package.json index a81fe62e10..7e4dcecbf2 100644 --- a/charts/colors/package.json +++ b/charts/colors/package.json @@ -2,7 +2,7 @@ "name": "@lg-charts/colors", "version": "0.2.4", "description": "lg-charts colors", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/charts/core/package.json b/charts/core/package.json index c1e55fbcf0..9071dacbaa 100644 --- a/charts/core/package.json +++ b/charts/core/package.json @@ -2,7 +2,7 @@ "name": "@lg-charts/core", "version": "0.17.1", "description": "lg-charts Core Chart Components", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index 91f01ed27a..16d756b495 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -2,7 +2,7 @@ "name": "@lg-charts/drag-provider", "version": "0.2.4", "description": "lg-charts DragProvider Component", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/charts/legend/package.json b/charts/legend/package.json index e5eb3b79ef..45acd12ca8 100644 --- a/charts/legend/package.json +++ b/charts/legend/package.json @@ -2,7 +2,7 @@ "name": "@lg-charts/legend", "version": "0.2.3", "description": "lg-charts Legend", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index 89610e2f0f..05159ef7c1 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -2,7 +2,7 @@ "name": "@lg-charts/series-provider", "version": "0.2.2", "description": "lg-charts SeriesProvider Component", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/chat/avatar/package.json b/chat/avatar/package.json index 69b1a528b2..c72379e2fd 100644 --- a/chat/avatar/package.json +++ b/chat/avatar/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/avatar", "version": "4.0.10", "description": "lg-chat Avatar", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/chat/chat-disclaimer/package.json b/chat/chat-disclaimer/package.json index 358bf9afdd..969d2e5c42 100644 --- a/chat/chat-disclaimer/package.json +++ b/chat/chat-disclaimer/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/chat-disclaimer", "version": "3.0.17", "description": "LeafyGreen UI Kit Chat Disclaimer", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index bba6420213..733a59a359 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/chat-window", "version": "3.0.13", "description": "lg-chat Chat Window", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/chat/fixed-chat-window/package.json b/chat/fixed-chat-window/package.json index 03b2593924..6b3e36fa8a 100644 --- a/chat/fixed-chat-window/package.json +++ b/chat/fixed-chat-window/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/fixed-chat-window", "version": "3.0.14", "description": "LeafyGreen UI Kit Fixed Chat Window", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index f449c175b9..bdff170694 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/input-bar", "version": "7.0.13", "description": "lg-chat Input Bar", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index 794d53d6e8..b5d1d1c573 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/leafygreen-chat-provider", "version": "3.0.2", "description": "lg-chat LeafyGreen Chat Context", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index d60b1784e9..b80ad82551 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/lg-markdown", "version": "3.0.14", "description": "lg-chat LGMarkdown", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index 436effd379..44fe45051e 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/message-feed", "version": "4.1.12", "description": "lg-chat Message Feed", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index bb113f1610..fe00b1706f 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/message-feedback", "version": "4.0.8", "description": "LeafyGreen UI Kit Message Feedback", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/chat/message-prompts/package.json b/chat/message-prompts/package.json index 9c8ead10e5..de4be4b459 100644 --- a/chat/message-prompts/package.json +++ b/chat/message-prompts/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/message-prompts", "version": "3.0.11", "description": "LeafyGreen UI Kit Message Prompts", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index c2a36a3ba6..60a51d18dd 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/message-rating", "version": "3.0.11", "description": "lg-chat Message Rating", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/chat/message/package.json b/chat/message/package.json index 1f00cb6566..7da9956e5c 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/message", "version": "5.0.14", "description": "lg-chat Message", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/chat/rich-links/package.json b/chat/rich-links/package.json index 0d8db2d04b..f0559e6e60 100644 --- a/chat/rich-links/package.json +++ b/chat/rich-links/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/rich-links", "version": "2.0.11", "description": "lg-chat Rich Links", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index a1768c3ee6..0ab1df3111 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -2,7 +2,7 @@ "name": "@lg-chat/title-bar", "version": "3.0.13", "description": "lg-chat Title Bar", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 377d6af97a..2a699f6f3e 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/a11y", "version": "2.0.7", "description": "leafyGreen UI Kit A11y", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/avatar/package.json b/packages/avatar/package.json index 1bcd365c01..83ec14bbeb 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/avatar", "version": "2.0.9", "description": "LeafyGreen UI Avatar", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/badge/package.json b/packages/badge/package.json index e04d772ef9..a9a7184e97 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/badge", "version": "9.0.9", "description": "leafyGreen UI Kit Badge", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/banner/package.json b/packages/banner/package.json index fcdb505b18..b11a8d4b98 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/banner", "version": "9.0.12", "description": "leafyGreen UI Kit Banner", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/box/package.json b/packages/box/package.json index 9d03bbbb29..3b042e2539 100644 --- a/packages/box/package.json +++ b/packages/box/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/box", "version": "4.0.3", "description": "leafyGreen UI Kit Box", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/button/package.json b/packages/button/package.json index eee5b5d071..f544f83a43 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/button", "version": "23.1.6", "description": "leafyGreen UI Kit Button", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/callout/package.json b/packages/callout/package.json index 5831381b68..8419f50898 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/callout", "version": "11.0.11", "description": "leafyGreen UI Kit Callout", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/card/package.json b/packages/card/package.json index bd301c9a44..ab623530a5 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/card", "version": "12.0.9", "description": "leafyGreen UI Kit Card", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index ac0f5aac14..461f20e56e 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/checkbox", "version": "15.2.3", "description": "LeafyGreen UI Kit Checkbox", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/chip/package.json b/packages/chip/package.json index e1436c5e8b..dbcc9c44b1 100644 --- a/packages/chip/package.json +++ b/packages/chip/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/chip", "version": "3.0.11", "description": "LeafyGreen UI Kit Chip", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/packages/code/package.json b/packages/code/package.json index 0c687f9d09..00a0160fc6 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/code", "version": "18.0.3", "description": "leafyGreen UI Kit Code Blocks", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/combobox/package.json b/packages/combobox/package.json index ae3a1571ad..5606925b8e 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/combobox", "version": "11.0.16", "description": "leafyGreen UI Kit Combobox", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index d9035ee230..546960f7c2 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/confirmation-modal", "version": "7.0.9", "description": "leafyGreen UI Kit Confirmation Modal", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/copyable/package.json b/packages/copyable/package.json index 23db38340f..f35086463e 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/copyable", "version": "10.0.12", "description": "leafyGreen UI Kit Copyable", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index 04ecc8cfd9..f7f10ff4b7 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -3,7 +3,7 @@ "version": "3.0.14", "description": "LeafyGreen UI Kit Date Picker", "license": "Apache-2.0", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index c1b4045bdc..919b66a019 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/date-utils", "version": "0.2.3", "description": "LeafyGreen UI Kit Date Utils", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/packages/descendants/package.json b/packages/descendants/package.json index e5b8445f00..8c7f798c57 100644 --- a/packages/descendants/package.json +++ b/packages/descendants/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/descendants", "version": "2.1.5", "description": "LeafyGreen UI Kit Descendants", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/packages/drawer/package.json b/packages/drawer/package.json index 71a5741f32..fb57de2359 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/drawer", "version": "2.0.4", "description": "LeafyGreen UI Kit Drawer", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/packages/emotion/package.json b/packages/emotion/package.json index f1b6d421d3..3784030660 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/emotion", "version": "4.1.1", "description": "leafyGreen UI Kit's Custom Instance of Emotion", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index 3998fe05c8..dff50ae4ac 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/empty-state", "version": "2.0.13", "description": "leafyGreen UI Kit Empty State", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index 589e1cb703..0584461267 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/expandable-card", "version": "4.0.12", "description": "leafyGreen UI Kit Expandable Card", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/form-field/package.json b/packages/form-field/package.json index 8830dea264..a4125c2f11 100644 --- a/packages/form-field/package.json +++ b/packages/form-field/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/form-field", "version": "2.0.11", "description": "LeafyGreen UI Kit Form Field", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index f9287687b7..c5f4096a34 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/form-footer", "version": "6.0.8", "description": "leafyGreen UI Kit Form Footer", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index 0b7a477d3c..4bdbfb3ca2 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/gallery-indicator", "version": "1.0.8", "description": "LeafyGreen UI Kit Gallery Indicator", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index 68f066349d..c98dbc7a61 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/guide-cue", "version": "7.0.13", "description": "leafyGreen UI Kit GuideCue", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 953624600a..33140a51b2 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/hooks", "version": "8.4.1", "description": "LeafyGreen UI Kit Custom Hooks", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index bdb1b4475f..283f6bc972 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/icon-button", "version": "16.0.11", "description": "LeafyGreen UI Kit Icon Buttons", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/icon/package.json b/packages/icon/package.json index bd625eba76..a722e74faf 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/icon", "version": "13.3.0", "description": "LeafyGreen UI Kit Icons", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/info-sprinkle/package.json b/packages/info-sprinkle/package.json index 589fbb2d49..109554c612 100644 --- a/packages/info-sprinkle/package.json +++ b/packages/info-sprinkle/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/info-sprinkle", "version": "4.0.12", "description": "LeafyGreen UI Kit Info Sprinkle", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index 4e9f4a9f9d..879705dc0c 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/inline-definition", "version": "8.0.11", "description": "leafyGreen UI Kit Inline Definition", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/input-option/package.json b/packages/input-option/package.json index 2210aaf016..7d8b1fd45e 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/input-option", "version": "3.0.11", "description": "leafyGreen UI Kit Internal Input Option", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index 4a63413b84..2eb225bd02 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/leafygreen-provider", "version": "4.0.7", "description": "LeafyGreen UI Context Provider", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/lib/package.json b/packages/lib/package.json index a576f478ba..3f48daf400 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/lib", "version": "14.2.0", "description": "leafyGreen UI Kit Internal Library", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index 9a17d2eb18..4117eb7ebe 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/loading-indicator", "version": "3.0.11", "description": "leafyGreen UI Kit Loading Indicator", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/logo/package.json b/packages/logo/package.json index 8bae83a998..36c6543d3e 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/logo", "version": "10.0.6", "description": "LeafyGreen UI Kit Logos", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index 6812b2ba3c..9e786b581f 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/marketing-modal", "version": "5.0.14", "description": "leafyGreen UI Kit Marketing Modal", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/menu/package.json b/packages/menu/package.json index a22cd45fa1..f716a86dbf 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/menu", "version": "29.0.3", "description": "LeafyGreen UI Kit Menu", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/modal/package.json b/packages/modal/package.json index 17f86b9e1a..fb3ac3e16b 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/modal", "version": "17.1.6", "description": "LeafyGreen UI Kit Modal", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/number-input/package.json b/packages/number-input/package.json index 80ec8f80d4..0d2b4d394f 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/number-input", "version": "4.1.5", "description": "leafyGreen UI Kit Number Input", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/ordered-list/package.json b/packages/ordered-list/package.json index 9579114ece..447791a4c4 100644 --- a/packages/ordered-list/package.json +++ b/packages/ordered-list/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/ordered-list", "version": "2.0.12", "description": "LeafyGreen UI Kit Ordered List", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/packages/pagination/package.json b/packages/pagination/package.json index dc89af6a88..413dc25a6f 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/pagination", "version": "3.0.13", "description": "leafyGreen UI Kit Pagination", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/palette/package.json b/packages/palette/package.json index 8f7c513f0c..8c2dfef743 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/palette", "version": "4.1.4", "description": "LeafyGreen UI Palettes", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/password-input/package.json b/packages/password-input/package.json index a8ec7d9820..009f504b69 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/password-input", "version": "3.0.12", "description": "leafyGreen UI Kit Password Input", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index 55984064a8..feeaff4ec6 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/pipeline", "version": "7.0.12", "description": "LeafyGreen UI Kit Pipeline", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index 9018f23d4e..46a50aaad0 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/polymorphic", "version": "2.0.9", "description": "LeafyGreen UI Kit Polymorphic", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/popover/package.json b/packages/popover/package.json index b5173da939..c528321b74 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/popover", "version": "13.0.10", "description": "LeafyGreen UI Kit Popover", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/portal/package.json b/packages/portal/package.json index 3b48185f65..2b4f6ddac4 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/portal", "version": "6.0.6", "description": "LeafyGreen UI Kit Portal", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index ada442ba51..8176a6bdc1 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/radio-box-group", "version": "14.0.10", "description": "leafyGreen UI Kit RadioBoxGroup", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index 91368185f2..c2d8bc441d 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/radio-group", "version": "12.0.11", "description": "leafyGreen UI Kit RadioGroup", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 73a3acbd4b..808b7a277e 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/ripple", "version": "1.1.20", "description": "leafyGreen UI Kit Ripple", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/search-input/package.json b/packages/search-input/package.json index f52cc1557f..5c81dff496 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/search-input", "version": "5.0.12", "description": "leafyGreen UI Kit Search Input", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index c46cc5ada4..93797cd21b 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/segmented-control", "version": "10.0.12", "description": "leafyGreen UI Kit Segmented Control", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/select/package.json b/packages/select/package.json index f8681002f9..b20e1d77cf 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/select", "version": "14.1.6", "description": "leafyGreen UI Kit Select", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index efb9612eaf..6191c7aacb 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/side-nav", "version": "16.0.12", "description": "leafyGreen UI Kit Side Nav", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index 82628ec98e..7fd09b8fdd 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/skeleton-loader", "version": "2.0.11", "description": "leafyGreen UI Kit Skeleton Loader", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/split-button/package.json b/packages/split-button/package.json index 76a38b4431..a2aad2b525 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/split-button", "version": "4.1.13", "description": "leafyGreen UI Kit Split Button", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/stepper/package.json b/packages/stepper/package.json index bfb7ca007b..329aec68c5 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/stepper", "version": "5.0.11", "description": "leafyGreen UI Kit Stepper", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/table/package.json b/packages/table/package.json index 90a153be9b..0a62ae7613 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/table", "version": "13.1.8", "description": "leafyGreen UI Kit Table", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 82749aa153..a92eac6ed4 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/tabs", "version": "14.2.4", "description": "leafyGreen UI Kit Tabs", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index db4d0e5a9a..a393202581 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/testing-lib", "version": "0.7.4", "description": "leafyGreen UI Kit Internal Testing Library", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/text-area/package.json b/packages/text-area/package.json index 8438a76d83..67e558ff87 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/text-area", "version": "10.0.11", "description": "leafyGreen UI Kit Text Area", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/text-input/package.json b/packages/text-input/package.json index 7578cbcf58..6a670aff86 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/text-input", "version": "14.0.11", "description": "leafyGreen UI Kit Text Input", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/toast/package.json b/packages/toast/package.json index 1dd2561790..8f88b20b4a 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/toast", "version": "7.0.13", "description": "leafyGreen UI Kit Toast", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/toggle/package.json b/packages/toggle/package.json index d6060970ce..e88c1d7a46 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/toggle", "version": "11.0.9", "description": "LeafyGreen UI Kit Toggle", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 050731c366..cda3a530d5 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/tokens", "version": "2.12.2", "description": "leafyGreen UI Kit Tokens", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index ac19c7b00f..f59f885c26 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/tooltip", "version": "13.0.11", "description": "LeafyGreen UI Kit Tooltip", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/packages/typography/package.json b/packages/typography/package.json index 4da4db06d0..f5bbf547b2 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -2,7 +2,7 @@ "name": "@leafygreen-ui/typography", "version": "20.1.8", "description": "leafyGreen UI Kit Typography", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, diff --git a/tools/cli/package.json b/tools/cli/package.json index 2e22d3ee6e..18f4532fc7 100644 --- a/tools/cli/package.json +++ b/tools/cli/package.json @@ -3,7 +3,7 @@ "version": "0.9.0", "description": "Command Line tools for LeafyGreen", "license": "Apache-2.0", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "publishConfig": { diff --git a/tools/codemods/package.json b/tools/codemods/package.json index 6410449f18..603043fe12 100644 --- a/tools/codemods/package.json +++ b/tools/codemods/package.json @@ -2,7 +2,7 @@ "name": "@lg-tools/codemods", "version": "0.1.5", "description": "Codemods for LeafyGreen UI", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/tools/create/package.json b/tools/create/package.json index 21894eb6dd..9ae763a5df 100644 --- a/tools/create/package.json +++ b/tools/create/package.json @@ -2,8 +2,8 @@ "name": "@lg-tools/create", "version": "0.3.1", "description": "Creates a new LeafyGreen packages", - "main": "dist/index.js", - "module": "dist/esm/index.js", + "main": "./dist/umd/index.js", + "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { diff --git a/tools/create/src/templates/component/package.json.ts b/tools/create/src/templates/component/package.json.ts index e5da06062c..cef5b95eec 100644 --- a/tools/create/src/templates/component/package.json.ts +++ b/tools/create/src/templates/component/package.json.ts @@ -12,7 +12,7 @@ export const pkgJson = ({ "name": "${scope}/${packageNameKebab}", "version": "0.1.0", "description": "LeafyGreen UI Kit ${packageNameTitle}", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/tools/install/package.json b/tools/install/package.json index 33078a6a66..45c76c7c50 100644 --- a/tools/install/package.json +++ b/tools/install/package.json @@ -2,7 +2,7 @@ "name": "@lg-tools/install", "version": "0.2.0", "description": "LeafyGreen UI Kit Install", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/tools/link/package.json b/tools/link/package.json index 7a0dfe53a0..5278a0fa0e 100644 --- a/tools/link/package.json +++ b/tools/link/package.json @@ -3,8 +3,8 @@ "version": "0.2.11", "description": "Tools for linking LeafyGreen packages", "license": "Apache-2.0", - "main": "dist/index.js", - "module": "dist/esm/index.js", + "main": "./dist/umd/index.js", + "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-internal-build-package", diff --git a/tools/lint/package.json b/tools/lint/package.json index 70108e3c15..910764ec82 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -2,8 +2,8 @@ "name": "@lg-tools/lint", "version": "2.1.1", "description": "Lint rules & config for LeafyGreen repositories", - "main": "dist/index.js", - "module": "dist/esm/index.js", + "main": "./dist/umd/index.js", + "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "publishConfig": { @@ -21,6 +21,7 @@ "@eslint/eslintrc": "^3.2.0", "@eslint/js": "^9.16.0", "@lg-tools/build": "workspace:^", + "@lg-tools/meta": "workspace:^", "@types/cli-progress": "^3.11.6", "@types/cross-spawn": "6.0.2", "@types/prettier": "^2.7.0", diff --git a/tools/meta/package.json b/tools/meta/package.json index c7599977a2..086da0d492 100644 --- a/tools/meta/package.json +++ b/tools/meta/package.json @@ -2,7 +2,7 @@ "name": "@lg-tools/meta", "version": "0.5.0", "description": "Utilities for managing LeafyGreen repositories", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/tools/slackbot/package.json b/tools/slackbot/package.json index 1ae487ccc8..7274b5b8b3 100644 --- a/tools/slackbot/package.json +++ b/tools/slackbot/package.json @@ -6,8 +6,8 @@ "bin": { "lg-slackbot": "./bin/slackbot.js" }, - "main": "dist/index.js", - "module": "dist/esm/index.js", + "main": "./dist/umd/index.js", + "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-internal-build-package", diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index 60fca643be..21254c6119 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -2,7 +2,7 @@ "name": "@lg-tools/storybook-addon", "version": "0.4.0", "description": "Storybook Addon for LeafyGreen UI Kit", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/tools/storybook-decorators/package.json b/tools/storybook-decorators/package.json index 20a30995ae..d69e5d2dfa 100644 --- a/tools/storybook-decorators/package.json +++ b/tools/storybook-decorators/package.json @@ -2,7 +2,7 @@ "name": "@lg-tools/storybook-decorators", "version": "0.4.8", "description": "Storybook decorators used in LeafyGreen repos", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/tools/storybook-utils/package.json b/tools/storybook-utils/package.json index 183939fca2..d14a21f3d2 100644 --- a/tools/storybook-utils/package.json +++ b/tools/storybook-utils/package.json @@ -2,7 +2,7 @@ "name": "@lg-tools/storybook-utils", "version": "0.2.3", "description": "Storybook Utilities for LeafyGreen UI", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index 5cd4cc081b..f64321f917 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -3,8 +3,8 @@ "version": "0.2.0", "description": "Test harnesses for LeafyGreen repositories", "license": "Apache-2.0", - "main": "dist/index.js", - "module": "dist/esm/index.js", + "main": "./dist/umd/index.js", + "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-internal-build-package", diff --git a/tools/test/package.json b/tools/test/package.json index a04c31aa59..e9852e0bd3 100644 --- a/tools/test/package.json +++ b/tools/test/package.json @@ -3,8 +3,8 @@ "version": "0.4.17", "description": "Jest setup & config for LeafyGreen repositories", "license": "Apache-2.0", - "main": "dist/index.js", - "module": "dist/esm/index.js", + "main": "./dist/umd/index.js", + "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { "build": "lg-internal-build-package", diff --git a/tools/update/package.json b/tools/update/package.json index 14c4160abe..99fcc5bedd 100644 --- a/tools/update/package.json +++ b/tools/update/package.json @@ -2,8 +2,8 @@ "name": "@lg-tools/update", "version": "0.1.16", "description": "Updates all LeafyGreen UI packages to the latest version", - "main": "dist/index.js", - "module": "dist/esm/index.js", + "main": "./dist/umd/index.js", + "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "publishConfig": { diff --git a/tools/validate/package.json b/tools/validate/package.json index 7fba5bab99..d77b92800c 100644 --- a/tools/validate/package.json +++ b/tools/validate/package.json @@ -2,7 +2,7 @@ "name": "@lg-tools/validate", "version": "0.4.6", "description": "Validation tools for LeafyGreen repositories", - "main": "./dist/index.js", + "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", From 0c71d0b4e6493cb43a5c242fdf00d7815c7419be Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 22:40:06 -0400 Subject: [PATCH 071/123] update build scripts --- tools/build/bin/build-package.js | 2 +- tools/build/bin/ts-downlevel.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/bin/build-package.js b/tools/build/bin/build-package.js index 0a26517e1f..07595990cd 100755 --- a/tools/build/bin/build-package.js +++ b/tools/build/bin/build-package.js @@ -1,5 +1,5 @@ #! /usr/bin/env node // Use this bin to build packages that are dependencies of `@lg-tools/cli` // and therefore can't use `lg build-package` -const { buildPackage } = require('../dist/index.js'); +const { buildPackage } = require('../dist/umd/index.js'); buildPackage({ direct: true }); diff --git a/tools/build/bin/ts-downlevel.js b/tools/build/bin/ts-downlevel.js index dc937d8cee..d1d8ece3eb 100755 --- a/tools/build/bin/ts-downlevel.js +++ b/tools/build/bin/ts-downlevel.js @@ -1,5 +1,5 @@ #! /usr/bin/env node -const { runTypescriptDownlevel } = require('../dist/index.js'); +const { runTypescriptDownlevel } = require('../dist/umd/index.js'); const args = process.argv.slice(2); const verbose = args.includes('--verbose') || args.includes('-v'); const update = args.includes('--update') || args.includes('-u'); From b27b2c844ea3dd9d1f5a9fd065f1713cc8a8b367 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 22:42:55 -0400 Subject: [PATCH 072/123] update lint md --- .changeset/{itchy-mice-cry.md => lint-update-ts.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .changeset/{itchy-mice-cry.md => lint-update-ts.md} (100%) diff --git a/.changeset/itchy-mice-cry.md b/.changeset/lint-update-ts.md similarity index 100% rename from .changeset/itchy-mice-cry.md rename to .changeset/lint-update-ts.md From bce74cc9ebd05740b4f8d2688a717efeb59d832a Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 22:45:49 -0400 Subject: [PATCH 073/123] Create build-rollup-umd.md --- .changeset/build-rollup-umd.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/build-rollup-umd.md diff --git a/.changeset/build-rollup-umd.md b/.changeset/build-rollup-umd.md new file mode 100644 index 0000000000..047c2f8a17 --- /dev/null +++ b/.changeset/build-rollup-umd.md @@ -0,0 +1,5 @@ +--- +'@lg-tools/build': minor +--- + +Updates rollup config to build UMD bundles into `./dist/umd` From 5327d4d01fcaa8af24db2282cee127a5fa122971 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 22:52:58 -0400 Subject: [PATCH 074/123] Create build-tsconfig-configDir.md --- .changeset/build-tsconfig-configDir.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/build-tsconfig-configDir.md b/.changeset/build-tsconfig-configDir.md index 5f91344f36..fa7ca7da5f 100644 --- a/.changeset/build-tsconfig-configDir.md +++ b/.changeset/build-tsconfig-configDir.md @@ -3,4 +3,4 @@ --- - Updates default types directory to `./dist/types` -- Uses "${configDir}" in base package.json baseUrl, rootDir, outDir, & declarationDir properties \ No newline at end of file +- Uses "${configDir}" in base package.json baseUrl, rootDir, outDir, & declarationDir properties From f1ce25e7973fb4cc5e9072d38e01a720d445f7c9 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 23:03:56 -0400 Subject: [PATCH 075/123] update bin --- .changeset/bin-umd-dir.md | 8 ++++++++ tools/cli/bin/index.js | 2 +- tools/link/bin/link.js | 2 +- tools/link/bin/unlink.js | 2 +- tools/slackbot/bin/slackbot.js | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .changeset/bin-umd-dir.md diff --git a/.changeset/bin-umd-dir.md b/.changeset/bin-umd-dir.md new file mode 100644 index 0000000000..efaa264b94 --- /dev/null +++ b/.changeset/bin-umd-dir.md @@ -0,0 +1,8 @@ +--- +'@lg-tools/build': patch +'@lg-tools/cli': patch +'@lg-tools/link': patch +'@lg-tools/slackbot': patch +--- + +Updates `./bin` require reference to new UMD build directory diff --git a/tools/cli/bin/index.js b/tools/cli/bin/index.js index 74b198d6b2..f5232bd4c1 100755 --- a/tools/cli/bin/index.js +++ b/tools/cli/bin/index.js @@ -1,2 +1,2 @@ #! /usr/bin/env node -require('../dist/index.js'); +require('../dist/umd/index.js'); diff --git a/tools/link/bin/link.js b/tools/link/bin/link.js index fea1ebd0ba..bc53866052 100755 --- a/tools/link/bin/link.js +++ b/tools/link/bin/link.js @@ -1,2 +1,2 @@ #! /usr/bin/env node -require('../dist/link.js'); +require('../dist/umd/link.js'); diff --git a/tools/link/bin/unlink.js b/tools/link/bin/unlink.js index c0433ee002..a8a3182cf9 100755 --- a/tools/link/bin/unlink.js +++ b/tools/link/bin/unlink.js @@ -1,2 +1,2 @@ #! /usr/bin/env node -require('../dist/unlink.js'); +require('../dist/umd/unlink.js'); diff --git a/tools/slackbot/bin/slackbot.js b/tools/slackbot/bin/slackbot.js index 5dad674fd5..f6ae6dce19 100755 --- a/tools/slackbot/bin/slackbot.js +++ b/tools/slackbot/bin/slackbot.js @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../dist/index.js'); +require('../dist/umd/index.js'); From 596df4b9ab361220f0c807c7f398090ed7f8fb3e Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 22 Apr 2025 23:13:52 -0400 Subject: [PATCH 076/123] update forgotten tsconfigs --- pnpm-lock.yaml | 3 +++ tools/create/src/templates/component/tsconfig.json.ts | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6aa7dc14cc..ef7171bc07 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3171,6 +3171,9 @@ importers: '@lg-tools/build': specifier: workspace:^ version: link:../build + '@lg-tools/meta': + specifier: workspace:^ + version: link:../meta '@types/cli-progress': specifier: ^3.11.6 version: 3.11.6 diff --git a/tools/create/src/templates/component/tsconfig.json.ts b/tools/create/src/templates/component/tsconfig.json.ts index a5373516bf..86de0e861f 100644 --- a/tools/create/src/templates/component/tsconfig.json.ts +++ b/tools/create/src/templates/component/tsconfig.json.ts @@ -4,10 +4,6 @@ export const tsConfig = (scope: string) => { return `{ "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "declarationDir": "dist", - "outDir": "dist", - "rootDir": "src", - "baseUrl": ".", "paths": { "@leafygreen-ui/icon/dist/*": ["${pathToPackagesRoot}/icon/src/generated/*"], "@leafygreen-ui/*": ["${pathToPackagesRoot}/*/src"] From fb50a4348b0c1b5c056285eb3bdab2e58433937c Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 00:01:52 -0400 Subject: [PATCH 077/123] update tsconfig nodeResolution --- .changeset/build-tsconfig-bundler.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.changeset/build-tsconfig-bundler.md b/.changeset/build-tsconfig-bundler.md index e6b6653777..90a2a906a9 100644 --- a/.changeset/build-tsconfig-bundler.md +++ b/.changeset/build-tsconfig-bundler.md @@ -3,4 +3,3 @@ --- Updates `package.tsconfig.json` "moduleResolution" to "bundler", and "target" to "ES2020" - From 98621ece196955b836a69d8ad43f384a7edf098c Mon Sep 17 00:00:00 2001 From: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed, 23 Apr 2025 00:09:32 -0400 Subject: [PATCH 078/123] Entry Points pre-work [LG-5028] (#2805) * revert to node10 for some packages * mv testing dir * add /testing entry point * adds postinstall script to code to fix hljs * update base tsconfig * fix code ts * fix code ts * updates tools/build * Moves `.less` bundling to palette rollup config * Update pnpm-lock.yaml * Update pnpm-lock.yaml * Update linkPackageTo.spec.ts * Update Select.spec.tsx * Create palette-bundle-less.md --- .changeset/build-rollup-config.md | 6 + .changeset/palette-bundle-less.md | 5 + charts/core/tsconfig.json | 1 + chat/lg-markdown/tsconfig.json | 2 + package.json | 1 + .../src/utils/getTestUtils/getTestUtils.ts | 2 +- .../utils/getTestUtils/getTestUtils.types.ts | 2 +- packages/code/tsconfig.json | 1 + packages/palette/package.json | 5 +- packages/palette/rollup.config.mjs | 32 +++ packages/select/package.json | 12 ++ packages/select/rollup.config.mjs | 30 +++ packages/select/src/Select/Select.spec.tsx | 3 +- packages/select/src/index.ts | 1 - packages/select/src/testing/index.ts | 2 + .../utils}/getTestUtils.spec.tsx | 0 .../utils}/getTestUtils.ts | 0 .../utils}/getTestUtils.types.ts | 0 packages/select/src/utils/index.ts | 2 - pnpm-lock.yaml | 16 +- tools/build/config/rollup.config.mjs | 201 +++++++----------- tools/build/config/utils/getUMDGlobals.mjs | 83 ++++++++ tools/build/package.json | 1 - tools/link/src/utils/linkPackageTo.spec.ts | 6 +- 24 files changed, 264 insertions(+), 150 deletions(-) create mode 100644 .changeset/build-rollup-config.md create mode 100644 .changeset/palette-bundle-less.md create mode 100644 packages/palette/rollup.config.mjs create mode 100644 packages/select/rollup.config.mjs create mode 100644 packages/select/src/testing/index.ts rename packages/select/src/{utils/getTestUtils => testing/utils}/getTestUtils.spec.tsx (100%) rename packages/select/src/{utils/getTestUtils => testing/utils}/getTestUtils.ts (100%) rename packages/select/src/{utils/getTestUtils => testing/utils}/getTestUtils.types.ts (100%) delete mode 100644 packages/select/src/utils/index.ts create mode 100644 tools/build/config/utils/getUMDGlobals.mjs diff --git a/.changeset/build-rollup-config.md b/.changeset/build-rollup-config.md new file mode 100644 index 0000000000..3f2188afae --- /dev/null +++ b/.changeset/build-rollup-config.md @@ -0,0 +1,6 @@ +--- +'@lg-tools/build': minor +--- + +- Only adds output `globals` for UMD builds +- Splits `/testing` entry point if `src/testing/index.ts` file exists diff --git a/.changeset/palette-bundle-less.md b/.changeset/palette-bundle-less.md new file mode 100644 index 0000000000..f2135d4edb --- /dev/null +++ b/.changeset/palette-bundle-less.md @@ -0,0 +1,5 @@ +--- +'@leafygreen-ui/palette': patch +--- + +Creates local Rollup config to bundle `.less` files diff --git a/charts/core/tsconfig.json b/charts/core/tsconfig.json index f130942974..d3d65f588f 100644 --- a/charts/core/tsconfig.json +++ b/charts/core/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { + "moduleResolution": "node", "paths": { "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], "@leafygreen-ui/*": ["../../packages/*/src"] diff --git a/chat/lg-markdown/tsconfig.json b/chat/lg-markdown/tsconfig.json index da4bc6e48b..d359d06f58 100644 --- a/chat/lg-markdown/tsconfig.json +++ b/chat/lg-markdown/tsconfig.json @@ -1,6 +1,8 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { + "moduleResolution": "node", + "paths": { "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], "@leafygreen-ui/*": ["../../packages/*/src"] diff --git a/package.json b/package.json index 1eb82aab35..4311ae76d1 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "chromatic": "npx chromatic", "clean": "npm-run-all --parallel clean:*", "clean:builds": "pnpm recursive exec -- rm -rf ./{dist,tsconfig.tsbuildinfo,stories.js}", + "clean:ts": "pnpm recursive exec -- rm -rf ./{dist/**/*.d.ts.,tsconfig.tsbuildinfo}", "clean:cache": "pnpm recursive exec -- rm -rf ./.turbo; rm -rf .turbo/cache", "clean:modules": "pnpm recursive exec -- rm -rf node_modules; rm -rf node_modules", "fix": "lg lint --fix", diff --git a/packages/code/src/utils/getTestUtils/getTestUtils.ts b/packages/code/src/utils/getTestUtils/getTestUtils.ts index 6c1ff1c257..594994a276 100644 --- a/packages/code/src/utils/getTestUtils/getTestUtils.ts +++ b/packages/code/src/utils/getTestUtils/getTestUtils.ts @@ -1,7 +1,7 @@ import { getByLgId, queryBySelector } from '@lg-tools/test-harnesses'; import { getTestUtils as getButtonTestUtils } from '@leafygreen-ui/button'; -import { getTestUtils as getSelectTestUtils } from '@leafygreen-ui/select'; +import { getTestUtils as getSelectTestUtils } from '@leafygreen-ui/select/testing'; import { DEFAULT_LGID_ROOT, getLgIds } from '../getLgIds'; diff --git a/packages/code/src/utils/getTestUtils/getTestUtils.types.ts b/packages/code/src/utils/getTestUtils/getTestUtils.types.ts index f217fc11d7..c355561625 100644 --- a/packages/code/src/utils/getTestUtils/getTestUtils.types.ts +++ b/packages/code/src/utils/getTestUtils/getTestUtils.types.ts @@ -1,5 +1,5 @@ import { GetTestUtilsReturnType as GetButtonTestUtilsReturnType } from '@leafygreen-ui/button'; -import type { GetTestUtilsReturnType as GetSelectTestUtilsReturnType } from '@leafygreen-ui/select'; +import type { GetTestUtilsReturnType as GetSelectTestUtilsReturnType } from '@leafygreen-ui/select/testing'; export interface TestUtilsReturnType { /** diff --git a/packages/code/tsconfig.json b/packages/code/tsconfig.json index 8966e9259e..5931c5fc04 100644 --- a/packages/code/tsconfig.json +++ b/packages/code/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { + "moduleResolution": "node", "paths": { "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], "@leafygreen-ui/*": ["../*/src"], diff --git a/packages/palette/package.json b/packages/palette/package.json index 8c2dfef743..640b5d0664 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -15,9 +15,11 @@ "publishConfig": { "access": "public" }, + "dependencies": {}, "devDependencies": { "@leafygreen-ui/emotion": "workspace:^", "@leafygreen-ui/lib": "workspace:^", + "@rollup/plugin-url": "8.0.2", "polished": "^4.2.2" }, "gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0", @@ -28,6 +30,5 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" - }, - "dependencies": {} + } } diff --git a/packages/palette/rollup.config.mjs b/packages/palette/rollup.config.mjs new file mode 100644 index 0000000000..2deccf935e --- /dev/null +++ b/packages/palette/rollup.config.mjs @@ -0,0 +1,32 @@ +import urlPlugin from '@rollup/plugin-url'; +import { + esmConfig, + umdConfig, + storiesConfig, +} from '@lg-tools/build/config/rollup.config.mjs'; + +export default [ + { + ...esmConfig, + plugins: [ + ...esmConfig.plugins, + urlPlugin({ + limit: 0, + include: ['**/*.less'], + fileName: '[name][extname]', + }), + ], + }, + { + ...umdConfig, + plugins: [ + ...esmConfig.plugins, + urlPlugin({ + limit: 0, + include: ['**/*.less'], + fileName: '[name][extname]', + }), + ], + }, + storiesConfig, +]; diff --git a/packages/select/package.json b/packages/select/package.json index b20e1d77cf..25037041a1 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -6,6 +6,18 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, + "exports": { + ".": { + "import": "./dist/esm/index.js", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "./testing": { + "import": "./dist/esm/testing/index.js", + "require": "./dist/testing/index.js", + "types": "./dist/testing/index.d.ts" + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/select/rollup.config.mjs b/packages/select/rollup.config.mjs new file mode 100644 index 0000000000..cff35beb80 --- /dev/null +++ b/packages/select/rollup.config.mjs @@ -0,0 +1,30 @@ +import { + esmConfig, + umdConfig, + storiesConfig, +} from '@lg-tools/build/config/rollup.config.mjs'; + +const esmTestUtilsConfig = { + ...esmConfig, + input: 'src/testing/index.ts', + output: { + ...esmConfig.output, + dir: 'dist/esm/testing', + }, +}; +const umdTestUtilsConfig = { + ...umdConfig, + input: 'src/testing/index.ts', + output: { + ...umdConfig.output, + dir: 'dist/testing', + }, +}; + +export default [ + esmConfig, + umdConfig, + esmTestUtilsConfig, + umdTestUtilsConfig, + storiesConfig, +]; diff --git a/packages/select/src/Select/Select.spec.tsx b/packages/select/src/Select/Select.spec.tsx index 4ededd7f9f..2e9b521dc4 100644 --- a/packages/select/src/Select/Select.spec.tsx +++ b/packages/select/src/Select/Select.spec.tsx @@ -16,8 +16,7 @@ import { keyMap } from '@leafygreen-ui/lib'; import { RenderMode } from '@leafygreen-ui/popover'; import { Context, jest as Jest } from '@leafygreen-ui/testing-lib'; -import { getTestUtils } from '../utils/getTestUtils/getTestUtils'; -import { TestUtilsReturnType } from '../utils/getTestUtils/getTestUtils.types'; +import { getTestUtils, type TestUtilsReturnType } from '../testing'; import { Option, OptionGroup, Select } from '..'; import { SelectProps, State } from './Select.types'; diff --git a/packages/select/src/index.ts b/packages/select/src/index.ts index a9720e6d63..9fb425e004 100644 --- a/packages/select/src/index.ts +++ b/packages/select/src/index.ts @@ -12,4 +12,3 @@ export { Size, State, } from './Select'; -export { getTestUtils, type GetTestUtilsReturnType } from './utils'; diff --git a/packages/select/src/testing/index.ts b/packages/select/src/testing/index.ts new file mode 100644 index 0000000000..204044f48a --- /dev/null +++ b/packages/select/src/testing/index.ts @@ -0,0 +1,2 @@ +export { getTestUtils } from './utils/getTestUtils'; +export type { GetTestUtilsReturnType } from './utils/getTestUtils.types'; diff --git a/packages/select/src/utils/getTestUtils/getTestUtils.spec.tsx b/packages/select/src/testing/utils/getTestUtils.spec.tsx similarity index 100% rename from packages/select/src/utils/getTestUtils/getTestUtils.spec.tsx rename to packages/select/src/testing/utils/getTestUtils.spec.tsx diff --git a/packages/select/src/utils/getTestUtils/getTestUtils.ts b/packages/select/src/testing/utils/getTestUtils.ts similarity index 100% rename from packages/select/src/utils/getTestUtils/getTestUtils.ts rename to packages/select/src/testing/utils/getTestUtils.ts diff --git a/packages/select/src/utils/getTestUtils/getTestUtils.types.ts b/packages/select/src/testing/utils/getTestUtils.types.ts similarity index 100% rename from packages/select/src/utils/getTestUtils/getTestUtils.types.ts rename to packages/select/src/testing/utils/getTestUtils.types.ts diff --git a/packages/select/src/utils/index.ts b/packages/select/src/utils/index.ts deleted file mode 100644 index 4c878f3437..0000000000 --- a/packages/select/src/utils/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { getTestUtils } from './getTestUtils/getTestUtils'; -export { type GetTestUtilsReturnType } from './getTestUtils/getTestUtils.types'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef7171bc07..2c86dbb84f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2051,6 +2051,9 @@ importers: '@leafygreen-ui/lib': specifier: workspace:^ version: link:../lib + '@rollup/plugin-url': + specifier: 8.0.2 + version: 8.0.2 polished: specifier: ^4.2.2 version: 4.3.1 @@ -2933,9 +2936,6 @@ importers: '@rollup/plugin-terser': specifier: 0.4.3 version: 0.4.3(rollup@4.16.1) - '@rollup/plugin-url': - specifier: 8.0.1 - version: 8.0.1(rollup@4.16.1) '@svgr/babel-plugin-replace-jsx-attribute-value': specifier: 8.0.0 version: 8.0.0(@babel/core@7.24.3) @@ -4981,11 +4981,11 @@ packages: rollup: optional: true - '@rollup/plugin-url@8.0.1': - resolution: {integrity: sha512-8ajztphXb5e19dk3Iwjtm2eSYJR8jFQubZ8pJ1GG2MBMM7/qUedLnZAN+Vt4jqbcT/m27jfjIBocvrzV0giNRw==} + '@rollup/plugin-url@8.0.2': + resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==} engines: {node: '>=14.0.0'} peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0 + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 peerDependenciesMeta: rollup: optional: true @@ -12374,13 +12374,11 @@ snapshots: optionalDependencies: rollup: 4.16.1 - '@rollup/plugin-url@8.0.1(rollup@4.16.1)': + '@rollup/plugin-url@8.0.2': dependencies: '@rollup/pluginutils': 5.0.2(rollup@4.16.1) make-dir: 3.1.0 mime: 3.0.0 - optionalDependencies: - rollup: 4.16.1 '@rollup/pluginutils@5.0.2(rollup@4.16.1)': dependencies: diff --git a/tools/build/config/rollup.config.mjs b/tools/build/config/rollup.config.mjs index 80ce438a52..35789f4304 100644 --- a/tools/build/config/rollup.config.mjs +++ b/tools/build/config/rollup.config.mjs @@ -4,95 +4,26 @@ 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 urlPlugin from '@rollup/plugin-url'; import svgr from '@svgr/rollup'; -import fs from 'fs'; import { glob } from 'glob'; import path from 'path'; import { nodeExternals } from 'rollup-plugin-node-externals'; import nodePolyfills from 'rollup-plugin-polyfill-node'; -import { bundleStats } from 'rollup-plugin-bundle-stats'; -const require = createRequire(import.meta.url); -const storyGlob = 'src/*.stor{y,ies}.tsx'; -const extensions = ['.ts', '.tsx']; +import { getUMDGlobals } from './utils/getUMDGlobals.mjs'; -const { - name, - dependencies, - devDependencies, - peerDependencies, -} = require(path.resolve(process.cwd(), 'package.json')); +const extensions = ['.ts', '.tsx']; +const testUtilsFilename = 'src/testing/index.ts'; +const storyGlob = 'src/*.stor{y,ies}.tsx'; const babelConfigPath = fileURLToPath( new URL('babel.config.js', import.meta.url), ); -const allDependencies = { - ...dependencies, - ...devDependencies, - ...peerDependencies, -}; - -/** - * - * @returns An array of all glyph import paths - */ -function getDirectGlyphImports() { - const pkgHasIconDependency = allDependencies['@leafygreen-ui/icon']; - const glyphsDir = path.resolve(process.cwd(), '../icon/src/glyphs'); - - if (pkgHasIconDependency && fs.existsSync(glyphsDir)) { - return fs - .readdirSync(glyphsDir) - .filter(path => /.svg/.test(path)) - .map( - fileName => - `@leafygreen-ui/icon/dist/${path.basename(fileName, '.svg')}`, - ); - } - - return []; -} - -const lgGlobals = Object.keys(allDependencies).reduce((acc, pkg) => { - acc[pkg] = pkg; - return acc; -}, {}); - -const iconGlobals = getDirectGlyphImports().reduce((acc, glyph) => { - acc[glyph] = /[^/]+$/.exec(glyph)[0]; - return acc; -}, {}); - -// Mapping of packages to the `window` property they'd be -// bound to if used in the browser without a module loader. -// This is defined on a best effort basis since not all -// modules are compatible with being loaded directly. -const globalsMap = { - clipboard: 'ClipboardJS', - 'cross-spawn': 'crossSpawn', - '@emotion/server/create-instance': 'createEmotionServer', - '@emotion/css/create-instance': 'createEmotion', - 'highlight.js/lib/core': 'hljs', - 'highlightjs-graphql': 'hljsDefineGraphQL', - 'fs-extra': 'fse', - polished: 'polished', - react: 'React', - 'react-dom': 'ReactDOM', - lodash: '_', - ...lgGlobals, - ...iconGlobals, -}; - -const globals = id => { - if (globalsMap[id]) return globalsMap[id]; - if (/lodash/.test(id)) return id.replace(/lodash/, ''); - - if (/highlight\.js\/lib\/languages/.test(id)) { - return id.replace(/highlight\.js\/lib\/languages/, ''); - } -}; +// Read `name` from the current package's package.json +const { name } = createRequire(import.meta.url)( + path.resolve(process.cwd(), 'package.json'), +); const external = [/node_modules/]; @@ -101,57 +32,74 @@ const moduleFormatToDirectory = { umd: 'dist/umd', }; -const configForFormat = format => ({ - input: 'src/index.ts', - output: { - dir: moduleFormatToDirectory[format], - name, - format, - sourcemap: true, - globals, - interop: 'compat', // https://rollupjs.org/configuration-options/#output-interop - validate: true, - }, - plugins: [ - nodePolyfills(), - nodeExternals({ deps: true }), - nodeResolve({ extensions }), - - babel({ - babelrc: false, - babelHelpers: 'bundled', - extensions, - configFile: babelConfigPath, - sourceMaps: 'inline', - envName: 'production', - }), - - urlPlugin({ - limit: 50000, - include: ['**/*.png'], - }), - - urlPlugin({ - limit: 0, - include: ['**/*.less'], - fileName: '[name][extname]', - }), - - svgr(), - - terser(), - ], - external, - strictDeprecations: true, - treeshake: { - preset: 'recommended', - moduleSideEffects: false, - }, -}); +const doTestUtilsExist = glob.sync(testUtilsFilename).length > 0; + +const createConfigForFormat = format => { + const formatConfig = { + input: ['src/index.ts'], + output: { + dir: moduleFormatToDirectory[format], + name, + format, + sourcemap: true, + globals: format === 'umd' ? getUMDGlobals() : {}, + validate: true, + interop: 'compat', // https://rollupjs.org/configuration-options/#output-interop + }, + plugins: [ + nodePolyfills(), + nodeExternals({ deps: true }), + nodeResolve({ extensions }), + + babel({ + babelrc: false, + babelHelpers: 'bundled', + extensions, + configFile: babelConfigPath, + sourceMaps: 'inline', + envName: 'production', + }), + + svgr(), + + terser(), + ], + external, + strictDeprecations: true, + treeshake: { + preset: 'recommended', + moduleSideEffects: false, + }, + }; + + // Add code-splitting for test utils to ESM build if they exist + if (format === 'esm' && doTestUtilsExist) { + formatConfig.input.push(testUtilsFilename); + } -const esmConfig = configForFormat('esm'); -const umdConfig = configForFormat('umd'); + return { + ...formatConfig, + }; +}; + +const esmConfig = createConfigForFormat('esm'); +const umdConfig = createConfigForFormat('umd'); +const defaultConfig = [esmConfig, umdConfig]; + +// Add additional entry point to UMD build for test-utils if they exist +doTestUtilsExist && + defaultConfig.push({ + ...umdConfig, + input: testUtilsFilename, + output: { + ...umdConfig.output, + dir: 'dist/testing', + }, + }); + +// FIXME: Figure out a way to get rid of this. +// Creates a super-hacky `stories` bundle const storiesExist = glob.sync(storyGlob).length > 0; const storiesConfig = { ...esmConfig, @@ -164,7 +112,6 @@ const storiesConfig = { }, }; -const defaultConfig = [esmConfig, umdConfig]; storiesExist && defaultConfig.push(storiesConfig); export { esmConfig, storiesConfig, umdConfig }; diff --git a/tools/build/config/utils/getUMDGlobals.mjs b/tools/build/config/utils/getUMDGlobals.mjs new file mode 100644 index 0000000000..4ca3a0be40 --- /dev/null +++ b/tools/build/config/utils/getUMDGlobals.mjs @@ -0,0 +1,83 @@ +import path from 'path'; + +export function getUMDGlobals() { + // Read from the current package's package.json + // to get the package name and dependencies + const { dependencies, devDependencies, peerDependencies } = import( + path.resolve(process.cwd(), 'package.json'), + { with: { type: 'json' } } + ); + + const allDependencies = { + ...dependencies, + ...devDependencies, + ...peerDependencies, + }; + + const lgGlobals = Object.keys(allDependencies).reduce((acc, pkg) => { + acc[pkg] = pkg; + return acc; + }, {}); + + const iconGlobals = getDirectGlyphImports().reduce((acc, glyph) => { + acc[glyph] = /[^/]+$/.exec(glyph)[0]; + return acc; + }, {}); + + // Mapping of packages to the `window` property they'd be + // bound to if used in the browser without a module loader. + // This is defined on a best effort basis since not all + // modules are compatible with being loaded directly. + const globalsMap = { + clipboard: 'ClipboardJS', + 'cross-spawn': 'crossSpawn', + '@emotion/server/create-instance': 'createEmotionServer', + '@emotion/css/create-instance': 'createEmotion', + 'highlight.js/lib/core': 'hljs', + 'highlightjs-graphql': 'hljsDefineGraphQL', + 'fs-extra': 'fse', + polished: 'polished', + react: 'React', + 'react-dom': 'ReactDOM', + lodash: '_', + ...lgGlobals, + ...iconGlobals, + }; + + /** + * Returns a function that specifies {`id`: `variableName`} pairs + * necessary for external imports in umd/iife bundles + * + * See https://rollupjs.org/configuration-options/#output-globals + */ + function globals(id) { + if (globalsMap[id]) return globalsMap[id]; + if (/lodash/.test(id)) return id.replace(/lodash/, ''); + + if (/highlight\.js\/lib\/languages/.test(id)) { + return id.replace(/highlight\.js\/lib\/languages/, ''); + } + } + + /** + * @returns An array of all glyph import paths + */ + function getDirectGlyphImports() { + const pkgHasIconDependency = allDependencies['@leafygreen-ui/icon']; + const glyphsDir = path.resolve(process.cwd(), '../icon/src/glyphs'); + + if (pkgHasIconDependency && fs.existsSync(glyphsDir)) { + return fs + .readdirSync(glyphsDir) + .filter(path => /.svg/.test(path)) + .map( + fileName => + `@leafygreen-ui/icon/dist/${path.basename(fileName, '.svg')}`, + ); + } + + return []; + } + + return globals; +} diff --git a/tools/build/package.json b/tools/build/package.json index a10b9d6fca..123caa368c 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -30,7 +30,6 @@ "@rollup/plugin-babel": "6.0.4", "@rollup/plugin-node-resolve": "15.1.0", "@rollup/plugin-terser": "0.4.3", - "@rollup/plugin-url": "8.0.1", "@svgr/babel-plugin-replace-jsx-attribute-value": "8.0.0", "@svgr/cli": "8.0.1", "@svgr/rollup": "^8.1.0", diff --git a/tools/link/src/utils/linkPackageTo.spec.ts b/tools/link/src/utils/linkPackageTo.spec.ts index e3cf31f77f..b1b02b0147 100644 --- a/tools/link/src/utils/linkPackageTo.spec.ts +++ b/tools/link/src/utils/linkPackageTo.spec.ts @@ -10,10 +10,8 @@ describe('tools/link/linkPackageTo', () => { let spawnSpy: jest.SpyInstance; beforeAll(() => { - fsx.emptyDirSync('./tmp'); - fsx.rmdirSync('./tmp/'); - fsx.mkdirSync('./tmp/'); - fsx.mkdirSync('./tmp/app'); + fsx.ensureDirSync('./tmp/app'); + fsx.emptyDirSync('./tmp/app'); }); beforeEach(() => { From 5c16ec9ab0ddc6e84041296379c628a5eff898a2 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 00:28:28 -0400 Subject: [PATCH 079/123] rm select/testing entry point --- packages/code/src/utils/getTestUtils/getTestUtils.ts | 2 +- .../src/utils/getTestUtils/getTestUtils.types.ts | 2 +- packages/select/package.json | 12 ------------ packages/select/src/index.ts | 1 + 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/packages/code/src/utils/getTestUtils/getTestUtils.ts b/packages/code/src/utils/getTestUtils/getTestUtils.ts index 594994a276..6c1ff1c257 100644 --- a/packages/code/src/utils/getTestUtils/getTestUtils.ts +++ b/packages/code/src/utils/getTestUtils/getTestUtils.ts @@ -1,7 +1,7 @@ import { getByLgId, queryBySelector } from '@lg-tools/test-harnesses'; import { getTestUtils as getButtonTestUtils } from '@leafygreen-ui/button'; -import { getTestUtils as getSelectTestUtils } from '@leafygreen-ui/select/testing'; +import { getTestUtils as getSelectTestUtils } from '@leafygreen-ui/select'; import { DEFAULT_LGID_ROOT, getLgIds } from '../getLgIds'; diff --git a/packages/code/src/utils/getTestUtils/getTestUtils.types.ts b/packages/code/src/utils/getTestUtils/getTestUtils.types.ts index c355561625..f217fc11d7 100644 --- a/packages/code/src/utils/getTestUtils/getTestUtils.types.ts +++ b/packages/code/src/utils/getTestUtils/getTestUtils.types.ts @@ -1,5 +1,5 @@ import { GetTestUtilsReturnType as GetButtonTestUtilsReturnType } from '@leafygreen-ui/button'; -import type { GetTestUtilsReturnType as GetSelectTestUtilsReturnType } from '@leafygreen-ui/select/testing'; +import type { GetTestUtilsReturnType as GetSelectTestUtilsReturnType } from '@leafygreen-ui/select'; export interface TestUtilsReturnType { /** diff --git a/packages/select/package.json b/packages/select/package.json index 25037041a1..b20e1d77cf 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -6,18 +6,6 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, - "exports": { - ".": { - "import": "./dist/esm/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" - }, - "./testing": { - "import": "./dist/esm/testing/index.js", - "require": "./dist/testing/index.js", - "types": "./dist/testing/index.d.ts" - } - }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/select/src/index.ts b/packages/select/src/index.ts index 9fb425e004..a3b716445c 100644 --- a/packages/select/src/index.ts +++ b/packages/select/src/index.ts @@ -12,3 +12,4 @@ export { Size, State, } from './Select'; +export * from './testing'; From ad23660963946261dafbb1a7a7484597fa9295a5 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 00:35:41 -0400 Subject: [PATCH 080/123] Update icon rollup.config.mjs temporarily keep icon bundles at root --- packages/icon/rollup.config.mjs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/icon/rollup.config.mjs b/packages/icon/rollup.config.mjs index 1077eaebd9..ec9241830a 100644 --- a/packages/icon/rollup.config.mjs +++ b/packages/icon/rollup.config.mjs @@ -35,4 +35,16 @@ const iconConfigs = [esmConfig, umdConfig].flatMap(config => })), ); +iconConfigs.push( + ...getGeneratedFiles().map(file => ({ + ...umdConfig, + input: `src/generated/${path.basename(file)}`, + output: { + ...umdConfig.output, + dir: 'dist', + name: `${path.basename(file, path.extname(file))}.js`, + }, + })), +); + export default [esmConfig, umdConfig, storiesConfig, ...iconConfigs]; From 73199a1a7110aec95278d7dbf492de24af0c3ca6 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 9 Apr 2025 18:13:58 -0400 Subject: [PATCH 081/123] revert to node10 for some packages --- chat/lg-markdown/tsconfig.json | 1 - 1 file changed, 1 deletion(-) diff --git a/chat/lg-markdown/tsconfig.json b/chat/lg-markdown/tsconfig.json index d359d06f58..2d1d11bf43 100644 --- a/chat/lg-markdown/tsconfig.json +++ b/chat/lg-markdown/tsconfig.json @@ -2,7 +2,6 @@ "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { "moduleResolution": "node", - "paths": { "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], "@leafygreen-ui/*": ["../../packages/*/src"] From 694a4dff9a2211922190424270c4bd116895053f Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 9 Apr 2025 18:41:33 -0400 Subject: [PATCH 082/123] mv testing dir --- packages/select/src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/select/src/index.ts b/packages/select/src/index.ts index a3b716445c..9fb425e004 100644 --- a/packages/select/src/index.ts +++ b/packages/select/src/index.ts @@ -12,4 +12,3 @@ export { Size, State, } from './Select'; -export * from './testing'; From 9874c9d1359e7ba913b5c43eedd74c97eeed5aa3 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 9 Apr 2025 18:41:50 -0400 Subject: [PATCH 083/123] add /testing entry point --- packages/select/package.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/select/package.json b/packages/select/package.json index b20e1d77cf..25037041a1 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -6,6 +6,18 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, + "exports": { + ".": { + "import": "./dist/esm/index.js", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "./testing": { + "import": "./dist/esm/testing/index.js", + "require": "./dist/testing/index.js", + "types": "./dist/testing/index.d.ts" + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", From 95c1050554ca48b63b7b4956760df56b4d879a8d Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 17 Apr 2025 16:49:42 -0400 Subject: [PATCH 084/123] fix code ts --- packages/code/src/utils/getTestUtils/getTestUtils.ts | 2 +- packages/code/src/utils/getTestUtils/getTestUtils.types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/code/src/utils/getTestUtils/getTestUtils.ts b/packages/code/src/utils/getTestUtils/getTestUtils.ts index 6c1ff1c257..594994a276 100644 --- a/packages/code/src/utils/getTestUtils/getTestUtils.ts +++ b/packages/code/src/utils/getTestUtils/getTestUtils.ts @@ -1,7 +1,7 @@ import { getByLgId, queryBySelector } from '@lg-tools/test-harnesses'; import { getTestUtils as getButtonTestUtils } from '@leafygreen-ui/button'; -import { getTestUtils as getSelectTestUtils } from '@leafygreen-ui/select'; +import { getTestUtils as getSelectTestUtils } from '@leafygreen-ui/select/testing'; import { DEFAULT_LGID_ROOT, getLgIds } from '../getLgIds'; diff --git a/packages/code/src/utils/getTestUtils/getTestUtils.types.ts b/packages/code/src/utils/getTestUtils/getTestUtils.types.ts index f217fc11d7..c355561625 100644 --- a/packages/code/src/utils/getTestUtils/getTestUtils.types.ts +++ b/packages/code/src/utils/getTestUtils/getTestUtils.types.ts @@ -1,5 +1,5 @@ import { GetTestUtilsReturnType as GetButtonTestUtilsReturnType } from '@leafygreen-ui/button'; -import type { GetTestUtilsReturnType as GetSelectTestUtilsReturnType } from '@leafygreen-ui/select'; +import type { GetTestUtilsReturnType as GetSelectTestUtilsReturnType } from '@leafygreen-ui/select/testing'; export interface TestUtilsReturnType { /** From d592512a7887aace2b99de3295a602e6b8c89966 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 18 Apr 2025 18:00:07 -0400 Subject: [PATCH 085/123] Update pnpm-lock.yaml --- pnpm-lock.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c86dbb84f..de2acf700b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2386,6 +2386,10 @@ importers: react-is: specifier: ^18.0.1 version: 18.2.0 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/side-nav: dependencies: From d468fcd008c9c91950e9983aa1a903f21a3f886b Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 18 Apr 2025 18:44:43 -0400 Subject: [PATCH 086/123] Update pnpm-lock.yaml --- pnpm-lock.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index de2acf700b..2c86dbb84f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2386,10 +2386,6 @@ importers: react-is: specifier: ^18.0.1 version: 18.2.0 - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../../tools/build packages/side-nav: dependencies: From 8884c199e4bdc55fa5c102088a16b981d74c11d7 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 9 Apr 2025 18:12:35 -0400 Subject: [PATCH 087/123] nodenext --- tools/build/config/package.tsconfig.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/build/config/package.tsconfig.json b/tools/build/config/package.tsconfig.json index 10855cfb0f..8b14cfc957 100644 --- a/tools/build/config/package.tsconfig.json +++ b/tools/build/config/package.tsconfig.json @@ -1,12 +1,8 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { - "module": "ESNext", - "moduleResolution": "bundler", - "target": "ES2020", - "jsx": "react", - "incremental": true, - "composite": true, + "module": "esnext", + "moduleResolution": "nodenext", "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, From f5a20fee74a18676861f8d7cea1b02113705adde Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 9 Apr 2025 18:13:58 -0400 Subject: [PATCH 088/123] revert to node10 for some packages --- charts/core/tsconfig.json | 1 - chat/lg-markdown/tsconfig.json | 1 - packages/code/tsconfig.json | 1 - 3 files changed, 3 deletions(-) diff --git a/charts/core/tsconfig.json b/charts/core/tsconfig.json index d3d65f588f..f130942974 100644 --- a/charts/core/tsconfig.json +++ b/charts/core/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "moduleResolution": "node", "paths": { "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], "@leafygreen-ui/*": ["../../packages/*/src"] diff --git a/chat/lg-markdown/tsconfig.json b/chat/lg-markdown/tsconfig.json index 2d1d11bf43..da4bc6e48b 100644 --- a/chat/lg-markdown/tsconfig.json +++ b/chat/lg-markdown/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "moduleResolution": "node", "paths": { "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], "@leafygreen-ui/*": ["../../packages/*/src"] diff --git a/packages/code/tsconfig.json b/packages/code/tsconfig.json index 5931c5fc04..8966e9259e 100644 --- a/packages/code/tsconfig.json +++ b/packages/code/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { - "moduleResolution": "node", "paths": { "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], "@leafygreen-ui/*": ["../*/src"], From 9bd76feddfff872ae97ea3ac5fc02fe2058b8f74 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 17 Apr 2025 16:25:58 -0400 Subject: [PATCH 089/123] update base tsconfig --- tools/build/config/package.tsconfig.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/build/config/package.tsconfig.json b/tools/build/config/package.tsconfig.json index 8b14cfc957..10855cfb0f 100644 --- a/tools/build/config/package.tsconfig.json +++ b/tools/build/config/package.tsconfig.json @@ -1,8 +1,12 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { - "module": "esnext", - "moduleResolution": "nodenext", + "module": "ESNext", + "moduleResolution": "bundler", + "target": "ES2020", + "jsx": "react", + "incremental": true, + "composite": true, "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, From 20c2944191e289aa7f9e6f2545877e252ac0625b Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 18 Apr 2025 18:27:01 -0400 Subject: [PATCH 090/123] moves Test Utils to a consistent location --- .changeset/testing-entry-points.md | 6 ++++++ .../code/src/{ => testing}/Code.testutils.tsx | 14 +++++++------ .../getTestUtils.spec.tsx | 2 +- .../getTestUtils => testing}/getTestUtils.ts | 2 +- .../getTestUtils.types.ts | 0 packages/code/src/testing/index.ts | 1 + packages/code/src/utils/index.ts | 2 -- .../getTestUtils.spec.tsx | 0 .../getTestUtils => testing}/getTestUtils.ts | 0 .../getTestUtils.types.ts | 0 .../gallery-indicator/src/testing/index.ts | 1 + .../getTestUtils.spec.tsx | 21 ++++++++----------- .../getTestUtils => testing}/getTestUtils.tsx | 2 +- .../getTestUtils.types.ts | 0 .../{utils/getTestUtils => testing}/index.ts | 0 .../getTestUtils.spec.tsx | 2 +- .../getTestUtils => testing}/getTestUtils.ts | 2 +- .../getTestUtils.types.ts | 0 packages/tabs/src/testing/index.ts | 1 + packages/tabs/src/utils/index.ts | 1 - .../getTestUtils.spec.tsx | 2 +- .../getTestUtils => testing}/getTestUtils.ts | 2 +- .../getTestUtils.types.ts | 0 packages/text-area/src/testing/index.ts | 1 + packages/text-area/src/utils/index.ts | 1 - .../getTestUtils.spec.tsx | 2 +- .../getTestUtils => testing}/getTestUtils.ts | 2 +- .../getTestUtils.types.ts | 0 packages/text-input/src/testing/index.ts | 1 + packages/text-input/src/utils/index.ts | 1 - .../getTestUtils.spec.tsx | 0 .../getTestUtils => testing}/getTestUtils.ts | 0 .../getTestUtils.types.ts | 0 packages/toggle/src/testing/index.ts | 1 + packages/toggle/src/utils/index.ts | 1 - 35 files changed, 38 insertions(+), 33 deletions(-) create mode 100644 .changeset/testing-entry-points.md rename packages/code/src/{ => testing}/Code.testutils.tsx (87%) rename packages/code/src/{utils/getTestUtils => testing}/getTestUtils.spec.tsx (99%) rename packages/code/src/{utils/getTestUtils => testing}/getTestUtils.ts (97%) rename packages/code/src/{utils/getTestUtils => testing}/getTestUtils.types.ts (100%) create mode 100644 packages/code/src/testing/index.ts rename packages/gallery-indicator/src/{utils/getTestUtils => testing}/getTestUtils.spec.tsx (100%) rename packages/gallery-indicator/src/{utils/getTestUtils => testing}/getTestUtils.ts (100%) rename packages/gallery-indicator/src/{utils/getTestUtils => testing}/getTestUtils.types.ts (100%) create mode 100644 packages/gallery-indicator/src/testing/index.ts rename packages/table/src/{utils/getTestUtils => testing}/getTestUtils.spec.tsx (96%) rename packages/table/src/{utils/getTestUtils => testing}/getTestUtils.tsx (98%) rename packages/table/src/{utils/getTestUtils => testing}/getTestUtils.types.ts (100%) rename packages/table/src/{utils/getTestUtils => testing}/index.ts (100%) rename packages/tabs/src/{utils/getTestUtils => testing}/getTestUtils.spec.tsx (99%) rename packages/tabs/src/{utils/getTestUtils => testing}/getTestUtils.ts (98%) rename packages/tabs/src/{utils/getTestUtils => testing}/getTestUtils.types.ts (100%) create mode 100644 packages/tabs/src/testing/index.ts rename packages/text-area/src/{utils/getTestUtils => testing}/getTestUtils.spec.tsx (99%) rename packages/text-area/src/{utils/getTestUtils => testing}/getTestUtils.ts (97%) rename packages/text-area/src/{utils/getTestUtils => testing}/getTestUtils.types.ts (100%) create mode 100644 packages/text-area/src/testing/index.ts delete mode 100644 packages/text-area/src/utils/index.ts rename packages/text-input/src/{utils/getTestUtils => testing}/getTestUtils.spec.tsx (99%) rename packages/text-input/src/{utils/getTestUtils => testing}/getTestUtils.ts (98%) rename packages/text-input/src/{utils/getTestUtils => testing}/getTestUtils.types.ts (100%) create mode 100644 packages/text-input/src/testing/index.ts delete mode 100644 packages/text-input/src/utils/index.ts rename packages/toggle/src/{utils/getTestUtils => testing}/getTestUtils.spec.tsx (100%) rename packages/toggle/src/{utils/getTestUtils => testing}/getTestUtils.ts (100%) rename packages/toggle/src/{utils/getTestUtils => testing}/getTestUtils.types.ts (100%) create mode 100644 packages/toggle/src/testing/index.ts delete mode 100644 packages/toggle/src/utils/index.ts diff --git a/.changeset/testing-entry-points.md b/.changeset/testing-entry-points.md new file mode 100644 index 0000000000..ef2d3bde89 --- /dev/null +++ b/.changeset/testing-entry-points.md @@ -0,0 +1,6 @@ +--- +'@leafygreen-ui/select': major +--- + +- Removes `getTestUtils` from main bundle entry point +- Adds `/testing` entry point diff --git a/packages/code/src/Code.testutils.tsx b/packages/code/src/testing/Code.testutils.tsx similarity index 87% rename from packages/code/src/Code.testutils.tsx rename to packages/code/src/testing/Code.testutils.tsx index af08ab5cb0..34482063a1 100644 --- a/packages/code/src/Code.testutils.tsx +++ b/packages/code/src/testing/Code.testutils.tsx @@ -1,12 +1,14 @@ import React from 'react'; import { render, RenderResult } from '@testing-library/react'; -import Code from './Code/Code'; -import { CodeProps } from './Code/Code.types'; -import { PanelProps } from './Panel/Panel.types'; -import { Panel } from './Panel'; -import { Language } from './types'; -import { getTestUtils, TestUtilsReturnType } from './utils'; +import Code from '../Code/Code'; +import { CodeProps } from '../Code/Code.types'; +import { Panel } from '../Panel'; +import { PanelProps } from '../Panel/Panel.types'; +import { Language } from '../types'; + +import { getTestUtils } from './getTestUtils'; +import type { TestUtilsReturnType } from './getTestUtils.types'; const codeSnippet = ` import datetime from './'; diff --git a/packages/code/src/utils/getTestUtils/getTestUtils.spec.tsx b/packages/code/src/testing/getTestUtils.spec.tsx similarity index 99% rename from packages/code/src/utils/getTestUtils/getTestUtils.spec.tsx rename to packages/code/src/testing/getTestUtils.spec.tsx index 054bd7cbe7..dcbe92b8e4 100644 --- a/packages/code/src/utils/getTestUtils/getTestUtils.spec.tsx +++ b/packages/code/src/testing/getTestUtils.spec.tsx @@ -7,7 +7,7 @@ import { renderCode, renderCodeWithLanguageSwitcher, renderMultipleCodes, -} from '../../Code.testutils'; +} from '../Code.testutils'; import { getTestUtils } from './getTestUtils'; diff --git a/packages/code/src/utils/getTestUtils/getTestUtils.ts b/packages/code/src/testing/getTestUtils.ts similarity index 97% rename from packages/code/src/utils/getTestUtils/getTestUtils.ts rename to packages/code/src/testing/getTestUtils.ts index 594994a276..97dd52714b 100644 --- a/packages/code/src/utils/getTestUtils/getTestUtils.ts +++ b/packages/code/src/testing/getTestUtils.ts @@ -3,7 +3,7 @@ import { getByLgId, queryBySelector } from '@lg-tools/test-harnesses'; import { getTestUtils as getButtonTestUtils } from '@leafygreen-ui/button'; import { getTestUtils as getSelectTestUtils } from '@leafygreen-ui/select/testing'; -import { DEFAULT_LGID_ROOT, getLgIds } from '../getLgIds'; +import { DEFAULT_LGID_ROOT, getLgIds } from '../utils/getLgIds'; import { TestUtilsReturnType } from './getTestUtils.types'; diff --git a/packages/code/src/utils/getTestUtils/getTestUtils.types.ts b/packages/code/src/testing/getTestUtils.types.ts similarity index 100% rename from packages/code/src/utils/getTestUtils/getTestUtils.types.ts rename to packages/code/src/testing/getTestUtils.types.ts diff --git a/packages/code/src/testing/index.ts b/packages/code/src/testing/index.ts new file mode 100644 index 0000000000..f7d9e2cf77 --- /dev/null +++ b/packages/code/src/testing/index.ts @@ -0,0 +1 @@ +export * from './getTestUtils'; diff --git a/packages/code/src/utils/index.ts b/packages/code/src/utils/index.ts index 4e9cc8bd76..6da949276f 100644 --- a/packages/code/src/utils/index.ts +++ b/packages/code/src/utils/index.ts @@ -1,3 +1 @@ export { getLgIds, type GetLgIdsReturnType } from './getLgIds'; -export { getTestUtils } from './getTestUtils/getTestUtils'; -export type { TestUtilsReturnType } from './getTestUtils/getTestUtils.types'; diff --git a/packages/gallery-indicator/src/utils/getTestUtils/getTestUtils.spec.tsx b/packages/gallery-indicator/src/testing/getTestUtils.spec.tsx similarity index 100% rename from packages/gallery-indicator/src/utils/getTestUtils/getTestUtils.spec.tsx rename to packages/gallery-indicator/src/testing/getTestUtils.spec.tsx diff --git a/packages/gallery-indicator/src/utils/getTestUtils/getTestUtils.ts b/packages/gallery-indicator/src/testing/getTestUtils.ts similarity index 100% rename from packages/gallery-indicator/src/utils/getTestUtils/getTestUtils.ts rename to packages/gallery-indicator/src/testing/getTestUtils.ts diff --git a/packages/gallery-indicator/src/utils/getTestUtils/getTestUtils.types.ts b/packages/gallery-indicator/src/testing/getTestUtils.types.ts similarity index 100% rename from packages/gallery-indicator/src/utils/getTestUtils/getTestUtils.types.ts rename to packages/gallery-indicator/src/testing/getTestUtils.types.ts diff --git a/packages/gallery-indicator/src/testing/index.ts b/packages/gallery-indicator/src/testing/index.ts new file mode 100644 index 0000000000..f7d9e2cf77 --- /dev/null +++ b/packages/gallery-indicator/src/testing/index.ts @@ -0,0 +1 @@ +export * from './getTestUtils'; diff --git a/packages/table/src/utils/getTestUtils/getTestUtils.spec.tsx b/packages/table/src/testing/getTestUtils.spec.tsx similarity index 96% rename from packages/table/src/utils/getTestUtils/getTestUtils.spec.tsx rename to packages/table/src/testing/getTestUtils.spec.tsx index ba67319803..a534daaecb 100644 --- a/packages/table/src/utils/getTestUtils/getTestUtils.spec.tsx +++ b/packages/table/src/testing/getTestUtils.spec.tsx @@ -3,21 +3,18 @@ import { flexRender } from '@tanstack/react-table'; import { fireEvent, render } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import { Cell, HeaderCell } from '../../Cell'; -import ExpandedContent from '../../ExpandedContent'; -import { HeaderRow, Row } from '../../Row'; -import Table from '../../Table'; -import TableBody from '../../TableBody'; -import TableHead from '../../TableHead'; -import { - LeafyGreenTableCell, - LeafyGreenTableRow, -} from '../../useLeafyGreenTable'; -import { Person } from '../makeData.testutils'; +import { Cell, HeaderCell } from '../Cell'; +import ExpandedContent from '../ExpandedContent'; +import { HeaderRow, Row } from '../Row'; +import Table from '../Table'; +import TableBody from '../TableBody'; +import TableHead from '../TableHead'; +import { LeafyGreenTableCell, LeafyGreenTableRow } from '../useLeafyGreenTable'; +import { Person } from '../utils/makeData.testutils'; import { TestTableWithHookProps, useTestHookCall, -} from '../testHookCalls.testutils'; +} from '../utils/testHookCalls.testutils'; import { getTestUtils } from './getTestUtils'; diff --git a/packages/table/src/utils/getTestUtils/getTestUtils.tsx b/packages/table/src/testing/getTestUtils.tsx similarity index 98% rename from packages/table/src/utils/getTestUtils/getTestUtils.tsx rename to packages/table/src/testing/getTestUtils.tsx index ce5cdb204a..66c0534a4f 100644 --- a/packages/table/src/utils/getTestUtils/getTestUtils.tsx +++ b/packages/table/src/testing/getTestUtils.tsx @@ -1,6 +1,6 @@ import { getByLgId, queryBySelector } from '@lg-tools/test-harnesses'; -import { LGIDS } from '../../constants'; +import { LGIDS } from '../constants'; import { TestUtilsReturnType } from './getTestUtils.types'; diff --git a/packages/table/src/utils/getTestUtils/getTestUtils.types.ts b/packages/table/src/testing/getTestUtils.types.ts similarity index 100% rename from packages/table/src/utils/getTestUtils/getTestUtils.types.ts rename to packages/table/src/testing/getTestUtils.types.ts diff --git a/packages/table/src/utils/getTestUtils/index.ts b/packages/table/src/testing/index.ts similarity index 100% rename from packages/table/src/utils/getTestUtils/index.ts rename to packages/table/src/testing/index.ts diff --git a/packages/tabs/src/utils/getTestUtils/getTestUtils.spec.tsx b/packages/tabs/src/testing/getTestUtils.spec.tsx similarity index 99% rename from packages/tabs/src/utils/getTestUtils/getTestUtils.spec.tsx rename to packages/tabs/src/testing/getTestUtils.spec.tsx index ce43ec3251..ca982969e3 100644 --- a/packages/tabs/src/utils/getTestUtils/getTestUtils.spec.tsx +++ b/packages/tabs/src/testing/getTestUtils.spec.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { render } from '@testing-library/react'; -import { Tab, Tabs } from '../../'; +import { Tab, Tabs } from '../'; import { getTestUtils } from './getTestUtils'; import { TestUtilsReturnType } from './getTestUtils.types'; diff --git a/packages/tabs/src/utils/getTestUtils/getTestUtils.ts b/packages/tabs/src/testing/getTestUtils.ts similarity index 98% rename from packages/tabs/src/utils/getTestUtils/getTestUtils.ts rename to packages/tabs/src/testing/getTestUtils.ts index 80543f951b..5c06b80deb 100644 --- a/packages/tabs/src/utils/getTestUtils/getTestUtils.ts +++ b/packages/tabs/src/testing/getTestUtils.ts @@ -1,6 +1,6 @@ import { getByLgId, queryBySelector } from '@lg-tools/test-harnesses'; -import { LGIDS_TABS } from '../../constants'; +import { LGIDS_TABS } from '../constants'; import { TestUtilsReturnType } from './getTestUtils.types'; diff --git a/packages/tabs/src/utils/getTestUtils/getTestUtils.types.ts b/packages/tabs/src/testing/getTestUtils.types.ts similarity index 100% rename from packages/tabs/src/utils/getTestUtils/getTestUtils.types.ts rename to packages/tabs/src/testing/getTestUtils.types.ts diff --git a/packages/tabs/src/testing/index.ts b/packages/tabs/src/testing/index.ts new file mode 100644 index 0000000000..f7d9e2cf77 --- /dev/null +++ b/packages/tabs/src/testing/index.ts @@ -0,0 +1 @@ +export * from './getTestUtils'; diff --git a/packages/tabs/src/utils/index.ts b/packages/tabs/src/utils/index.ts index c9abcecfc3..c59d7dd7b3 100644 --- a/packages/tabs/src/utils/index.ts +++ b/packages/tabs/src/utils/index.ts @@ -1,3 +1,2 @@ export { getEnabledIndices } from './getEnabledIndices'; export { getSelectedIndex } from './getSelectedIndex'; -export { getTestUtils } from './getTestUtils/getTestUtils'; diff --git a/packages/text-area/src/utils/getTestUtils/getTestUtils.spec.tsx b/packages/text-area/src/testing/getTestUtils.spec.tsx similarity index 99% rename from packages/text-area/src/utils/getTestUtils/getTestUtils.spec.tsx rename to packages/text-area/src/testing/getTestUtils.spec.tsx index 4a75d26039..753a93fe4a 100644 --- a/packages/text-area/src/utils/getTestUtils/getTestUtils.spec.tsx +++ b/packages/text-area/src/testing/getTestUtils.spec.tsx @@ -3,7 +3,7 @@ import { renderAsyncTest } from '@lg-tools/test-harnesses'; import { render, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import { State, TextArea } from '../../TextArea'; +import { State, TextArea } from '../TextArea'; import { getTestUtils } from './getTestUtils'; diff --git a/packages/text-area/src/utils/getTestUtils/getTestUtils.ts b/packages/text-area/src/testing/getTestUtils.ts similarity index 97% rename from packages/text-area/src/utils/getTestUtils/getTestUtils.ts rename to packages/text-area/src/testing/getTestUtils.ts index d854e5f456..c0a2d857d2 100644 --- a/packages/text-area/src/utils/getTestUtils/getTestUtils.ts +++ b/packages/text-area/src/testing/getTestUtils.ts @@ -3,7 +3,7 @@ import { getByLgId, queryBySelector } from '@lg-tools/test-harnesses'; import { LGIDS_FORM_FIELD } from '@leafygreen-ui/form-field'; import { LGIDS_TYPOGRAPHY } from '@leafygreen-ui/typography'; -import { LGIDS_TEXT_AREA } from '../../constants'; +import { LGIDS_TEXT_AREA } from '../constants'; import { TestUtilsReturnType } from './getTestUtils.types'; diff --git a/packages/text-area/src/utils/getTestUtils/getTestUtils.types.ts b/packages/text-area/src/testing/getTestUtils.types.ts similarity index 100% rename from packages/text-area/src/utils/getTestUtils/getTestUtils.types.ts rename to packages/text-area/src/testing/getTestUtils.types.ts diff --git a/packages/text-area/src/testing/index.ts b/packages/text-area/src/testing/index.ts new file mode 100644 index 0000000000..f7d9e2cf77 --- /dev/null +++ b/packages/text-area/src/testing/index.ts @@ -0,0 +1 @@ +export * from './getTestUtils'; diff --git a/packages/text-area/src/utils/index.ts b/packages/text-area/src/utils/index.ts deleted file mode 100644 index baf91cfc9f..0000000000 --- a/packages/text-area/src/utils/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { getTestUtils } from './getTestUtils/getTestUtils'; diff --git a/packages/text-input/src/utils/getTestUtils/getTestUtils.spec.tsx b/packages/text-input/src/testing/getTestUtils.spec.tsx similarity index 99% rename from packages/text-input/src/utils/getTestUtils/getTestUtils.spec.tsx rename to packages/text-input/src/testing/getTestUtils.spec.tsx index 589c704c41..23644f8a0f 100644 --- a/packages/text-input/src/utils/getTestUtils/getTestUtils.spec.tsx +++ b/packages/text-input/src/testing/getTestUtils.spec.tsx @@ -3,7 +3,7 @@ import { renderAsyncTest } from '@lg-tools/test-harnesses'; import { render, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import TextInput, { State } from '../../TextInput'; +import TextInput, { State } from '../TextInput'; import { getTestUtils } from './getTestUtils'; diff --git a/packages/text-input/src/utils/getTestUtils/getTestUtils.ts b/packages/text-input/src/testing/getTestUtils.ts similarity index 98% rename from packages/text-input/src/utils/getTestUtils/getTestUtils.ts rename to packages/text-input/src/testing/getTestUtils.ts index 3005c0b542..4916ce6c71 100644 --- a/packages/text-input/src/utils/getTestUtils/getTestUtils.ts +++ b/packages/text-input/src/testing/getTestUtils.ts @@ -3,7 +3,7 @@ import { getByLgId, queryBySelector } from '@lg-tools/test-harnesses'; import { LGIDS_FORM_FIELD } from '@leafygreen-ui/form-field'; import { LGIDS_TYPOGRAPHY } from '@leafygreen-ui/typography'; -import { LGIDS_TEXT_INPUT } from '../../constants'; +import { LGIDS_TEXT_INPUT } from '../constants'; import { TestUtilsReturnType } from './getTestUtils.types'; diff --git a/packages/text-input/src/utils/getTestUtils/getTestUtils.types.ts b/packages/text-input/src/testing/getTestUtils.types.ts similarity index 100% rename from packages/text-input/src/utils/getTestUtils/getTestUtils.types.ts rename to packages/text-input/src/testing/getTestUtils.types.ts diff --git a/packages/text-input/src/testing/index.ts b/packages/text-input/src/testing/index.ts new file mode 100644 index 0000000000..f7d9e2cf77 --- /dev/null +++ b/packages/text-input/src/testing/index.ts @@ -0,0 +1 @@ +export * from './getTestUtils'; diff --git a/packages/text-input/src/utils/index.ts b/packages/text-input/src/utils/index.ts deleted file mode 100644 index baf91cfc9f..0000000000 --- a/packages/text-input/src/utils/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { getTestUtils } from './getTestUtils/getTestUtils'; diff --git a/packages/toggle/src/utils/getTestUtils/getTestUtils.spec.tsx b/packages/toggle/src/testing/getTestUtils.spec.tsx similarity index 100% rename from packages/toggle/src/utils/getTestUtils/getTestUtils.spec.tsx rename to packages/toggle/src/testing/getTestUtils.spec.tsx diff --git a/packages/toggle/src/utils/getTestUtils/getTestUtils.ts b/packages/toggle/src/testing/getTestUtils.ts similarity index 100% rename from packages/toggle/src/utils/getTestUtils/getTestUtils.ts rename to packages/toggle/src/testing/getTestUtils.ts diff --git a/packages/toggle/src/utils/getTestUtils/getTestUtils.types.ts b/packages/toggle/src/testing/getTestUtils.types.ts similarity index 100% rename from packages/toggle/src/utils/getTestUtils/getTestUtils.types.ts rename to packages/toggle/src/testing/getTestUtils.types.ts diff --git a/packages/toggle/src/testing/index.ts b/packages/toggle/src/testing/index.ts new file mode 100644 index 0000000000..f7d9e2cf77 --- /dev/null +++ b/packages/toggle/src/testing/index.ts @@ -0,0 +1 @@ +export * from './getTestUtils'; diff --git a/packages/toggle/src/utils/index.ts b/packages/toggle/src/utils/index.ts deleted file mode 100644 index baf91cfc9f..0000000000 --- a/packages/toggle/src/utils/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { getTestUtils } from './getTestUtils/getTestUtils'; From db2ea8aaa2222d0e42752bb4c393cd4ba72541b7 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 18 Apr 2025 18:42:36 -0400 Subject: [PATCH 091/123] fix references & updates package.json files --- packages/code/package.json | 12 ++++++++++++ packages/code/src/index.ts | 7 +------ packages/date-utils/package.json | 8 ++++++++ packages/gallery-indicator/package.json | 13 +++++++++++++ packages/gallery-indicator/src/index.ts | 1 - .../src/testing/getTestUtils.spec.tsx | 5 +---- .../gallery-indicator/src/testing/getTestUtils.ts | 2 +- packages/table/package.json | 12 ++++++++++++ packages/table/src/index.ts | 1 - packages/tabs/package.json | 12 ++++++++++++ packages/tabs/src/index.ts | 1 - packages/text-area/package.json | 12 ++++++++++++ packages/text-area/src/index.ts | 1 - packages/text-input/package.json | 12 ++++++++++++ packages/text-input/src/index.ts | 1 - packages/toggle/package.json | 12 ++++++++++++ packages/toggle/src/index.ts | 1 - packages/toggle/src/testing/getTestUtils.spec.tsx | 2 +- packages/toggle/src/testing/getTestUtils.ts | 2 +- 19 files changed, 98 insertions(+), 19 deletions(-) diff --git a/packages/code/package.json b/packages/code/package.json index 00a0160fc6..f681682bf1 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -6,6 +6,18 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, + "exports": { + ".": { + "import": "./dist/esm/index.js", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "./testing": { + "import": "./dist/esm/testing/index.js", + "require": "./dist/testing/index.js", + "types": "./dist/testing/index.d.ts" + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/code/src/index.ts b/packages/code/src/index.ts index 8600078856..cb735842a4 100644 --- a/packages/code/src/index.ts +++ b/packages/code/src/index.ts @@ -7,11 +7,6 @@ export type { LanguageOption } from './Panel/Panel.types'; export type { SyntaxProps } from './Syntax/Syntax.types'; export type { LineHighlightingDefinition } from './types'; export { Language } from './types'; -export { - getLgIds, - type GetLgIdsReturnType, - getTestUtils, - type TestUtilsReturnType, -} from './utils'; +export { getLgIds, type GetLgIdsReturnType } from './utils'; export default Code; diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index 919b66a019..32846bd29d 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -6,6 +6,14 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", + "typesVersions": {}, + "exports": { + ".": { + "import": "./dist/esm/index.js", + "require": "./dist/umd/index.js", + "types": "./dist/types/index.d.ts" + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index 4bdbfb3ca2..d58fbf4472 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -5,6 +5,19 @@ "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", + "typesVersions": {}, + "exports": { + ".": { + "import": "./dist/esm/index.js", + "require": "./dist/umd/index.js", + "types": "./dist/types/index.d.ts" + }, + "./testing": { + "import": "./dist/esm/testing/index.js", + "require": "./dist/umd/testing/index.js", + "types": "./dist/types/testing/index.d.ts" + } + }, "license": "Apache-2.0", "scripts": { "build": "lg build-package", diff --git a/packages/gallery-indicator/src/index.ts b/packages/gallery-indicator/src/index.ts index be2d6904ac..79bea5e200 100644 --- a/packages/gallery-indicator/src/index.ts +++ b/packages/gallery-indicator/src/index.ts @@ -3,4 +3,3 @@ export { GalleryIndicator, type GalleryIndicatorProps, } from './GalleryIndicator'; -export { getTestUtils } from './utils/getTestUtils/getTestUtils'; diff --git a/packages/gallery-indicator/src/testing/getTestUtils.spec.tsx b/packages/gallery-indicator/src/testing/getTestUtils.spec.tsx index 07b1d1a418..88a016079e 100644 --- a/packages/gallery-indicator/src/testing/getTestUtils.spec.tsx +++ b/packages/gallery-indicator/src/testing/getTestUtils.spec.tsx @@ -1,10 +1,7 @@ import React from 'react'; import { render } from '@testing-library/react'; -import { - GalleryIndicator, - GalleryIndicatorProps, -} from '../../GalleryIndicator'; +import { GalleryIndicator, GalleryIndicatorProps } from '../GalleryIndicator'; import { getTestUtils } from './getTestUtils'; diff --git a/packages/gallery-indicator/src/testing/getTestUtils.ts b/packages/gallery-indicator/src/testing/getTestUtils.ts index 4eddb15bd5..8f1794af22 100644 --- a/packages/gallery-indicator/src/testing/getTestUtils.ts +++ b/packages/gallery-indicator/src/testing/getTestUtils.ts @@ -1,6 +1,6 @@ import { getByLgId } from '@lg-tools/test-harnesses'; -import { LGIDs } from '../../constants'; +import { LGIDs } from '../constants'; import { TestUtilsReturnType } from './getTestUtils.types'; diff --git a/packages/table/package.json b/packages/table/package.json index 0a62ae7613..775b00e8b2 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -6,6 +6,18 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, + "exports": { + ".": { + "import": "./dist/esm/index.js", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "./testing": { + "import": "./dist/esm/testing/index.js", + "require": "./dist/testing/index.js", + "types": "./dist/testing/index.d.ts" + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/table/src/index.ts b/packages/table/src/index.ts index c48efb0876..10eeff2f2e 100644 --- a/packages/table/src/index.ts +++ b/packages/table/src/index.ts @@ -24,7 +24,6 @@ export { type LeafyGreenVirtualTableOptions, default as useLeafyGreenVirtualTable, } from './useLeafyGreenVirtualTable'; -export { getTestUtils } from './utils/getTestUtils'; // TODO: Check if some exports might clash with our exports export * from '@tanstack/react-table'; export { type VirtualItem } from '@tanstack/react-virtual'; diff --git a/packages/tabs/package.json b/packages/tabs/package.json index a92eac6ed4..d57dd5c494 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -6,6 +6,18 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, + "exports": { + ".": { + "import": "./dist/esm/index.js", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "./testing": { + "import": "./dist/esm/testing/index.js", + "require": "./dist/testing/index.js", + "types": "./dist/testing/index.d.ts" + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/tabs/src/index.ts b/packages/tabs/src/index.ts index ca26db91f9..83ac66fa49 100644 --- a/packages/tabs/src/index.ts +++ b/packages/tabs/src/index.ts @@ -9,4 +9,3 @@ export { default as Tabs, type AccessibleTabsProps as TabsProps, } from './Tabs'; -export { getTestUtils } from './utils'; diff --git a/packages/text-area/package.json b/packages/text-area/package.json index 67e558ff87..e0e2c3901c 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -6,6 +6,18 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, + "exports": { + ".": { + "import": "./dist/esm/index.js", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "./testing": { + "import": "./dist/esm/testing/index.js", + "require": "./dist/testing/index.js", + "types": "./dist/testing/index.d.ts" + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/text-area/src/index.ts b/packages/text-area/src/index.ts index f2501e41ea..274dab1ce5 100644 --- a/packages/text-area/src/index.ts +++ b/packages/text-area/src/index.ts @@ -1,2 +1 @@ export { TextArea as default, State, type TextAreaProps } from './TextArea'; -export { getTestUtils } from './utils'; diff --git a/packages/text-input/package.json b/packages/text-input/package.json index 6a670aff86..55150dd780 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -6,6 +6,18 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, + "exports": { + ".": { + "import": "./dist/esm/index.js", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "./testing": { + "import": "./dist/esm/testing/index.js", + "require": "./dist/testing/index.js", + "types": "./dist/testing/index.d.ts" + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/text-input/src/index.ts b/packages/text-input/src/index.ts index cafea619d3..9fbd50efa5 100644 --- a/packages/text-input/src/index.ts +++ b/packages/text-input/src/index.ts @@ -8,4 +8,3 @@ export { TextInputFontSize, TextInputType, } from './TextInput'; -export { getTestUtils } from './utils'; diff --git a/packages/toggle/package.json b/packages/toggle/package.json index e88c1d7a46..cb842cc007 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -6,6 +6,18 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, + "exports": { + ".": { + "import": "./dist/esm/index.js", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, + "./testing": { + "import": "./dist/esm/testing/index.js", + "require": "./dist/testing/index.js", + "types": "./dist/testing/index.d.ts" + } + }, "scripts": { "build": "lg build-package", "tsc": "lg build-ts", diff --git a/packages/toggle/src/index.ts b/packages/toggle/src/index.ts index 6b84ef8028..da36b6efe6 100644 --- a/packages/toggle/src/index.ts +++ b/packages/toggle/src/index.ts @@ -1,5 +1,4 @@ import Toggle from './Toggle/Toggle'; export type { ToggleProps } from './Toggle/types'; export { Size } from './Toggle/types'; -export { getTestUtils } from './utils'; export default Toggle; diff --git a/packages/toggle/src/testing/getTestUtils.spec.tsx b/packages/toggle/src/testing/getTestUtils.spec.tsx index ea9caa4245..77afd5d764 100644 --- a/packages/toggle/src/testing/getTestUtils.spec.tsx +++ b/packages/toggle/src/testing/getTestUtils.spec.tsx @@ -3,7 +3,7 @@ import { renderAsyncTest } from '@lg-tools/test-harnesses'; import { render, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import Toggle from '../../Toggle/Toggle'; +import Toggle from '../Toggle/Toggle'; import { getTestUtils } from './getTestUtils'; diff --git a/packages/toggle/src/testing/getTestUtils.ts b/packages/toggle/src/testing/getTestUtils.ts index 81c3bd2cd3..08d3b2a10a 100644 --- a/packages/toggle/src/testing/getTestUtils.ts +++ b/packages/toggle/src/testing/getTestUtils.ts @@ -1,6 +1,6 @@ import { getByLgId } from '@lg-tools/test-harnesses'; -import { LGIDS_TOGGLE } from '../../constants'; +import { LGIDS_TOGGLE } from '../constants'; import { TestUtilsReturnType } from './getTestUtils.types'; From e3a2ba3822fd3e6855e89c272e4f2a55130cca52 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 21 Apr 2025 15:25:42 -0400 Subject: [PATCH 092/123] Update testing-entry-points.md --- .changeset/testing-entry-points.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.changeset/testing-entry-points.md b/.changeset/testing-entry-points.md index ef2d3bde89..e303d27b82 100644 --- a/.changeset/testing-entry-points.md +++ b/.changeset/testing-entry-points.md @@ -1,6 +1,24 @@ --- +'@leafygreen-ui/code': major +'@leafygreen-ui/gallery-indicator': major '@leafygreen-ui/select': major +'@leafygreen-ui/table': major +'@leafygreen-ui/tabs': major +'@leafygreen-ui/text-area': major +'@leafygreen-ui/text-input': major +'@leafygreen-ui/toggle': major --- - -- Removes `getTestUtils` from main bundle entry point +Adds code splitting for test utilities - Adds `/testing` entry point +- Removes `getTestUtils` from main bundle entry point + +When using the component, testing utilities won't be included into your final bundle +```tsx +// App.tsx +import { Component } from `@leafygreen-ui/` +``` + +Testing utilities (and their dependencies) will only be imported if you import them explicitly +```tsx +import { getTestUtils } from `@leafygreen-ui//testing` +``` From b022ad3227d6d3fd119a628eee959f328b2f96fd Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 23 Apr 2025 18:05:37 -0400 Subject: [PATCH 093/123] Squashed commit of the following: commit de78962c9e7fcd63c56a4596df555a82d0de6897 Author: Adam Michael Thompson Date: Wed Apr 23 17:34:03 2025 -0400 restores missing deps commit 40c04dc1130fe71522483650aa3b9ffe909435b2 Author: Adam Michael Thompson Date: Wed Apr 23 16:24:24 2025 -0400 ts-expect-error commit 1aa2200a38a5a88e78daafe70694a5e4844a992c Author: Adam Michael Thompson Date: Wed Apr 23 16:22:23 2025 -0400 Update pnpm-lock.yaml commit 85191287daf435a9f899cc64392875cd1f467845 Author: Adam Michael Thompson Date: Wed Apr 23 13:12:30 2025 -0400 updates palette rollup config commit 59d88320e12997eb08793b691039e9f2872e5821 Author: Adam Michael Thompson Date: Wed Apr 23 13:11:35 2025 -0400 updates /bin commit 6afd16ef37f94de864ddfab2f3c320d781b55066 Author: Adam Michael Thompson Date: Wed Apr 23 13:10:36 2025 -0400 updates main package.json entries commit 9ebcfed522a9c27b8b76a89ae032af09594e8b41 Author: Adam Michael Thompson Date: Wed Apr 23 13:09:08 2025 -0400 Updates rollup config to output UMD directory --- .changeset/all-umd-entry-point.md | 108 ++++++++++++++++++++++++++++++ packages/palette/package.json | 1 + packages/palette/tsconfig.json | 17 ++--- pnpm-lock.yaml | 3 + tools/build/package.json | 2 +- 5 files changed, 117 insertions(+), 14 deletions(-) create mode 100644 .changeset/all-umd-entry-point.md diff --git a/.changeset/all-umd-entry-point.md b/.changeset/all-umd-entry-point.md new file mode 100644 index 0000000000..7cd444830c --- /dev/null +++ b/.changeset/all-umd-entry-point.md @@ -0,0 +1,108 @@ +--- +'@lg-chat/leafygreen-chat-provider': patch +'@leafygreen-ui/leafygreen-provider': patch +'@leafygreen-ui/confirmation-modal': patch +'@leafygreen-ui/gallery-indicator': patch +'@leafygreen-ui/inline-definition': patch +'@leafygreen-ui/loading-indicator': patch +'@leafygreen-ui/segmented-control': patch +'@lg-tools/storybook-decorators': patch +'@leafygreen-ui/expandable-card': patch +'@leafygreen-ui/marketing-modal': patch +'@leafygreen-ui/radio-box-group': patch +'@leafygreen-ui/skeleton-loader': patch +'@leafygreen-ui/password-input': patch +'@lg-charts/series-provider': patch +'@lg-chat/fixed-chat-window': patch +'@leafygreen-ui/info-sprinkle': patch +'@lg-chat/message-feedback': patch +'@leafygreen-ui/input-option': patch +'@leafygreen-ui/number-input': patch +'@leafygreen-ui/ordered-list': patch +'@leafygreen-ui/search-input': patch +'@leafygreen-ui/split-button': patch +'@lg-tools/storybook-addon': patch +'@lg-tools/storybook-utils': patch +'@lg-charts/drag-provider': patch +'@lg-chat/chat-disclaimer': patch +'@lg-chat/message-prompts': patch +'@leafygreen-ui/date-picker': patch +'@leafygreen-ui/descendants': patch +'@leafygreen-ui/empty-state': patch +'@leafygreen-ui/form-footer': patch +'@leafygreen-ui/icon-button': patch +'@leafygreen-ui/polymorphic': patch +'@leafygreen-ui/radio-group': patch +'@leafygreen-ui/testing-lib': patch +'@lg-tools/test-harnesses': patch +'@lg-chat/message-rating': patch +'@leafygreen-ui/date-utils': patch +'@leafygreen-ui/form-field': patch +'@leafygreen-ui/pagination': patch +'@leafygreen-ui/text-input': patch +'@leafygreen-ui/typography': patch +'@leafygreen-ui/guide-cue': patch +'@leafygreen-ui/text-area': patch +'@lg-charts/chart-card': patch +'@lg-chat/message-feed': patch +'@leafygreen-ui/checkbox': patch +'@leafygreen-ui/combobox': patch +'@leafygreen-ui/copyable': patch +'@leafygreen-ui/pipeline': patch +'@leafygreen-ui/side-nav': patch +'@lg-chat/chat-window': patch +'@lg-chat/lg-markdown': patch +'@leafygreen-ui/callout': patch +'@leafygreen-ui/emotion': patch +'@leafygreen-ui/palette': patch +'@leafygreen-ui/popover': patch +'@leafygreen-ui/stepper': patch +'@leafygreen-ui/tooltip': patch +'@lg-chat/rich-links': patch +'@leafygreen-ui/avatar': patch +'@leafygreen-ui/banner': patch +'@leafygreen-ui/button': patch +'@leafygreen-ui/drawer': patch +'@leafygreen-ui/portal': patch +'@leafygreen-ui/ripple': patch +'@leafygreen-ui/select': patch +'@leafygreen-ui/toggle': patch +'@leafygreen-ui/tokens': patch +'@lg-chat/input-bar': patch +'@lg-chat/title-bar': patch +'@leafygreen-ui/badge': patch +'@leafygreen-ui/hooks': patch +'@leafygreen-ui/modal': patch +'@leafygreen-ui/table': patch +'@leafygreen-ui/toast': patch +'@lg-tools/codemods': patch +'@lg-tools/slackbot': patch +'@lg-tools/validate': patch +'@lg-charts/colors': patch +'@lg-charts/legend': patch +'@leafygreen-ui/a11y': patch +'@leafygreen-ui/card': patch +'@leafygreen-ui/chip': patch +'@leafygreen-ui/code': patch +'@leafygreen-ui/icon': patch +'@leafygreen-ui/logo': patch +'@leafygreen-ui/menu': patch +'@leafygreen-ui/tabs': patch +'@lg-tools/install': patch +'@lg-chat/message': patch +'@leafygreen-ui/box': patch +'@leafygreen-ui/lib': patch +'@lg-tools/create': patch +'@lg-tools/update': patch +'@lg-charts/core': patch +'@lg-chat/avatar': patch +'@lg-tools/build': patch +'@lg-tools/link': patch +'@lg-tools/lint': patch +'@lg-tools/meta': patch +'@lg-tools/test': patch +'@lg-tools/cli': patch +'lg-scripts': patch +--- + +Updates `main` entry point in package.json to `./dist/umd` diff --git a/packages/palette/package.json b/packages/palette/package.json index 640b5d0664..516213ccd7 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -19,6 +19,7 @@ "devDependencies": { "@leafygreen-ui/emotion": "workspace:^", "@leafygreen-ui/lib": "workspace:^", + "@lg-tools/build": "workspace:^", "@rollup/plugin-url": "8.0.2", "polished": "^4.2.2" }, diff --git a/packages/palette/tsconfig.json b/packages/palette/tsconfig.json index 7d7dd3a781..908fd5fe2b 100644 --- a/packages/palette/tsconfig.json +++ b/packages/palette/tsconfig.json @@ -2,20 +2,11 @@ "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": [ - "../icon/src/generated/*" - ], - "@leafygreen-ui/*": [ - "../*/src" - ] + "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], + "@leafygreen-ui/*": ["../*/src"] } }, - "include": [ - "src/**/*" - ], - "exclude": [ - "**/*.spec.*", - "**/*.stories.*" - ], + "include": ["src/**/*"], + "exclude": ["**/*.spec.*", "**/*.stories.*"], "references": [] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c86dbb84f..9fe06267c9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2051,6 +2051,9 @@ importers: '@leafygreen-ui/lib': specifier: workspace:^ version: link:../lib + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build '@rollup/plugin-url': specifier: 8.0.2 version: 8.0.2 diff --git a/tools/build/package.json b/tools/build/package.json index 123caa368c..b15c01b3ee 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -10,7 +10,7 @@ "lg-internal-build-package": "./bin/build-package.js", "lg-ts-downlevel": "./bin/ts-downlevel.js" }, - "main": "dist/index.js", + "main": "./dist/umd/index.js", "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { From 51dd5bb4673164db8156d58de2a893a1d186fe0c Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 24 Apr 2025 12:56:42 -0400 Subject: [PATCH 094/123] Squashed commit of the following: commit 7a26993b5219be212d7c944c86bab13e493cda6f Author: Adam Michael Thompson Date: Wed Apr 23 19:42:44 2025 -0400 Update icon & testing lib commit de78962c9e7fcd63c56a4596df555a82d0de6897 Author: Adam Michael Thompson Date: Wed Apr 23 17:34:03 2025 -0400 restores missing deps commit 40c04dc1130fe71522483650aa3b9ffe909435b2 Author: Adam Michael Thompson Date: Wed Apr 23 16:24:24 2025 -0400 ts-expect-error commit 1aa2200a38a5a88e78daafe70694a5e4844a992c Author: Adam Michael Thompson Date: Wed Apr 23 16:22:23 2025 -0400 Update pnpm-lock.yaml commit 85191287daf435a9f899cc64392875cd1f467845 Author: Adam Michael Thompson Date: Wed Apr 23 13:12:30 2025 -0400 updates palette rollup config commit 59d88320e12997eb08793b691039e9f2872e5821 Author: Adam Michael Thompson Date: Wed Apr 23 13:11:35 2025 -0400 updates /bin commit 6afd16ef37f94de864ddfab2f3c320d781b55066 Author: Adam Michael Thompson Date: Wed Apr 23 13:10:36 2025 -0400 updates main package.json entries commit 9ebcfed522a9c27b8b76a89ae032af09594e8b41 Author: Adam Michael Thompson Date: Wed Apr 23 13:09:08 2025 -0400 Updates rollup config to output UMD directory --- .changeset/few-bulldogs-jump.md | 5 +++++ .changeset/grumpy-onions-return.md | 5 +++++ packages/icon/rollup.config.mjs | 2 ++ packages/palette/tsconfig.json | 17 +++++++++++++---- packages/testing-lib/rollup.config.mjs | 18 ++++++------------ pnpm-lock.yaml | 15 +++++++++++++++ 6 files changed, 46 insertions(+), 16 deletions(-) create mode 100644 .changeset/few-bulldogs-jump.md create mode 100644 .changeset/grumpy-onions-return.md diff --git a/.changeset/few-bulldogs-jump.md b/.changeset/few-bulldogs-jump.md new file mode 100644 index 0000000000..faa7906f20 --- /dev/null +++ b/.changeset/few-bulldogs-jump.md @@ -0,0 +1,5 @@ +--- +'@leafygreen-ui/icon': patch +--- + +Updates icon rollup config to add umd bundle to `dist` _and_ `dist/umd` (to avoid breaking the existing entry points) diff --git a/.changeset/grumpy-onions-return.md b/.changeset/grumpy-onions-return.md new file mode 100644 index 0000000000..0ab464e98c --- /dev/null +++ b/.changeset/grumpy-onions-return.md @@ -0,0 +1,5 @@ +--- +'@leafygreen-ui/testing-lib': patch +--- + +Updates rollup config for `renderHookServer` diff --git a/packages/icon/rollup.config.mjs b/packages/icon/rollup.config.mjs index ec9241830a..4df2871dad 100644 --- a/packages/icon/rollup.config.mjs +++ b/packages/icon/rollup.config.mjs @@ -35,6 +35,8 @@ const iconConfigs = [esmConfig, umdConfig].flatMap(config => })), ); +// Until we explicitly code-split the icons, we need to +// create a separate build for each icon at the `dist` root iconConfigs.push( ...getGeneratedFiles().map(file => ({ ...umdConfig, diff --git a/packages/palette/tsconfig.json b/packages/palette/tsconfig.json index 908fd5fe2b..7d7dd3a781 100644 --- a/packages/palette/tsconfig.json +++ b/packages/palette/tsconfig.json @@ -2,11 +2,20 @@ "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], - "@leafygreen-ui/*": ["../*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [] } diff --git a/packages/testing-lib/rollup.config.mjs b/packages/testing-lib/rollup.config.mjs index e4b749f849..faec1f5d06 100644 --- a/packages/testing-lib/rollup.config.mjs +++ b/packages/testing-lib/rollup.config.mjs @@ -3,16 +3,10 @@ import { esmConfig, umdConfig } from '@lg-tools/build/config/rollup.config.mjs'; export default [ esmConfig, umdConfig, - { - ...esmConfig, - input: ['./src/renderHookServer.tsx', './src/renderHookServerV17.tsx'], - output: { - // cjs is fully supported in node.js - format: 'cjs', // overrides esm format from esmConfig.output - entryFileNames: '[name].js', - dir: 'dist', - preserveModules: true, - exports: 'auto', - }, - }, + ...['./src/renderHookServer.tsx', './src/renderHookServerV17.tsx'].map( + input => ({ + ...umdConfig, + input, + }), + ), ]; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9fe06267c9..dd5dc765d5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4993,6 +4993,15 @@ packages: rollup: optional: true + '@rollup/plugin-url@8.0.2': + resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + '@rollup/pluginutils@5.0.2': resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} engines: {node: '>=14.0.0'} @@ -12383,6 +12392,12 @@ snapshots: make-dir: 3.1.0 mime: 3.0.0 + '@rollup/plugin-url@8.0.2': + dependencies: + '@rollup/pluginutils': 5.0.2(rollup@4.16.1) + make-dir: 3.1.0 + mime: 3.0.0 + '@rollup/pluginutils@5.0.2(rollup@4.16.1)': dependencies: '@types/estree': 1.0.6 From 4d4948cf066abdf5e03e8e7cc627f7ce2eaa5eac Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 24 Apr 2025 12:57:46 -0400 Subject: [PATCH 095/123] Update pnpm-lock.yaml --- pnpm-lock.yaml | 131 ++++++++++++++++++++++--------------------------- 1 file changed, 58 insertions(+), 73 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dd5dc765d5..81e63ce909 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1623,7 +1623,7 @@ importers: version: 11.0.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250423) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250424) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -3354,10 +3354,10 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424) '@storybook/test': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) @@ -3366,7 +3366,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.9.0-dev.20250423) + version: 8.0.1(typescript@5.9.0-dev.20250424) assert: specifier: ^2.1.0 version: 2.1.0 @@ -3408,7 +3408,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.9.0-dev.20250423) + version: 2.2.2(typescript@5.9.0-dev.20250424) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3555,7 +3555,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -4993,15 +4993,6 @@ packages: rollup: optional: true - '@rollup/plugin-url@8.0.2': - resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - '@rollup/pluginutils@5.0.2': resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} engines: {node: '>=14.0.0'} @@ -10241,8 +10232,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.9.0-dev.20250423: - resolution: {integrity: sha512-+r3x9N0J/p6S0zh/xyfFhaeS+neYCpmVmUxg0Xm5ZWPU672Bhpx/5r/pMg184u/Onk4LYHbAlChXuqdSdsTYcw==} + typescript@5.9.0-dev.20250424: + resolution: {integrity: sha512-jO9Ju2gM0ttqxutigFlarB41uOnuB0H1QpXeAJXF4o3tMno6mEDMAe8Pm2bp6S6TqUt3C+J6K5y8EMs1/Bumyg==} engines: {node: '>=14.17'} hasBin: true @@ -12119,7 +12110,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12133,7 +12124,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12392,12 +12383,6 @@ snapshots: make-dir: 3.1.0 mime: 3.0.0 - '@rollup/plugin-url@8.0.2': - dependencies: - '@rollup/pluginutils': 5.0.2(rollup@4.16.1) - make-dir: 3.1.0 - mime: 3.0.0 - '@rollup/pluginutils@5.0.2(rollup@4.16.1)': dependencies: '@types/estree': 1.0.6 @@ -12608,7 +12593,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 @@ -12618,7 +12603,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250423)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250424)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -12636,7 +12621,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 transitivePeerDependencies: - '@swc/core' - esbuild @@ -12754,11 +12739,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250423)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250424)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -12771,7 +12756,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -12788,16 +12773,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250423)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250424)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250423) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250424) tslib: 2.6.2 - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -12814,16 +12799,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) optionalDependencies: - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -12862,7 +12847,7 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) typescript: 5.8.3 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250423)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 @@ -12875,7 +12860,7 @@ snapshots: storybook: 8.6.12(prettier@3.5.3) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: @@ -13042,12 +13027,12 @@ snapshots: - supports-color - typescript - '@svgr/core@8.0.0(typescript@5.9.0-dev.20250423)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250424)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250423) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250424) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13092,11 +13077,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250423))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250424))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250423) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250424) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: @@ -13127,10 +13112,10 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250423))(typescript@5.9.0-dev.20250423)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250424))(typescript@5.9.0-dev.20250424)': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250423) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250423) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250424) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250424) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: @@ -13161,16 +13146,16 @@ snapshots: - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250423)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250424)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250423) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250423)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250423))(typescript@5.9.0-dev.20250423) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250424) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250424)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250424))(typescript@5.9.0-dev.20250424) transitivePeerDependencies: - supports-color - typescript @@ -14477,14 +14462,14 @@ snapshots: optionalDependencies: typescript: 5.8.3 - cosmiconfig@8.3.6(typescript@5.9.0-dev.20250423): + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250424): dependencies: import-fresh: 3.3.0 js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 optionalDependencies: - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 create-ecdh@4.0.4: dependencies: @@ -14880,7 +14865,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 dunder-proto@1.0.1: dependencies: @@ -15497,7 +15482,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250423)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250424)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15511,7 +15496,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -16191,16 +16176,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16275,7 +16260,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16301,7 +16286,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16569,12 +16554,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -18002,9 +17987,9 @@ snapshots: dependencies: typescript: 5.8.3 - react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250423): + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250424): dependencies: - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 react-docgen@7.0.3: dependencies: @@ -18962,7 +18947,7 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250423): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250424): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -18976,13 +18961,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250423): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -18996,7 +18981,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250423 + typescript: 5.9.0-dev.20250424 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19123,7 +19108,7 @@ snapshots: typescript@5.8.3: {} - typescript@5.9.0-dev.20250423: {} + typescript@5.9.0-dev.20250424: {} unbox-primitive@1.0.2: dependencies: From 00576e13508aeb24fb11a79cf4b125322ffd48f8 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 25 Apr 2025 16:42:12 -0400 Subject: [PATCH 096/123] Squashed commit of the following: commit 93187f8ce4f12f1978f91332b49e0a75f5c263a8 Merge: 2c5fb26bf 9530c2442 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:30 2025 -0400 Merge branch 'integration/tooling' into a/tsconfig-only commit 9530c24424908967c92fc8ef5a8605d277eafd4b Merge: 254eb28c8 2cb75f722 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 2c5fb26bf3c8cbd154cc9d301f73a85eebbb5b4e Merge: ca5d75949 254eb28c8 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:11:30 2025 -0400 Merge branch 'integration/tooling' into a/tsconfig-only commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit ca5d75949ec883e1b63ab24c5f3cbd59e2c5b448 Author: Adam Michael Thompson Date: Fri Apr 25 14:05:47 2025 -0400 Update all-types-entry-point.md commit 3e63f84c400af6ce4c02a24b90994b99e58ea4e4 Author: Adam Michael Thompson Date: Fri Apr 25 13:58:47 2025 -0400 Update pnpm-lock.yaml commit 6f522a1c78686b47baa416f75db65d1d1b3252c1 Author: Adam Michael Thompson Date: Fri Apr 25 13:56:47 2025 -0400 Update package.json commit c117c3202e6c6e4a18af7771004c260e1451d470 Author: Adam Michael Thompson Date: Fri Apr 25 13:50:12 2025 -0400 Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson Date: Thu Apr 24 17:35:10 2025 -0400 Merge branch 'a/ts5' of https://github.com/mongodb/leafygreen-ui into a/ts5 commit eba052c5b4da9cca0374043c6333614c85469102 Author: Adam Michael Thompson Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 160fecb1ba2acf91e57f9cc5622982392238e960 Merge: a01525f2f 028147fe1 Author: Adam Michael Thompson Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 06ec702e08075e1c99003b917677385e5d1f1b47 Author: Adam Michael Thompson Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 commit 28e07be384d8bae2023bb9c45aacf25ffbc24cae Author: Adam Michael Thompson Date: Wed Apr 23 17:42:41 2025 -0400 Update prettier.ts commit b3d5064ac8c31a251af676403506a377e80c6995 Author: Adam Michael Thompson Date: Wed Apr 23 13:49:18 2025 -0400 fix builds commit fe9e28e1513621e40ba4e2ea788c20ae828da079 Author: Adam Michael Thompson Date: Wed Apr 23 13:16:40 2025 -0400 code postinstall commit bf41482ac29c11f2ecb990878c73e582a5d28721 Author: Adam Michael Thompson Date: Wed Apr 23 13:05:29 2025 -0400 adds types entry point in package.json commit 48406e6ce65c04045b9dcdc5d41eda91936cb0b5 Author: Adam Michael Thompson Date: Wed Apr 23 13:00:06 2025 -0400 adds changesets commit 643b5abb4f8c28bf69a7236c91398442216b2bea Author: Adam Michael Thompson Date: Wed Apr 23 13:00:01 2025 -0400 updates all TSconfigs commit 7fca8c3e82e34f622346e8406340f4c55a3692c9 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 7c4cf8dc980c9930cf08e07fde4e806aa083b718 Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit 246e75da4f728d34f18ded48da43257dd1d8b7bd Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit fcabae7afb9fd3f399e9714bc297e62eea6403b9 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 1f3bb4749da51b87eb7908dec29ce62d5a2ca14b Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit f252097dd7c9f9649cbe9d58922f08ec8dd3147f Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit 1d3e354147e38366bcc4dd330ae8026b9c2b490e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit 4494baac98464a4edb88ea07838560b823a0bc73 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit c509b66a1af4742f2d0a9348064a6d7fd90796fe Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit fd2660ebfa7f436d3f806c84a85c21a15f864578 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit da5d5995144f8bb5cb9b368bdca77769089467a2 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 396734328895c0e83241aaa86006a1f6ffdac01b Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit 24eb33785f4f7c4ed6defb5cc6cc6c7c748bdf3e Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 6c89df54a8c7340f668e8d77714d73c26d720334 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit f33cff2da147cccbe06a26db40543acda5107974 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit f99cf51f3537df303a4027991e24a175b1308c76 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 9e39ae7d13cf5f159b1d45d02f06d6544c1e03d3 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 8b3fca0ca9e38cda7db0a2a428a68db803d853d5 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit d01af2db9d81f415d4cafe35aa175988961bfad2 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 69753cf7976af8b82ffb7f2c1d2a16acea7fd330 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit d9ccd29c3dd0eee067dd0155ec995663155188d3 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 6a932675488f5da2872d85195c25aa72fc06012d Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit 4e51e5985c01cc939d9cfe243d933abb5d3f2920 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit cda25cca057da151586e4799696872b03c2fe0a4 Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 20d11549670a16e560ef65a721c9157cc7f00d36 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit 321b1f5f64e902801e64ccea337c47808ebf7345 Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit fdb2ff4c18d06d04eefef865740b597eeccda571 Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 2cb75f7226a01702d31ff67c4d7161a9651460f5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit 989387c95945d4482bac569f41dc8289fbf55708 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 18:28:06 2025 -0400 Validate builds based on `package.json` (#2823) * update validate to use package entry files * Create validate-build-package-json.md * updates types validation only validate if it should exist * rm validate ignore * Update index.ts commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration --- .changeset/all-types-entry-point.md | 3 +- .changeset/checkbox-remove-legacy.md | 5 + .changeset/cli-ts-update-flag.md | 5 + .changeset/lg-build-cli.md | 22 +++ charts/core/tsconfig.json | 8 +- chat/lg-markdown/tsconfig.json | 17 +- package.json | 4 +- packages/checkbox/src/LegacyCheck.tsx | 115 ------------ .../src/img/disabled-dark-checked.png | Bin 623 -> 0 bytes packages/checkbox/src/img/disabled-dark.png | Bin 474 -> 0 bytes .../src/img/disabled-light-checked.png | Bin 522 -> 0 bytes packages/checkbox/src/img/disabled-light.png | Bin 848 -> 0 bytes .../checkbox/src/img/indeterminate-dark.png | Bin 1286 -> 0 bytes .../checkbox/src/img/indeterminate-light.png | Bin 744 -> 0 bytes packages/checkbox/src/img/index.ts | 19 -- .../checkbox/src/img/spritesheet-dark.png | Bin 35821 -> 0 bytes .../checkbox/src/img/spritesheet-light.png | Bin 28858 -> 0 bytes pnpm-lock.yaml | 175 +++++++++--------- tools/build/README.md | 2 +- tools/build/bin/build.js | 2 + tools/build/package.json | 8 +- tools/build/rollup.config.mjs | 8 + tools/build/scripts/build-ts.sh | 13 +- tools/build/scripts/build.sh | 2 +- tools/build/src/buildAll.ts | 19 ++ tools/build/src/cli.ts | 43 +++++ tools/build/src/index.ts | 20 +- .../src/typescript/downlevel/downlevel-dts.ts | 1 + .../downlevel/updatePackageJsonTypes.ts | 25 +-- .../src/typescript/parsePassThruOptions.ts | 6 +- tools/build/turbo.json | 22 +++ tools/cli/package.json | 4 +- tools/cli/src/index.ts | 5 + tools/codemods/package.json | 4 +- tools/create/package.json | 4 +- tools/install/package.json | 4 +- tools/install/turbo.json | 2 +- tools/link/package.json | 4 +- tools/lint/package.json | 2 +- tools/lint/tsconfig.json | 2 +- tools/meta/package.json | 4 +- tools/slackbot/package.json | 4 +- tools/storybook-addon/package.json | 4 +- tools/storybook-decorators/package.json | 4 +- tools/storybook-utils/package.json | 6 +- tools/test-harnesses/package.json | 4 +- tools/test/package.json | 4 +- tools/update/package.json | 4 +- tools/validate/package.json | 4 +- tsconfig.json | 2 +- 50 files changed, 316 insertions(+), 299 deletions(-) create mode 100644 .changeset/checkbox-remove-legacy.md create mode 100644 .changeset/cli-ts-update-flag.md create mode 100644 .changeset/lg-build-cli.md delete mode 100644 packages/checkbox/src/LegacyCheck.tsx delete mode 100644 packages/checkbox/src/img/disabled-dark-checked.png delete mode 100644 packages/checkbox/src/img/disabled-dark.png delete mode 100644 packages/checkbox/src/img/disabled-light-checked.png delete mode 100644 packages/checkbox/src/img/disabled-light.png delete mode 100644 packages/checkbox/src/img/indeterminate-dark.png delete mode 100644 packages/checkbox/src/img/indeterminate-light.png delete mode 100644 packages/checkbox/src/img/index.ts delete mode 100644 packages/checkbox/src/img/spritesheet-dark.png delete mode 100644 packages/checkbox/src/img/spritesheet-light.png create mode 100755 tools/build/bin/build.js create mode 100644 tools/build/rollup.config.mjs create mode 100644 tools/build/src/buildAll.ts create mode 100644 tools/build/src/cli.ts create mode 100644 tools/build/turbo.json diff --git a/.changeset/all-types-entry-point.md b/.changeset/all-types-entry-point.md index 7659d1279b..24faa81c3a 100644 --- a/.changeset/all-types-entry-point.md +++ b/.changeset/all-types-entry-point.md @@ -104,4 +104,5 @@ '@lg-tools/cli': patch --- -Updates `types` entry point to `./dist/types` +Updates `types` entry point to `./dist/types`. +Removes redundant `compilerOptions` from TSConfig diff --git a/.changeset/checkbox-remove-legacy.md b/.changeset/checkbox-remove-legacy.md new file mode 100644 index 0000000000..3c9eed34f8 --- /dev/null +++ b/.changeset/checkbox-remove-legacy.md @@ -0,0 +1,5 @@ +--- +'@leafygreen-ui/checkbox': major +--- + +Removes `LegacyCheck`, previously deprecated an inaccessible since v7.0 diff --git a/.changeset/cli-ts-update-flag.md b/.changeset/cli-ts-update-flag.md new file mode 100644 index 0000000000..71c4a515ca --- /dev/null +++ b/.changeset/cli-ts-update-flag.md @@ -0,0 +1,5 @@ +--- +'@lg-tools/cli': patch +--- + +Adds `--update` flag for build-ts diff --git a/.changeset/lg-build-cli.md b/.changeset/lg-build-cli.md new file mode 100644 index 0000000000..1ea9720ff5 --- /dev/null +++ b/.changeset/lg-build-cli.md @@ -0,0 +1,22 @@ +--- +'@lg-tools/build': patch +--- + +Adds `lg-build` cli command. +Usage: +```bash +# Build the production bundle +lg-build bundle + +# Build types +lg-build tsc + +# Builds docs +lg-build docs + +# Build & downlevel types +lg-build tsc --downlevel + +# Build, downlevel & update package.json types references +lg-build tsc --downlevel --update +``` diff --git a/charts/core/tsconfig.json b/charts/core/tsconfig.json index f130942974..71d6a0d2a0 100644 --- a/charts/core/tsconfig.json +++ b/charts/core/tsconfig.json @@ -2,8 +2,12 @@ "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, "include": ["src/**/*"], diff --git a/chat/lg-markdown/tsconfig.json b/chat/lg-markdown/tsconfig.json index da4bc6e48b..76def3a27d 100644 --- a/chat/lg-markdown/tsconfig.json +++ b/chat/lg-markdown/tsconfig.json @@ -2,12 +2,21 @@ "extends": "@lg-tools/build/config/package.tsconfig.json", "compilerOptions": { "paths": { - "@leafygreen-ui/icon/dist/*": ["../../packages/icon/src/generated/*"], - "@leafygreen-ui/*": ["../../packages/*/src"] + "@leafygreen-ui/icon/dist/*": [ + "../../packages/icon/src/generated/*" + ], + "@leafygreen-ui/*": [ + "../../packages/*/src" + ] } }, - "include": ["src/**/*"], - "exclude": ["**/*.spec.*", "**/*.stories.*"], + "include": [ + "src/**/*" + ], + "exclude": [ + "**/*.spec.*", + "**/*.stories.*" + ], "references": [ { "path": "../../packages/code" diff --git a/package.json b/package.json index 4311ae76d1..3b21bb35a2 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,6 @@ "test": "lg test", "unlink": "lg unlink", "validate": "lg validate", - "version": "pnpm changeset version", - "postversion": "turbo run prebuild", "watch": "npx nodemon --watch packages/ -e tsx,ts --exec 'pnpm run storybook build --test'" }, "devDependencies": { @@ -52,7 +50,7 @@ "@lg-tools/storybook-addon": "workspace:^", "@lg-tools/storybook-utils": "workspace:^", "@lg-tools/test": "workspace:^", - "@storybook/react": "^8.6.12", + "@storybook/react": "^8.5.3", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "13.5.0", "@types/jest": "^29.5.12", diff --git a/packages/checkbox/src/LegacyCheck.tsx b/packages/checkbox/src/LegacyCheck.tsx deleted file mode 100644 index 8518d33c29..0000000000 --- a/packages/checkbox/src/LegacyCheck.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import React from 'react'; - -import { css, cx } from '@leafygreen-ui/emotion'; -import { BaseFontSize, transitionDuration } from '@leafygreen-ui/tokens'; -import { useUpdatedBaseFontSize } from '@leafygreen-ui/typography'; - -import { CheckProps } from './Checkbox/Checkbox.types'; -import { - disabledLight, - disabledLightChecked, - indeterminateLight, - spritesheetLight, -} from './img'; - -const height = 20; -const width = 600; - -const wrapperStyleAlignment: Record = { - [BaseFontSize.Body1]: css` - margin-top: 0px; - `, - [BaseFontSize.Body2]: css` - margin-top: 3px; - `, -}; - -const wrapperStyleAnimated = css` - transition: ${transitionDuration.slower}ms opacity ease-in-out; -`; - -const wrapperStyle = css` - height: ${height}px; - width: ${height}px; - display: inline-block; - overflow: hidden; - flex-shrink: 0; - position: relative; - opacity: 0.9; -`; - -const checkboxStyle = css` - height: ${height}px; - width: ${width}px; - background-size: contain; - background-repeat: no-repeat; -`; - -const wrapperStyleChecked = css` - opacity: 1; -`; - -const checkboxStyleAnimated = css` - transition: 500ms transform steps(29); -`; - -const checkboxStyleChecked = css` - transform: translate3d(${-width + height}px, 0, 0); -`; - -/** - * @internal - */ -export function LegacyCheck({ - isChecked, - indeterminate, - disabled, - animate, - selector, -}: CheckProps) { - const baseFontSize = useUpdatedBaseFontSize(); - const checkboxBackgroundImage = (() => { - if (disabled) { - if (isChecked) { - return css` - background-image: url(${disabledLightChecked}); - `; - } - - return css` - background-image: url(${disabledLight}); - `; - } - - if (indeterminate) { - return css` - background-image: url(${indeterminateLight}); - `; - } - - return css` - background-image: url(${spritesheetLight}); - `; - })(); - - return ( -
-
-
- ); -} diff --git a/packages/checkbox/src/img/disabled-dark-checked.png b/packages/checkbox/src/img/disabled-dark-checked.png deleted file mode 100644 index 7fff34f02af7742e86466e4ab5eccf3cdab160ab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 623 zcmV-#0+9WQP)`3d+b~ z8GaV6)p9#poE*R}}@j&mJj)ICrsxpQGXB zO~n$2vuPGfQ%k+wVsT6O9pwle*)g`@Y<&@)PkdsDKVW~dj_gD+&tmWynw)tJ8@iAa zT$D0M7MgW<>7DqgU$uJOVd8AH%;k`&g?S1RCAT7HkxLRdkL+^qW?Vs6&=p)E`~VboT_Tm3AV>fJ002ov JPDHLkV1oYQ5V`;W diff --git a/packages/checkbox/src/img/disabled-dark.png b/packages/checkbox/src/img/disabled-dark.png deleted file mode 100644 index d27e7c16f2c236264f469ec5828bd2d7b275a36a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 474 zcmV<00VV#4P)>=A%_uv6S zAfXoA!iMd@JdkB)wgR8j!3E!^Lb)tb^nE?@!Zh%3G^|*uuv)W8%}!^i-JZ(m`D&xV zktNJgBDbW0OYjL)0t}^YuSe-%KuMa4q|idBwvsQfEeSkQwv`7D5En*~5zOFSDEvl# z!?h$Z3k1A+y?&qKBry(5FatZG1hT9oFgF$$$Hsy2Fi_v-dr6@8kAa>Gbb&6=1-igF z49w1YVE(TH-^T-UlE53~xW#XcGo5i@iW%*0S3k|%Ndk9(fZsN#*LgUOOD1u=g5_#e zJymz$SbF4tR#!2=k-Z;=6veRw|4sZ_O<%opSd<2?Xcs1abNq+|?*yoEACNJ<)$IZ? z?E+PrhVra7=L=SC-HX@Z708lDShoFTAp-|+1)k6)>`$2OzHYfd7dW?pKej|gDWigP)*9?5F|%J< z6!^ynMuAaayRQARV;~k|YXB?I(k)QpD&rO`r02-!8py!^a02GwG17SlW|f^>!iE5r zqp8ey2`nIiHNyVG4<0+A7?xona(D-p2^m)aS7C3>`eg!%$$?X_7&F2K=9R#L0prr+ zh{T;op0I%lu>~(MC16}K?2x#dDCv2iP8cvQ5mrjv15|TA)iE?LS|I&5uKyqNCGH98 zxgBOC?mi4xQ05!986$Bo&`SO?|9b_tke%H|?Juk!1QXpQZX}*z2U3O&%z$&y|D`6M zSlbgO21r~kSd4Za|AYB)Om_Sn9b?wCg^7_mi=Z+R*g0^ZL}tN3nCOEBcp_h)i+|%D zD3PhL874GtITGpiZh>;J&V&Et;JX<18QYLdXSoNmVPYJEVTD8{zzmo;jI=r{UV-^! zP*M4F|BIn9amSHe=7b1zx|$)XA^Jcs>3?`&rEdxNhQM-OfjMN*K}>V7SLQYe8khjr zU~zN{slyy*n&DZT;+~_m$Ms-!tj2w(um@O+I?=P4C@>0)0)GK70e?hFV1SP4kpKVy M07*qoM6N<$f+6kYsQ>@~ diff --git a/packages/checkbox/src/img/disabled-light.png b/packages/checkbox/src/img/disabled-light.png deleted file mode 100644 index acdb72c3a17789c2462ecb7414d3f599877c120a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 848 zcmV-W1F!svP)en-;w8wmV)Q>h3)r1c)kB1R%l!vj!@leE*X6LZ2}v882V{`>l^Y zc>f&@3toBk^$%>Z#pYMnLx6}NMga(oqdG6h%rMsA=O2GL>ZvCleygzHvSpW#Znx8x ztDH3mAp!vU`g*~{P$+Wfx*NKV(W}=3)`U0-I_EJqUi)@+Y57^tKJoN7SO*sCp?kRZ zC}%j0ny6xAXb^(~1Bem1l3$G&GAr zoqql`Bi{m3hjHqtXmnz*yi1J}3F@;C4R;j)N0L%=iqEf9P z%jyUru1R4XDJ~=t$U2g$Vq$U<6B83)=9DDL${6Ao4PBaUzx&>wx?I;J%yYEg_0M7Xon%TQ=!%0NuZ*|T&OiWGv zGi173 zCU^buH^2Qf&}Rd5naf>?CYQe2mGtYM{QMm$=`JN_!U2dCHU?5k*k(PFs0P)++-f}w zcs1+L4Q_rbnv|SAy|}n|y-ugYi4!L{aq=WXLMuH5AfaIZ#;k{uM7!Ol-RV$O0}6T! z@bc#Q9gK7I$e>G#n{>MQdfjf90|yQ;TwnZR7ySv)ayS_aki$fTmXpFU+*gEUhr+|P zC2&>MdDre;XH<2~WVg$p^2_?Y;~xQj!y3wo#gmNFotn8ODekURvwykVwzJOK``TB& z{88JtZTlH84QLcruMt=duap}G;|M4}JfG?|;8102cwwYHr?M(FgWC?nzI1*C#*onMvls!C14itIFh*42XZAl*FKlpg~!_fN=^4 zBt}w72F%|N+mfKSxX9f6LUY083mE69z?dN$aw!31Us&%ouERM%32aCtFAj>`r1s$y%gADOrrO zv^4l)X_brRk}th;$98}Ev!A_YlHPWXbDaGrw!4y$k|it&z(PhK$p{OL&dDjMs_XjX zm%sAW8!!JupFiXD(^)=1zxG#XpzGfB=B%ae_qHjw{#VEWIY3G+x~sKAJN&;z1-m=hZjmIHK0)vqpaFDDTtJm1(qR6$}+#g w{sizsHb6JL=`HwAmiYJEEVx;4v*6$3FOP~g6z${|(*OVf07*qoM6N<$g7P)Xw53j=4+33CQbj*X9M zxDbR%47Et1OHt@*RA6Ys#6NlpGt4s1khNND7*Ztza+)9!?=_{5C#Qhg~Ep z$42AOiHv?=_}0^}7b_L>l#@X=CSo!ifEXj560ObIgArF8%@vc?j#uW%@t1Eb9g|xi z624#ubMQo3S9~^Uf6MH>$s1~ml_MhOp2R=9-;3l;1_9CBKAiNOZyu>>`T5D(kEB2a z&Bo)IC+6)>-SA{nF(2CXNh!FY+;s-7J@LU;_gDRRU71^uAvO=z70r9`hSCj_cE<0n zD^Y>|Jb^!P?Aa8@-r%NlAmKY7-&wJwu|)0RrWB-Lu`Ag@FExF_9DJ9#7h`U@Sz|m; z#OI89nleg>;Xap-6;Yy%HeOmA?snpz-Cf!2DRHAL7~E#+ne2&A?y4B&gi9P1QEf9S zCqG$~A#BRv2M;`gf*0pT?Y6NG9zjo%Mmp3VHZgpDcC%P z6jq`H?ZtF3q{nbSZiP)EY{6N02#>?yO^nBKRM;|B7j9>88XuqmHgkLOqv<;ALDVr2 z%*V4m`8Kl`Zz7E-BiM-dqWa-}9lpU+sDls5Q2>Is5qO@9%@~U_>lhuI8Fk>O14kV= a2mk;_mlxpqb30}L0000@4B254drIj8|CaiUDGI^`g$5T3IlBwHO;;B2`l}zc* zygPY?hxj;v{z{T0Ns^=i8B~%aNs=U~C5ji=%zkfm)#oi*AU4|Ae|yEQ-Z!QJG*mVz zu&Ld-cr(+XmuNl-beBC32zV2Um`6G-akuG+W6c6z3!uSd%z9y=7XSUj6;G6~OTRKa zQHOQ?4m&@gb?h;&2J8+apxXd6SauJSjdv}O(^Tv2g64~7b&tREt2e-#y2l8dU&8@^ zT+NAlRZARrz{!U}0$9tH;5zKEYvFvYX|d}}n_dRj=NJWY zpmI|UE9rL|02&NE`A;Wm0d44US(E9%+q7}{;~5>r+O*VdpH0=%?@w!)olH|IA2lc; zYwWUkQ!09Ax@Lbd2B6_UlFqp#ntas_FU$|naFl)Ek@0s0g>~<+?pp<*(MOUb8Nvu9 zNs=TnRC9ZcA_^Rv8dUql~Lq$!Cb@eEQ;($G+JM25nrN0+2hRf^N z=bz|Kt*YMj>QNicd9?wc!O$6q`BjHp1?%`o^JrcBxe(%Yxc?JcSATj3u>I4SKh=3J z-wU9D)Oz#BlUgl)rRkCHO^4PE0NMR*Z2+EO56%GF?C0+kkH2Ny$M*(kptSjP)s7;+ zOUctWH+EvG2g&150?h@p{>5x40`J2idmaZ|Xs&pAyO5u37G56*&_G!Es@fvmJ~=>f z*cFORu7`{+#V)%TyZj>TiHoqqFZ>B)c+pSK4F}%kA@3r&UXSScJvp`|Km%pJJK4A$ z!lc>s$-Jv(#Ps#@pN$9T|7Tn+&$5WtX$IWik8i{_}J1*$@TL$)K#< zVJ}?Jv?NptnY)C3t$+cPc|Hg^>)H+X;_d&U-)MSp!kRt90qQP}#ak|R*R~yUcNA8~ z%`CE@)Z!~!{%U=1Pa#0z##Dcm33uXEQXtXtwBThdVmcyKjaLw zK4S^)x}sop;~0R#iFy5tLE@V`qI2KdF&Ll|b@o4v$fPCvhXV9x_QI>LpEhsld;05d zE{FywTuQzE2q!NL#F}@oAV`D9j*T5WX3WIFqsPP!9zAx#;87h$gE3>rhg@*ojYFqg zdU=0(j z;9L@{0lY>8lA6NGYMQ8!(*QbV-KKw}KJnHfqq=6*!vJ-aUQ`r;ODCP-z}iTR$w)=> zjud4wk`v{Tyrhg|Sz)9bt0P@r|0q$>MiJFBO2q0Y39Dmtf9a@+aS43@`mwiaS2|vs zxA>w*)_iapK;huR`Y@JLqB){PQMxxuP}C?a<0xLjQLOHXVpJ`fQq*Wp!qK9vMGGGP z84M>60_fK)tXn(yi8pKe1JqTTpG2CuIHJeEF`AK;Xt#`GI8}?`0jrQ08sivNA~Axj zht4rrIg|MHp#XI^7en_G6zz0YCTFlR93=oaOwQnBlNQ2C>KTl9bS)6?2-R0S9H8z- z2|_{0-Vs>!L;=*@@~pQ0oUH!A`~c+oaXwk|L;=)UfB1q~mt7X&7Ub6% z2^)f<8XQ&t`GKq$EZ{@Wkw0XP`HSi?>1J^zolhjuo%8WQh=Ec)&R~O z0XrC3`5e|8!AeFZZ^6(Xqd4^@T2?9qqWOq_QUO5SMbwL2ZeD&t()IUcovdRdWhE=) z*WiNQ!0>7bCCfQ^dHGQQood-G*8oBHk9D~5NQ>Ru3!wiCdi3bggI>H{ft@hVL4mP} z4z};30?I`9El16I>;q@eK13+}9Q1lm8LgUv0% zysydu3J341_UX>*#ur)mxgZo|_rrgmH}b(&RSay2rI+p>0MM^t7q_0qRW@ePl}*!O z2iqNdp!oqUu;oR_`qcPWzA6AH941xn98T43iPHaW^a7}}9$E8Y#0yK;R8>5;_AY?J z>6)vrj>vaW12~o&qNwUnNl}J~7!MI-c?bpyAh5=gG(_b2A)>$!Aw(ONW2gE9bj&L? zD<{1cSYuSxz2^fc9Q+mM4|g+U93}hWDA5x~%SCa-KP`?FPwz18CscS&^G}T{v@r=* zMoHvEJQSc~US6%6cIysRaNKpoVagW*)!C z0bYh9U}ZI*#~z29$GOQ_S-k)#XQoYW`T^MH7f!D>q5v@$U#1lcBraCKBLM0yo}#j`g5rgI zaIgJpmfz0D$vWkr*s}rZE_zYfI9~B|E+6(#PMSL#pzcyKY5G`B);gWf;bunw)E#p3 z@+17^)5f#XiRI%UA16aT*+bbW=4^mE;}2gTX`W>iFB+n%8xDpuvI}h?IfZs3#|l8M z$>uQf>`o)!5ekk*>NwF1kbwzEzeMO%{RJV+s9en_;?^dC!1|a3udaDKc=di zI(}mID}@0R8l1V?sS2K7xouv-<87k=>Q0WOyDs4tG(q8W0!4?p3#t}&^we)RcW8ZC zuw+{@K;h&G?j0Zo8#lNY!n`_Lz`#6V=7wv*RznT$xD}vq5Y`xx?j`LXI%{DLC%W?r z&;W`{!xm`kxEDZui$UJp`UpT>B`o>ZW9*V$@Li#7o#uk~JHfG^K;k!=jR_n7l@3r> z6fFDi3skUucgKz^)9Q}n`%o5r2=~-Surup@XKhohtG4NFs=9T7vwHhddtm!ISFp7K z%Bu~|VB0D-*s|vQKtqEkxb*{g?l02Y&3mk?cKQM83VrRiIR!OMFLJ?_yQ%872ie7K z)2zYfkpLaHzwD2&%-=cTy5QgI1A(Q6T+{UE__rFLylqWWK0sX|26hf-s&<)BSH1S; z%Y9b9Rkh)n<^Ow6>ASmoWp4dIj;sr&Ib4yyRBcDnuzx|#w017u3C&f!zv4h8ImOvCJ zq+|yxnIs3(A+(0`vaULOWo6Eg(sGBVq}-->ip|1MVu#mTS&3M99#fpRJQbksQ0Q=-At*j4k98>Z zlsq0Q7Es7z_-q1dcO;!OOb6B%LzI+brY}xcVV*u(71yK zzL|}a0f4osJD~_9nUL17cXnM z!Y}fH-^(W`Fuzc~3EhO=&JF zo7@6_s9QZHWo>$KX}hPmw2gTEJIu1n!SbO(jFC0NK{I0k>MW-yr$~CyK@O|Cb8XH& zyrMPS^T0#T-}~UhuiS9UZPgcCcEz&NsngfelJZ$0#k6EuY&(;(@(w`3bud0X`*3o0 z{-KNl>wj`=&I5&RcCTB++c`xu7_1qrD2o7vL%xf)5KqykaFI7ALoZ#Dy*Y15kIfuiqJg7qz_Xu5N-HCsGo%8BA^45xTZ{ zCP3XmnAi9uQ`OX&ojKq~B@ujvw(MITpm2!$=fQsT8_oZ4S2h~%VCTvgN1!cKz|iJ8 z*lO_ewi)8O_B#RUDt_62{zljD=u$Dn1z=`@Ee6w3W|`;3d5wm3`Houv>a6st&6kUB zn{(@0c~uCz@n#49VO$*e*s#MaLmA{> zw9!@DvYA`B?Nzwulda3!(!}arXYw_Bhj5Eqhsle#jFtjhoc7A*tMhA`7u)N%ZmCZMZJ!+cd}Bdy$6^}(p?q;(Q)|-tT~>fPqu`}IUT#&>3vgZTh63ETR~lVzb2*2z(4KpAs$m%c2#pKbpX6Jw%OR zT&|%JG#vp@xJ{@yx354+v9zegVl2gBSuzW%ak7HPVXTbfIbmEue%?5{wQ!uKlChG4 z$MP~6&5C3+Evlmg;vX$)CFhJd=YRSF6iyQpl7@RqrkEv9wn)r!K*`s9zIabjQJlx` zkMkB6#}}8C#TS>C#e0kW@vNXs%*@G)&B)0cpPrRBE)C>ao#Q#;n;=onfdGY@>?=v+ zc{3Zy6%^SfYg#&FOjNzzWRs%l$r4eMiN})+=aU3N5;;ubIjqKUvNn;EJ@FhT#}{B> z06^iE=W_M)luXWJWi?Mwu!UE!RaCW1QB?uSlr%L{hP9-sS>_t@W$;8z;}k6wu5*f@ zc+y;wnlNHmR6l^iZOr(|gNn-hWQwkwpA!N#sGz|cFESecTdZw)F8IUhsz{=5V zSWV_-E!9R#iI<%>y+1(VRy1|mX`H0n%zIFP*?|ICRnugZq+v}>H^Jj{nE*|L^J*%F zYtG3^lAD(k1*|1II1+csjFNr;g&QuNK1|YlHda)!1p@hql8-eFGN@_CvMIWjt{3^> zcr>4=XvvT(k;iI+ta_8Jj2K_x_w@%T+;GXX(Xi>?OY434Z-JFt>zt7GJt%B+~ zjD5vB;}a5N0O~4E_r1tU_^b51f=y8V&24OIvOun+ef#%2Hh=VyZ{EVni!Q(By2p#k zCRJJ~dQD<_*54+`^_# zl^Zl*0?j{J3yb#{>94QL0H~|H?{9m@wy?2NJBX-``IQE~2o*$7WF4I;6gt9RzcL&b z>?sAPv)EOK=dz1BUtWPwAw&XOp&a_i5CTo#XQUt_zi^9DxN4sZpcCcz;M-)p>R{-e z0e`%U4(0@49s0-Re^CJX17C*b=sb2m0^w~ahF7<40_a4I`^4bcsvW!OK=ZplDz4Vh z!L|l_P171zWwYP9^gthgeve+i{cLJs^Ucnh7T5*XzTOpVTR}q^2D`UbxC3n;OY>Vc z(ThGA2GEJ9n7=vA{$AUQbal(Uwgp@7XWlnl0EL54)i}#t-TJUI(EK>RuMgY_q)SK&u0~8K!PCN@T+IXzwn{$NR zQ56;EMNFSDqYpqPjFsM#%O~{$=y<^2CyEX1bOO{>ZeAPBV`7JV7KxDDDO0BnnNv{_ zQE}dRz0bekf<7~6&FT&Ry+i_Zyx?!Shpum(3Q$)`TG0eIkL^5^Ym!Q`r%szb5TKbe zXGYF~T(f7-Hbnq*yx6K{J2U?)3qW1PiTXH3B(`JurcIwd5Fj&~X%6J8fO!IRDnPzi zR)Tz3u}YenHEsHg0RV;O2Kh|qLOy^_1;{r6@^#El&7KPL1EK2+{tWphGLpHoDm1^$ zX)|UF07vu9m=U`FF1+x<2!M_kU*9?upyTzMPdL4vDYUAt79_=(kd$gXIrrIlP`Hc% z5)gkz_!0g`xSw%>#4E13Zc}nrjv?!`;h<;E1*o%FnY_rz#DLvYNA9}s{-@#dCjc5S z9Y;5CfkKc6vOpS0?vMs@K;f?4yRC1{UvPcCgKBkhVypSNiqC&JKwTk~PCZ)?r1uJ4 z?oTORtlP6^Z$5lqEGX#6lh~1aBFNghZ5z8{)#}M}pMT-%%dfun5pQYvJb3R)nAzVg zF82l=lTV4ibe+RZj|C`PSfaW`ORiJe0v^!f`T2mm;*@&UoIzO3(AebEinO5=NF|0Xo@uMRU>uz9J?`9_GpLMd(O`Tl2;xi@7+CrNw1_kGu0zeO); zCr_S{obx|>@52*I+_jN01AyA+{}E?h=⋘+ynG)Q*AF6h|Sh->?gf!z;fqp_)%%} zm)KPGb@G3}b#fJ6=2@+IfN!MH70O|^n+2;#|DeM64_N|KzHN=go zoaAg9T}JieK%D`BpH`Am>QHqP8)m4CWlRLZAwlE6PcLQk2benEr#pKBIcoH))$^6P zXlXP%9uNtz#wg=?Mr|x**Zbc!rdSz$;RQyLe_#+$dyRhKn*jB0c5T%TuC4hH&`yLZ zCslmq#i?IhZ~Mu4{MPvTiDsfsx z9p7wa*Jf*R3^7*MSFwRTWK$x<;uKjQ0ctC4eBC{Y6zg8T#rhpvePs`?5SsibNGwgA zX|lQkwTF7AHJpzj_g^6*(yjVj9zfZFQeEkE9cJM%3>khc_{aZ6;ouZID3 zmY|jA?~~`1zKEc0u_(>Dfp0ve0BWn)rDvQJtBddN@yqYsfw~d~!}pPj z9#W~YKUb$47!y0KH_-nIC5BM*m0=UrYSkoEUJV8c4-0d8=dIUS^ly^t!pBMEYzvvK zvT4fv`SYEgU$DSguhVq{as)T~f?l`nd>Bwi$wPU4Q9fgm_RmVoH%^nEU5lU_NaCUB!NTJ|H#m2e<&7L{K3FxhNKj`-L`t43Y zZ56)h+#1_Ou{8W1$*y=0s3S0=c$`SC4;CpEe5`E@&{I!7=`wHbTxX#65}M0a2ynb0 zFqJddLz6Q8vNMpQB4cNb4;9KVuS_9`o;GbbAeec)+mlZ|=?qRl?V-y%zd>Z1NmtAv9>%xMnx1*N1@Hw4Q+ry?Eb~hm_8in zajXxV+Z+6`xVhC&2$HIw2kHzsPn=M{e@gcCHyUjF_taBQIkTTPK<&YaFMV5Jy0led zIpYS@QK+DD#s0DD6U0oLHWKLZhV`{KxMJ~4#fx#=@*5n%>u?}YYnuH6CoFuHNUJYI z-#LRyAZFFtbvqDbcz_x-4pKqDYj3@C(9O$-L76Y3iqNhBauforGz3k5p(XIQ4V$-o z+7L>K+d%{Z;6V@!MG&?TkN1a2Wg9%72-Fd{{2@T(@`JmN-)V$*Uo-?&fe?I$An=E& zFcHSW1XQtkpE-M$pJGU#h1pmp%o;m_7QXVZnCZ)aI*Sagcs!ZB$U7)_3%(z_zMb2|U&3pWb5BxZxn3@9S?B@Zg?6P^fVzS@YFd9qSma_i zFaK4KKK1OQzuvsbu5lm?f?)>_e-rrnJMYc%4;8#W+SOxCAWyterU_eyqDKskY@M%vt z1O3x5@8WK>^@ex{1V?)M2I_-(0)?BWZ$uC#Ln4gyf&OWs1$B?3J*SNU zLIoq+RaO#`czXg+SBlzPQ6NcX58xbVyk~p%1^ zlhuK2C80c{^j)B~QkZL|$y#_Hi1D~+tG(`NzBC)CIU)IVgQSV2D|rS4b=L=N{VXw0d)o(Pol+6k6BD=jy@{d zBQ`eH3CM2G(KBJ+p1uBAUeTTbK&_GOC|xU0DYac#;#+E-0O|*G3@Y|o~81oL!-;s6vL7>)%5^Fw0fL{MQ1)p28qF?3%bx3&ZNQq3v z&c@+l%*sR{*5>Ug{nH9gNX$jw3(wVEz7ME12-`oCCfBb|ii=(T@m0S8b%YRimXu*Q zKi0=rhewP7LYV3V)Lz1L>$~=`1R~o7hZ@G)a=90fql6OW1i3amq&{GqJ`4!qffG=B zg{-gqLTaf$W)zswhMrzh0n`z)`nz!=AX4%oqGCn?ITBp4{0c8DS0ziy_pGw7xh>jf&Z1s>6PQZ2^|f7GO>An95dQB{WnkX*xgwAqa7fPWJX=&q%*bxAFMyAa;-hCT`vq_r)kz_dikX!(ecEB2Y)jq{>GmTK#$K ztbMJa`YO0t&4*fpj~xA0jX7d__%iwTXmi}};pzP#P)7+R();juo2CW?=FffX@edl- z=mDNh@PKhJ491-N{`;U6t5(nANo8yNxx93VM!Qp`k5B-0HuTQQL&dU4L5`{r=uZ?w^x;%&{+Mtb$UCrT(Lx8%{;Gx3@Ae?#uZJ_hf z8tQ}f^nw1+5BeL;8D98Vrj45D_6jPX-a^to!(S{J0rXE2D-@hb?w*nJ9(yt%H@{%m z4?q3JHQrNzSDg z#3{`OVlvDC^GZMSFi>lj{qRczJWY&D@mvY7v=uTUU z_IBT5D0+C+=9D?s%5oQ=_Tt2s#GtzHb6#e}hR7|IGN885CDz>c#F0N-fSR+-czEm< zL+;*f>G>Mqz{s4V<(F>k?z5K)dN7Ry@!i?Zc8hw-j9&g@hNGr%mTef!J9H5rS3M=OZ z#p8Em!{@h$q2{lMT{nDyIs&6WMkq9qLX|E`=;0MG7Kmlucfx;b>aOsw)leWuXcHqZ134mm%lT)7|Jgf) zY^JK+KpiF5MYv&od^|@&p;9#j$Pr>==}Y4OjJYUd6iJmgRVlx91L_Ebr|u%T7VFap zMM~8}K#mZkSsx8G7uSzS0EB@|u=%tes5Q-g0Rh%*1XxA(0PE{@>*G5+z*0vlWify0QI#%9U+h^KNYLg zC1?TsCNIBmc0+Ylumb{M;*-zLUpK`s;FL(I{$8h#^atuFrB;u5e!6V51zOO$_%OcD zaPVw{sW1Ts{qWdgrr-s@j~=lxmuo)5yr zCb+^#7=#&PqSa_Ufc^R)H&mHEN))CSS%psL3t+6=mw}uhhZa-y}I# zGJrapTkiJ*m5J8h?Zc`&2BCtb&H~gKM1|$+#3{{(S7MuXhHm&dMQLRWH{Hqwazt>^ zA3ad@a#>_(`MG3U1QkZd?*4~LLCkTgTn*G7Q$II%7v)^Ud?ahD!_Q+en@Ns?CJeMj zt5{V&g0sD1gY}QLz7_<=T1HX$<5Hlu67Q{!7p1nmZ-MDGOl11ma~mxC-&kqP=mB&m zUi!sItoIgvmR8#!MaHTapw{T(iYJTG@O(8HFjp|*q{_cMkNg@8^j$`F%;xO|bN>Fr z{y;66WW4a91dl6fW_{wcvV%aa@!DJ=4zX00NzArziM2~)sr^x%ZhaldE^+&w?we8z z;^WK(C7Y6W`vSGaz#p#mQKnc^@VF~WGJi4($;ZGjlS=zj*A_?##hyfv**wJ9xEo|JZY08n$JrkXIJp`kJi zrkXA?Q7LDSTM7=2K5!thCy=9bkx}=AN>x)sg$lQ5m9z&?d#MvDr2#o?cvau(?S=44 zmtOMS_O$E)nW=_{fE?u?5ZE^?cBZ#Lrk$kahxPz!FM+uxLY7cJq5$pKOt7Jt3D{wc z1L~+r9#eYjV`h5uq*}KZo_MqeP!R$caX=mA>Eqi+7d_3JE7eb$k9mYZ?d7ww zdX{a5rm22(2p{1jr|=3FsH1%R1MbyDP4nSN^b;36{#ZAl_R_?cXd2%gT8!geWm4^X zKyA_N7Z700K?~tddw{ie!$x}xVTS`O%ys$}?Q{$VTQdq>#4;d91gOJt*AYz_=2iXT z8^X07KXGzS!%Qi$gM{Gy#=GwuT|Iqn$@LKoM=1UP$Wb!6%2}=rOX7$m=R(EOg5r`A zSwqMc>;Ql8di1Gh;xL2iCz(QZoEtO41E{0Wius&Cp)A7utGMsJ|AF0yG2qz_Q{ll+ zK40?O#HpTna$Q&=UmzR_)L9fUvA#T^Y#plY79IKaSdhJ)u?4O$2Kr-wzbopL-@vf{ zO(=Vu3)B@vGR1J7MDf}b-+;$4%WPajd*cWg-pB|T0{30Ha`hn$@0U%U>hpq1t$&_7 zW9A^Bt`zdvBlmLyy~F*3d7>*cwgq#yeAy#0e>!XjfQ1N~D( zJWij;sIdN`l{w+kZ5xEy%Z?W&4oQqvn}Hm`Nht}D zrCFPuePzFE-yGv@kSa|NHN-?RhN)Fp{*Y>foK#&OmJyvL=HsHeY0e zx)$34mAI1jYSK~WIm?eLQQ6cBh!vbwIXX18B$;EfvK3JFJLfeSzVPuF;`EwxKyBf_ z=Sp`3L6@6*PFY-h-{7JB#*DTeaPoUbyFbZ=jY0CLit|YQB1+$pDM3dc?uM%2GQ3 zs3o%W3vZzMth`Z+A6lcWyQLX*u0VEs51ey}Hx<3Ua=R&^%33iJs5zf6U)R0t+mn79 ztByGX@eS5TMF#8l|Ea<{SjwNoYw1gYx$+Bz>B3N;mW(bc?LDXP zMlYb2ELrm9u)G7`8!gOUp~n-+w#|s43xxFTT%1+uIcL#bfhLKM%+;X6*WEN5*%1zx{3kP**Z0 zrTH0m9b31X_N4)8z%m%#~(S&f4`GHx2^o3b}ia z_RKwe^e&+0NKDn9B3rvRV10gu3yeO!xXx_O(WMzOUx~LAXo3DMkz2~gi&1qhFx7`^ z0mf=JB&td@6pqSH%O18aAy1f=w`%~Mk0byeCf_=Igb&u|XZECBjnFnNEiZ}ivom49qN$uXZ{WTtE0K>rJTPgiqdlg`#Z zw^*Y(?mVM3T%HE>zhJ`2I(KPGiT!w$9cO~ImTm@Wt7g9t5*{%}sMYPX&%oNSW$X4% z46u%|0T$*%F;bQGOCU$cWNII=Mt3I}KgCanloHC%fk;!y{9@d;=x`brz{o`!r@> zZJztsQ%^TkGL46cZ8UK0#?5L}Z>^DN!roFSH9dhkn?8D4)EHOyw-$e~RM=3_G`s~P z-~qVr>G>}xy@R-KOGLK+QCI0hW4lR3TH(0KZu-KVyGAvHRd<(M`=i&|AFc-MIQ@(J zAGeuq_`AN)r>vr4pj4^hP4Ni~oAdCagMhl4KrFdO$`9%Vn)~7};LNB7Ne;q0u_U(1~uIcLQ}b?i%JUb#CR){Pea5G7|R0G_B%opsq6IKy7bz zd|9oa165A!fdU4sZv*N~xC_~Su{{9j1pM?8?CCGh0d<6C%PA=arMDRB$xuZkM~H&9 zK-+Lwv9bC;p_P<9um?et)lKZ{w6uh~@45?6yXDrtCQdDDHFQ*9FEo}5_8 zk-1JU#SAtv)+;ep*zTYwVb|Eq{_`yen&Qv;0JW8{=*l~yl$O`V9vJ&3R5J4lOCAAg ziqdpBDGC7`?x0uy^E5MOirstp?y6BhtqIswGewfxa)>L&6;to;7(bu_Tm|2;ZjUoi zQ@+eO^x!M$$Bwcgru`0tcam6Y*n`9$fLaq^u1S$KQ&oqVU%v7c3$qSFjV&f z`X>n1UU=Lq={zIZUByJ6y5P6TxO=f7Er;2THKyktGz0yc0*Wd)5t~YE;gC<-Mdp!| zGYPq-3}zcDw+#75m_4Vp*dxxc66 z9WDU+x46|@89F`b{B`?HO}tWTnK^~0kLKoPeUXryvvIp=*WSW|r#*rG4XXI7BSqWDZt{q@ak*-39wN4vjoTyAzYq9rjPhDfGfPJiHQF0+AqJbj~@hL2XPVJaA(YW zzquZ0aTSw?oQxFPs)g^6w83J>huy@x;E-D@Q(r9R;Bxcz`SlSr;~L(ARUJh5!{ z^&2;aHLUT@s;i+e;*P(+AH(M-yLwt0_dG1C@_IKSWya zt67kFsmZxX0`??uH^XRCe|}i5l-w(qD<1^vY5_SFQh7>6`vMmn97vNYj%mKR*$t>G zgl1Mrr1lf{4&a$9iX+o6bqDGUf(>;8#Mu?s+fo6>?vt<$K^NbE@F=rl6Htd_SzqU; zwZ1N%!HPlMb(KLoOP&rjp8r&wTFuB1Y9Z9H2SiO)IY}&-b+P5xc%b$Yrd4bgwKm7h z1eQz8q?P-lfEo)(xoDVWJjKkm1w`kY4T!`zaNzE|G8d?=B!;p?zNxC^eM@Esi&rHA zHD`JHk$`!IAO3pM_#+c;EM_>(1Vl1R1>>`$RtwY`j=6lA#L#lECN)&-18PlryygC^ z6wBl5EPEC|ZTx|Ko|_D@M3!pyZij#Ry_Yrss3n-Sb`)WJbFa0%K<%;FV4SzvuroQ| zl(Fd3^h1lhjdhor3RJ~tsSM4leI2Md${lC!#>rNO0Cx(sw+~{V{P*xIP+JW(T$=*K zsw^uRjo@YH7DIk!n%R_{lz6fSP-u3=Ry_VmC}LsmYBAST`3X>S#4Bo@_$k%}VoSx> z^0bOq{4%Zmf!ZtNurh?KnjbxE0d%#QS2>x&;< z8UobV)IGKLpxve~P*>9@*62lef9sAFGY@?H>!U!X?9J~aWgTR8pDbfmZ{6_)(7z?5 zux26~d`p0X_Zn||-F%>o?Cfin-6xrX!)NLiEc~P&P-o(&R&jt@^VH2tLzMeUe-oI? zZNJL|i3kz$YeTkW?-`t$o^!*v^Vn@eMxhRa3Fe3Tx!hQA1=QSsG~%C8L=q6dLB?)j5&SvuIa1Jma`}4_KPqf zrjkDedCVvvb8=$8#b0e2w{+c(en1@+eDt=vFtch7FR8i@P-`Bu{^{bgy}a1If9%|* z*$2z(MuaeZfx3cXMHNqxWkape?W(?CkzIKO7p`mpj5xKFiQHJZ1*oe8ANZ{wKe=28 z)Ea%_#rx$+74_pCuzv`&n5p|~Uj^za;=F59M8+}+P;0#Q);-A2thpgct6!hIsEpx! zP_r1QtIWy25)qPA?F!VI$@}VhDU&LyZ5Me#i7HQVzV%z6_GZc%q_$n%}ev_*8Tp&mB#L_1aV3m%WJmse^m#=)k;m(4=4jR2BZpUk5Cb|DC)9TAG zApT{bjuJ>!k4n_4os)h1l8zobCTD{v@N6g78#iuvEA`>4g9O6e5|!pHpw1%G=%;%I za<*VN`YX6AIA30{yl=U)g`0G*AW_AbaEP-?9IBTO~W5!LK{6<`S zA{(OKdq+?;wCcv6TF{s%yi*P6#}7D zD#2{9K@9;G#pG7MIXKwT*)AmA=J zKcK(rqm4e&156dag`wYERA%XR{kl2qsptEOxIu$e`fw+pt|T;DUlbYI9~7Y?=2Bo* z%}AiGz|Xn(1b)%CwvH=s1DNK>Ef;_FPCGFYs55X@T=o(dw7M>~4ePqxT>T=h1g>el zEz=evWCL}GsdA+-y_t4OJ9bDq?&79CQauic#mO&Ss6z0iHx}E-nhUT@7ns1*@3}zj zg)7T>qE^B@KGrVFsNE05^4wSBB1o@t268o8$3L8Y`u6PBDxBEX&cfOAsom~n|!O+_zf5C0b-pwlsoX*v}32x25D>63~eUB5~Q&ECy;$*!B|xu#Q53x%zNJu(U^Hw9TrD0csAt&h+7@ zo$Cw4Nv=$NW_iUcK&(W=8s~U(;oS8}IVs;9JQ@we@=GfJg01d?olwL{t30F0u38Gz zoS^*`z3`rW8_(g&VB9HjdUkCupq4!MEYm}5sr3P31?SW(e{AO|W;~A>3&dJ~(EOk| zbN5%<%)7qM%G)^@$WCl3n<_L`e~RF9t;A3s1JoQJ!&R4%tV?}>+9JSwV|;+6Mh9f) zzq?MSK-)}MeC_8zc3YD(Wa))@DRIVK0-!t1{rcM7eg!psfI3QIxj0UcT)mE)P^<@P z%B?;RW6<5N%Ta>iO}WUP1ja zhGgL2A%mQNI>Pl(d2fWO`z5LDXTEj6AlKRls40)XccX`A+W9g;!`=MY`Axxw3vUCl zj_*A&F}dKNJCLip+e2!t@-84p$+msd1K(pO+n$WpU`A}I4g+cl&ul%WNGi8gMo2BC zj6B&|J8l}&7l`%g(iiWWGw<=fzJY-wLPA5j0XfPe|B4Sklbzv+-xr1|t2C*45>QKY zX6yI7wE8>6irC@&+11Sb*O`extd{^ELEye$c=@j2P|?Jxetv^OH~~&Tj*?oc!|fLw z*f5`Ou6Y2cCBZqB2iPiLd$)ib7Z0NLGF%`QKT>xWH-tMLEvSQmI%4XPT5oZh?f8>g8VdvfHONdl>2v_`FR0qTeawSSD{ zrIgq4ZBvXB3*=U#l-g2(m& z0f-&sedg@hSwVbJC08Q9j3DbGUnFt|aukNlFTp_b;z^#~C-Vvl9<|?r&;da(;hlva zeCayX>u0nj7Gs8(7N{cvf<@iXKDfe{!zqZKF>C4V+qc;YF_vdL4bLkq3?J_?HC?9D z7hx8Z9H=u$rK)?Sn(&WsH^HyBY~P`0hqJe%`ieCQgUMYbYW*8%H{HUQDZ_y}RY33n zu1NMADyZgMxps{Wt{#NpjXaos{(8{S3%^ah<7*?}zD--Vg^Zuz_NF2tS_9M-rp*rT z?cw9EeCpZf0~!LhK0p}QyTcbJoc6oSjN4wyym9bi3=lgD>+HGngZ=%2)IzP^52z~% z!qxZ4LVWvamLzc{`_Mkv!T@a^PRi7~eoNOacyoX_$oD~RFxLsFD{(Ta-jSs`FeKe< zy}?f`cLVAQ!j$p_LQAU^I|uORSzwx#Uizode0dU3XHXQK58|g(w^HR)!M5g|0g{?Z zy9rtjZtN9#g+LvF>WZ~Z-31P# z6u#ctYYorwn?QFGq+H_OUH#V>AiI5e7N_~9Bcp@TYkp<}Hc?COaf@{_P;IPtn_-cPC+Wh1<3B`L31y2*8aPIf=n06nyg|&_!ek9 z_XSXMf-E%;HO!?t1VykH)mX>SJ{JbmEX#%d;;iy7#mQ$+x*e^17pOH-bLFRa{O|1n zR%lk`DOF88C*;m^Ws3kA{bhC#bvGm6fvvpHwhV`l0 zn@btr>YEP$wS^+JW->3M{1ZIyYakY=If8BHT&C`>=>yajvQ(>-mt2AqAZsqrnD4Jm zh+bFBwv=rHYL8dmynT0&v7|RpM+tK)X9!bE5hzqMAz2mA0I`Ojxjbsds?)#o@R>L~ z{_JL;rU-cQJ}QlFpi1l81E{lTa;vxV(yDC1y*Rt9!uN}+2|#vU@>|Zce>{Jdt*Vt_ z{Xs`=9R#{lAcx;utcmuJ>0%}Y1Pkv0>WI))6+SZTi4bhTR8mQ)d{^C2pgZZelpM9a z-|_E?x13{Q3w~Pxbf-YR$U~~si{u(@fPX-2PasE3EI2)qJ*Kk{O2&;E5VF<23e*(c z#Ud!hk^O)i zg+1E`j1AU@=l8PESmOiK6lGGS1?^DvcSL00Lpi@PqpmO!Kz5jV?V(VI3&nDcAebi~ z2;?XP6)WY5Wo)Gq;Q7U$D#Jx3P*dF3SyQE^5=Lxpcz$ws~78I0e=LKzH)VKflL*45~s~e&|n(0jM#oZxXvc z8J=T2{sTZAp~$RF=Go6V@VwzOFo*NmMHiqug=SUY;#2)`jx4hb@AtoU12yIsB6gK) zBgL{#*gtfnj10AuH+;TSG_0}uRiLJXZ7a(a8QAwb)`-s{)xMj*jZ9#M0oifn>WNsJ z7<(v0elirOIn90n;nHKUAM63vrp^nnUOmxh2G%D)j*uv|?}=^e^ZeuEMW1hPSf2>Q z4x0My@e@y=qN@&}#5Dw1=lF8^%AM^sxb{h79gI^HWO{~;@<;UTFbmr_iAKMz+SA8`oInAILG2U&ZCL(sJKZiRMs57a;qX+wk za9@asoe_%=aBxGr;PA$pX(4>@`t|F>g;M2gjzIDzS1NY}>Izz|>~5dH5LxWZxg0h$ zYd}x!s+~7vb1}n3bwU76iid0|KA(R61{<_G!#$sU{)M}jUr=#DQ><33kMT9S8?!PwMG*=v%gR!9SGFbaI*Ha{fbb{J|}*)`GbKOO?=41!%%lSN5w86sc7o|q)zMDTE{VPG28X|6T{bp%eF zmx>IH)<$Lxo^U^xsf{@yBpjU21U*5Q~>koq!(5>&(8$@K)~%25K*{p)3pG z!5w$Ht7O7#6<_wi2XiY-H9rI0Nt#l@;o-mMwl>5a?QfyU#V-N16)F&OalqWp;DZ4Hn-n*z8*$UJgZv0JWpyrIvyZ(?Qx#U`t z0Tu#B%m@1ns5$N#XYR-AEFbNB-!!VgLYrUZ44{^Hud$Byd$0Iypte8|wY;GMtB57Z zsyfR}to#zFIimQ=yHRQICcfWSn1eNcR=Tw}P-}eiYWnapYN{l->g#*-+E}2rVh2U@ z(#t->9ejoQY$Z`mQnr0>;YmOIh^M7>Z>n1 z4Ieg)MPf}%AC)3@pi-^6pC=S_2kI=oODZNS_n)h@Rhwk6)h#tQIXkKXfLH->)}0cZ zw287X5Z%O7c;}Yg4b+%eEOAkXhmXcZ*6|Xpb{tRiXm6m77+HPeZuO3`LZQKa;i7__ zXLl*M@UlCQo$t=-bXjt#?f0xAzKrqvj>!VLQ(!{FpRz7;s;xu7MfMP2&ge(M#Wm&#iR6cTdTD;7YEQk{}}+(*zAX&9L|?2 zxiU?7AdXun1379^`gK1^MtS2g5!gGlJQdW=1ZpgD>?tfoG{DRLyG5Dtk8wX)!K)E95vTbjl~a1(@U#FY?Y!d zxUFCV7ONnmVjPfN)aIJFQ1-Qo$}ma(H71~dIRQ%Eam-uDSe<3!~OWK#g(DC2MUVS32Gs>|EnR45Qm^^#f{56CULzQfNaYN>GOl z18PpQUqCSQ1OldmGIj=5=LT4z&%gZY$wn1e9|1W+pbg(3Q>dA-lRf`fwRYVaJhod0 z11$G~qMa{I_V&LfRBCSGiT;MemG=O01Ye~Zi!ksATEl)o@RW+yw}1`|aQ7%HFPC%0 z(n9!Itkh)k1=3zX9T6TgO&2Pa7JB&kryM+dSltk=c(#+<&6_u;Xd|Om1n~L0v2P23 zI*U3y%7Y`6uEJHHh3AV)rZxmW6WeGUjGQ+6;rSSnz6Fo>C{SlpX*IohQpIDQ{=v_j z`0l$2Y&c{Os#?)+5eB}Go;dk!xmp(m)Roj>vHl+3-uiTtc{DrU3VN6S@<*?k`85mN z;>!+uB$VZSe(Vb09$p`{{B6Hx*Au+9iWV!Hb|CHy+)XSqv;t~ zAllC`lBLE-EkEdfFM*&ZP*;n}D)HtdTiY27VZCV;1wdUzY52*HZy(_7C<_i6vM!zk z>MVYzYIu|&T7zd_xBlQSldkF873C3l-zWLf(GjupvE#S z`|kp3iY~cM&NY>_(EeJ@wi8_U*k0HNs3kav--8yc#=)emicbM}zJ365lq9D#RFqcT z;dN(XR|A`|9_~1#de6_3Lw&6A?8=Qf+h}wKB#QV4(w{J5XohmDUUp8)^=* zC%NJbd=8?uhQGB;8<}tYLWEZJP+V*fAN=F$lvlP726{bG>-5H(Z#pkqzMMsGzWKHb zhc6h#23S&^W?TsG;a)(UL0~N1&Tj}fga-U+VBdRI0g%vAyHdFW)phBpiok_8!7=7A zke!Uja|-42oq-~wqWVfz`XKNNi=7!XWW>n+Kpi1Vs7$TDORfC`vx4EIm8Sr)#Hn@f z9Mq|@trsPs`@m~$H_ zQtE<~YF&Sz4%yAjVlP@^|NcIsGrj6bAQnQQx9xWfX4lBu#W2#iBa4ApG2xLeQ86)2 z(_&+tRJsUvREGuQqI|GI5%vI3M+6@HGgyZG`)|cI0#t-WyqvoCfo!rXU$(8?ek^?u zl_blv768o(@^y-higJmJigt>OjC4|J!`*EG2Lc3)(HR2NQL4SSBgBUK3xn*jpg13U zw5{rxV5PM;kk_sYpX;`k)?diXx`df9$(jnplBL&v zATTxr)wl@4-*uajeV(iZisJh@M?~WNi}eA!fAs++`}$MshXOUH*)L#GPa$ABWDl^C zQc^c|R)97CrB}Xl_wly}SRVj6LZsGZBRsf0cJkCex9*5v+E8sH?f|##@rfUdpW^ka z2#+hl;{!R$Cn!X!3JX8Ww*0-b@WZbf))(aH0QcPdf;nzpK1Z={=g|JQ5~!mDa&?SI zsVwpg2uk?w`yYgC*yBJ2*2vv^_NrYyy;G!GZ4pnR2nXsc3bkgCLLd3r#3|k@zgn|S z(-01g1J^cGUp=&Y?>;VGBTJOwF<*1|LU*99poxr;A;5YEVNYb;#fxke*1b(sT-l9) zfyE^y<0gCgK7rQ8S08!&$zecUDTpKJFVpD4rg;0y(>W_@I{!JrHb(M_8kE9Pna-yN{=X|pugy)PrO9?n3KZXU)VV~PyxXHg4u(l z+F1UjHg?8?nCaCU=$|6ZtV0;pjw-C=Vn)92uUSA{1-C$U!pZPyQ3rw{_MlOgb?I}U z&csWu%#>ty-dzZJ#yTc!=gFBs9pQfH7e8fU3oU>k1P$8o)Tqjm;N(MLzrxxYcAkQz z>?DvQf^#oCB}px9v4xNgjl}pf++57eFrO=aF6ro&=#(F}aLpGkw{Ik#uLm7#*;YstY!SoB^;o} zvh&XjO4+?<*3y+<2LUyQmsYYwVyqPCavk5GAREKCN%RRqxhDo92}(T4a5dkO(2OTs!IbbJJnt$mCxRN)qp@K8x@QQ zg#`$by>tIyp52(|3bbs|d(O*OtaAS3lTV!AefM1!J^l2vEEP4RHnBRrTsV}{GjnKQcqg@s4- zm8ru5Z2?xy%%I^TNB0NnsNjs6FGS}5h8Ti0whE^zU6@h!0@uh^hSksFP)GTG%M6uf)SbWcPRQI0 z>q4QaJW7>NKjRi5gKd4X^?Nq}v7(~!+#*0gz|pY2`Tz?dTZlrT8VuAKLXM!-({iQ0 zdm;_%%fj=STk(@Bu51NH64)w>1PC|S*PrICFMWV!gd-T5KHUZT$G-NQ;co$!NTVMN z)LDcDzonu2%l106?;$D{4eXyn9RKn2t}}w7-*2dAJ~j|&dQ_N8bnJAO*w|PXcJH8Z zfEA3fC=UX42G4WM;E3lyu> zxW82n0lUezjrt^|AZ+5KyPs$9(?x@gEgnHS;WGuk%dy&zCCO>regh)<=P& z)e7h6*lFFOqoeKn*Es=}M5B2ILCH5zA7G`XZRmsmOAg#;UwH9*58wI#%h75beOROu z{@f?Rp!IR?Q*Wi4EDJjrV2NPzvQ?{>kN5Dpg~!F(G&_JCB~_?rA;>Bj>*juH)ta^M zvP0M*1cDtf_Um;UULWs1^+%yxS)vMycoC?hbkk<=1X6j9o41eY)6bVY&W0*5slD^B zK3np|Gvhs`1d2)(Rz#ABjKXXSyl25~a-Vej?2(pGjzZYJ4U5-2a zy~CHu)Ik3PRPc>JbFqHZ_(}R#-gwLN+O=!!`g%6#4fnx4&%gAFm%F!r45|p-fc{By z=ghlH$O*bv`0A1%arUKD@jm7X8(N9?GK};Pb4Hr<^E=Y%4-Z$0L;C>zlQ_nU{<1a( z8GJL_%YWlo;L~5Y0Cgo!P8EWMGW%85c414WbqQ9+J>%3kpw5IruroU=yb@Uuilm(X zoxk#z0YDuQn0MY82PNe#RVoRL^|P)pOUgE|U14wEYqd%Yzr5qh76UnC?GKYhSv4(u z4|{-BVGCv=QC+0P8a3?e(jIcPf^AWhT1tKfYLA)OEO#-4TX<>mT^qS&At?a0Qi*Hc9)^n0;~$CIReyH`1woh<@R=LP{aiUyf#Af zg=^z8t;2u{Ex8Ng%mvTKW$gXXoNkf>*$Ed_y(1~8Xn7xTmmk@e)hmHoqe`iM3MXQJ z+p}=vdE4uYkG;adX%3Lx9>c-Dn^N*W*q)LVpSAmV+(%!m<^bJEy6fs7c~be6re+3; zadI!oto&`%hrjm%YKbPvI-hT`TKT4`0*uagsUX^E*1OweE{imPqUT4UC zIWDyzKPhAPid7rq9t3KM*j)9pIHT%Ew!#aFM3}pUkmx7heYI17TH>EssSu}CeH~=1 zdGTx0-ZKYGraifqJZGThr04IIq#6pgr*2J|yD>4@38*cm7gY5ONv>ER%dA`)l3wwd z`!iPu0kvdg+@+q6noc_z5>sB=mbvT1p{yeVfLfB9p49j2gd)iYD~-K@93joEzW3RK z*SZ0<=JOTnCnx70ekp(7-Uop~xcqy)rnvW8v3hkkAlAZH7B~U1M!dYqeO4)x){h_E z7wq9xmjzg>x99n;Uc0FeP)iV`ujb_cYO9Pv*vhzP-Ml4h5QqKxq2RSuX6! z8ygPcGPP_mV4;*@iHfmql- z`}&#;u*3+kfI364rL0e2(XE4m!dngd$G+}Zww5kNWM5z6seB-4dVP%oEV)uW7^t)O zrBqHuz)~y7x@3QjSq*_qwJqFGeY_|ZG(#u_CE+yq#k zAfwLq{?)#=SO^r=cx{0H-?af22=lJJ!o?m5adDw>MI}Ie_$*(Z@flE*PJ{I{ettVM zz*1?SL%?+OjsVM}69O#WQ}dtyVXA+iJ-~X;p|&zzcpv=vJx`|mm7Q62{KUz}*cnzG z46vpw{P@!?6Q}z8jvin(z*-9AsA;q3M1+cE#TcCZ!-AJyS>AAWKW_+br$BH+>*Wd$ zAHSdFy71GXe4z@cqtNHwTPRm;5Gs_}-a)}}Yu0a=ftgHfC^QsCw_%|BD4f#|A1?`dOHV_0DM5$uEV+OpnUW&6~o8RWJaC!BFVE zbN62Nac&;-wNcRv{6ZD|f&MAc(`WR@RVx07ajr1}se+%CoimbM6WsIb&6|Bc{B)7~ zBoD7}^qceh_3!Tl^iK=&3v`i&`t%l0n>j?ba6MPCGBZl`Rfb0K#usjKwW5ExQrds` zn6b`4|1|yH->21IQ2=A}Gzk^Op$9IH1nO!LM;Ir$rS=D2nmt@=JGL}gmRk8CP-lxs zt8o%1R+jV49SpEckc^Z5!t%vHok3=)eGRi+@YpR^Vab~r*e+^jCXxyjFB3Oi7zN}g zJl1JZYj^u=2-px}v3DD6a$tLNfg5`zFC?S-b)fbVvMq{ftpqzZR$E))T(lSBPJXu( z2v|c5R`%qnje+F_hLdpWC7`wvWmJA4Y;7JK4(NkZs%oMvr4J`t3L`U2S^9jl<+0?{ z%uzs|DV6uiiz-)1^4Yr~we(o1I?KWo+?3ygfm*}K`(+UO-`FeIL=a-EwpE6)uR+W% z!~3x8c_7x|)cCPG(sMU$Hx|CTB`tq*YX0u0f$oIrt|DPGcSmLSnrEmq0JSE>Qsv3Z zw4OnzyIX*82|-q2h{<{q!)=!X-N|Cy8Mwn(v}b#I!P;$U`TLXe4nGOh9BEP6D2V}U zHCm6dcRYk5_+DVFG6+l;oPb)Ca%POkT(yj6torDY_#f6kwfBq!s5x7W`F`6B`RBG7 za(_z9*jckZV`nr_Tj0)uo?J`KCqbt2ufr@=PXV>Ye@mSUP@%Et!$a|gpF(~-GZ3gb ztG1>N-(e~|nwC+>>`2eE?mu+g2dF)K58vt`OS*I)P+P3uVf@Ni@GY}8VRsCWOe`3v z)5Jc2S);vx8V6E6ySemQx^(r@>?3CnEn4*DqP~6lc86vwu!O3JJ{nc*KotTkw8M1= zYLA?KCmvqC!@?Bo|9&%2P^f5_TpKe&qEz(&dV1zGr^i%c7O`ZhXP)rNxOO`*>l*WP z(&3drAHMaf)4T7#&jwa^qNiVa)rF_hjFM@z2(YFhz!LTXYKw@N*X~*uXG-05>{M#r z-UHo%nj=X#K23iQR z9{^(6!dBL9CTmo>F*6ln zXCM}D%h3e>!8`Yl4X zKlfpOQU3Ms_(i|lgEpwNg&T@xrl)`nH=NPZ$gZo)0xW@Cez#B^F_|k4y>pC z`2|5k_@`dDE*dB@JPi96)ujOzS0w7mm+9RFGUccV1N%4uv3Re2r5En`3xWOh`scS% z<)3u@o(({($S8aG+!XG9=5DJZj3E&Ps5ZKxPcg)Z7i-?_`fPvvZ%d}zNNR=8lpw57nGN~dgtdJ*@ zTTqFWf>~BeK3=@|>4Kd*6<4ob^=MQzYYGJeHb;G^}sKcTj^9>4pXY@q3=kdBy9zS_K1q;QKZPLZUZo(YpE$s4kWeTb7%_XUGtj?9lz%}XORYG80~y;1slYx6 z-CS)8F+@pa29@!`Fra@*@Zy{a(%rw_Xjc^$PJFd-6$L}0$${+xU_&j5y=~5>{)(}{RJRqVBNPc`bMbhs?imm3 z5;YT6i9m`qHZ`yxLBj2j157`l_VUWP@T4rIzS^txwPA)Bs@K%U(#9>2HX^{^*?)#R z2Z1sQ11hKDPuvgGRz6uJ6UAw52*>a}{fxCtl=0k&kB#3LJ~4l@Qjv7}5l=(y#}bpZ zvbFG#B~HWoOvR-@Z6!@D&$F%11Wo+Rw%1QWq7=it?DWiS*(T#EQ+&27kX^{S zGcNM2RdGU7MYAES%u>$y?WmIjwS_RdG8vy|r`Ujrt;9k*;XYAj<;g%xc?3{ni8~DA zP`#Fum|2js)l_saJ?n%Ts5zSWsxSFw>reL9LCEK3R$fph)jR{#77A0#Sib(ng3G}` zZQ-};mwSQQA~}E8ydCC3CeB#6H#vJRvtn!73ZV7~G}rZw%&_(XYKx5Ayy5xZoQZwm zg|uE%-2=KQHR}FhVGj=s2om%HYHaQk^XLCm{tFYIoblUFmA^96=05o>P;=D!*uE-7 zeFYXzAnXp*9_zOo0y6g;-Jh1VcbXMzsefw?y?O*UO&f^u#!?DpXmWkF01It!a&>0~SYZ>S3cUz3t3`aV z7y zpzw#EaS>!)F61HPMKv_TJ!ETZ{1S*|53jm1z{1|S)~`=3RAN>YP;_Lt3lK}aaP3?+ zB;q0r3_Xm>un#so4voX1E)B4x%J2yatzIOQYeg8?KLjW?OzQ%~5^p_fdyY|!Wm})( zOT(K$QF^VtvZ+f0ESV~NQp5U$3bpP*pjd^_2}t|m2Ymj{KY!=hLdr^8WtceO$3h@z z^!d^y0T!sVFC)bIo(-_j0>@-zWiM~2Y|(+nK}raEX2A<5r}zbQsD&^v(A7n%lpK|4 zB5t{P``vu&y@gvFwUbQ+Z}5j;2n9ha1KxSyKj+cMb3Fq&HzgW9BbKY52I>fe81E_c z;g$I1d)O-=_z)g{!zYVAe-}gXpG2UcyL9O?yFRx@q1IIJgWv`nnE3PQ(^B8y(4Bak zQ`k3?S|4!_P-h7d%Ju5-h;*q&lOMq2=T4mJnK{YJCq<^!ef9d=@4lLDwnSR1s@VM; z*=UIRC>Zk0^Dn%HA@CNZK0GUcFYpHHDw8Hpc9!YF{PDr_q(UF@Wgu6yakQ()svy4j z{dX3AH0$t@qd_$nE=)Le`pjhf|LN{Nfs5qYh>a43S`GA1@(<+n=7=SssF-`k&C~ZC zgjr9;%$OaCAToN2kNVf4d{P?Z(eCPiTQ#KC!ULOm0<@?BDdg9es7^o zCJ^Y~5Otby7g(xGT5lUf3mPh~q-n)FfV!F@sd%A%FnRk_*vh#ji4{!np$k4hok_B* zRx6E1iMXi~=5wV~Ghun>E(Tpb*Bhv#Fr({x`(2k>a%cM6dY(m~9>03xzC^vFa!XxBd>! zE$#=@7Px)6H}-xV=J_lNN-BSI+K%D}fSOWKdHJ5LX$4ES81l|-P0dMNwrc$dpwk4ebf%_L{-(E_#A znzUOkvl6TCkE^@x1k_$LW@);Mq_X>ElJNc-?aY3GoRA*={=P23!GYa?K3%rv&7H@K z*?{fp?vtg=!q2{Z6L9<;(9JFc|E{l}j|*QYzFVuEeZNes=`U8v@5eAh}CQg?4}@1X*jR)k3m0$lK&41|+^XLi=i zbj&;gV!gQ`ec4NemA@}G>_2m0|B=gYFZ?6|*b0tL53siWP~0cqvdiPOjhmgv#6LnjrL@YNy?gbW3!WPWEv^q2 zKZpJ&z>;fRf!dqN9DO%}+`Eaf#+~{EEt=n%d+u{in9$^bwS_n9BmpUaIz-U9{+OP+J z9DzV+BEo|pF}uEqs3GvT^{EyoE#RT*CG-fx23VKF9(is!G#CEa0uI3AhP$x=f)oK3 zlAR$yjzGXMS*+9q;&sB+g-4A9c1Bq@Hk<-tNp_rE&fW9p&(d{!mjFRa;i)sQ>zjb} zaclvMT0aEH0a#y{d;R*tdHRUxVNn0N$NHkebWT9J1@8t(Ht*k{es|R@KseO6?X8sn z1_4$F10q)p`VYeUgQts#8UmeSugX_AhD#*q&ee^Az^zv!gJl>-$iIlahp=@_|@*ep}nWiR|-Re-i=y zP@v{C`vnYdf7;$cILXt8!4UEywtA>hKx8+iji$oz+qZ8^Q1Npqh$m#jD@LK!y$<9E zzW#|1l{y83u&s1zK=9=!pIcyFy>|Wk$*F0t?Af>fu`_4SMqj#gNrj3RVMCSERB(ey z;0lw$8vdJ;SHXipM@yiIu98KDZ;{Bv0=j zG1&d2cVO@V{Jr^!XP?{n$)d#{AtanvUS1*n^UvFU4Pn-37y+Z6f92K1m>YINuG62F zs&&hNI$NMfI9j6CKc&#V4*12)zd2r^Q}ywV(BKde|~`djm7YBzavM# zj)#0MM_nkLKnUwV*1SPK>q}xL_HE8Kr`_RdI?Xa+JM%=wVwVVi$n^|>p?v6 z`yRf5D^W?eNvPJ$SL1^n=-&|e=wtoF5`|2NKs12Me+94omvKevajjGpI!vl^2KrwR z5E9y38y(#bEs#Bd{-6K<66aWZ3sb9><0STG<4O_%V5lb}V&~$dmH!x=T@wrRPmv{9 zKb9ES^*|f%;K;63oKgOJShAH1)D?Ism7mH|?Q3$JxUh!t`>fI%s51yNu8dV|KhN+w z(0(as{Lk1=DO&inXRhxD>ImQDt2}N}F(WoxJ5W_uWeeCMjQAPx&-TA(2fE_c^p!x4 z2-#LO$QKo268qX52ml*b-^Ccu+2)IJ8-;A_Ew%BQIReyP!Ese4_IB4IQ}e--n0?=- zR}atiYU0Ft(CniAwTDI5Kw!F z4Ax|ER%J0;Aq7QHh*?!9c$S)jyrk25ptjW9(%%&PbC z^DdIdm#q)^=At)HdrVEJ?YDX7Z+8Q=W?SNZFU$YO-d#sWk>zg#zc2wt(EyX+Zj(Sf z?N;v9)g42Ejl0Xvx-YUa?l=qtk~Ber!?^n(V{v2L);I5Sldy-)!P4E#%z1zL13rGNU1U!M;oT7u2qS2N{Ao(~Vw&3TFW`3naX zfGX#oYnsJF9$vj=_qONW{l|UF%C;KD?0%Y3a30;~n1TYjTrfycixUOj8mKF3qKDxw z1QH8wW^rP`FHhzTeG((eqb|Svs-8fO_q(O{vRj{dw{_Qxhg&!Af3x+MzgvX3NM8FS*ym6oJj4Nc-*3I`?q9HQ%77>s3SEc*E0+dXp`y9=p-ICMfpkTh&(~j+O?r$RPPH6* zD0~5s_Fgu56rmnoweiYFpML*^b(^;T>FJja?)cS``!ygZa_oDG5gf)TL64vX?F_F? z1riNTkcSC+*o7KxbmDaj=MUs~KVMaO?a%hrKlym+{_9_Q;hoEV`s>BxfSinBh5FH8 zjgyTWw4vP!7xV)X4TryQykaUY9M2)D)+InXyKB?SSKPF(<(_3*UKF3-|MKALZn~{E zkdq08^UlS&X5*Z5!Rg_JK|rEm<0Dn-=)Hp4XmID^Wi1IvG&nglg_AW04Nz4h zG!96t5N`EEeHnaPfND4eSsMx@8oUyo#L8NG`{|)cKw?FE*d14&i05Q_+5Q z8fN3VOaO8s<}E*&0OU+bdMJ%+zrG0Bv|&I_=A;_}f;=7J%7c;_q;o<2C)e$5{n;;n z{nQgHRzCdr@)fJFT(xZF>Xpk^tzNNW^%`pV%GGO^tz5Hq*{Zeco>;YR-Q%m*J^9$0 zC)dMP=_U-asng_rHS`Hs6v7ya?i%N~66@%vEA;;ogHcfNb*(0mL( zG+%w~^+N2kE8Xt;oY%}R5MVXh9j*~TVkOA*KS|?mSyT@2x_OXme~aLefF!@|3@~q` z<=Ebylses6BYlx(3`MK|6CTJ`l%9k`L5Y^wamn%&2^}ul{xJk zNa%UB<;z{!i=UYc*?slc4_$` zItN<&FikAQ4K=O&{(nCXq^klYA5Fpi_7Sed%f|vI*n_|SN}%HCYreAPUy3{GrvW(` zwY0HMcv~}6N&TO8MVfYW9BU_r$yPZl-`f;kzpDq3uE>4r;4rS_=)Jgq z7US4UJQXd4#=4Js1Bu1F9bY9oDq3#k%IX#&7<}lGRdrVZ>8b^{|05x|vL?~<`QOh0 zayCqUy6OC!?ac###ANQ}=SZU1UlfEyRS70)T0S+%FbW5=jM7V0tlsl4y=Jm32NO6} z?Su70==M(VU2_n_afzX#S$)$pGJ61tg-=n>SM z@9GJps{(>PUeYaR$Af-G(6V|0>1_V|`4=o(UvY2wo|j);dfyY5134W%XbnVY;>2;Y zBt7hK`I$jLy26o_*+(++vN*-0L5@?_t%;#<2)$nrtmTF2TjwZp=UsPCJMhe_Yj?l! z&hFI}`~Fxwf5AnHEcT$=k4L|gmmltFTA>SY&NFy=-m>oGG;1P|XavJW7m9kw!Ae>d z4Vw^%%`mLIF~Ly5Si{O6%ktuoMZf+%zkmDQpKL7M@r&h~b}ueocvXfVDZ|lQX58_D z;exT686J85*gWp;3Y!94RVF z(tS(rnX+No+VuPHf5QIYs?A07F26R#$8yPZpUzYe)nFPu77Zr_)ym1rarOohjQ}T& z5Veqp-Y2|j*%UK8)-bJ$b<;}LgP~;I2qpocOg_+C3+5$b+sP#9W++L-oK+q5WqCQ- zKJT*2E&vh@LBX&$%|v}@Kh%eSXN(aH4Q>Bh5DX_9nl{uFm;r{a52c^!`jaut(8cr` z&_EIOWg_5k$cE7uNHj!6A0cR_o1QDKMXqY1zV`M@iiUyqLw(aa>dQiXcEvC*1QHEV z)li>7>&q1A^)*6cjo@+hwO`|l(T0QRl72pAeZf$YjP?^ct}h)%sF-G7Akjd5qfnpc zzwL+Xdt80Vx|Nq~$WmV*hN=#vpXvHj)ORuJo6=sN(RO_$-53PqWKP|~iQ|&|qD%v< zw&8v$nc1xfT4Iu6cecu=^&e3;a7^uaATg1RQHquSCL^n;Q%4}C|05u4-})u>OD`{d zMtf7`dIO(hqW7;bx7FV!rl$RKLQ2{{$4#65?+K}Cf1?w?qt{gpf~(Kq3qcQ7`$V-> zG_79&iKkR6FOla&Hz%nJaN+-e^s;NF_TaH5S73)0hV?nEHnx^??uVJbg8k1MOc4zKusC4ex%TS14o)nfQo z6MFOpz{1InDmwHv9}uKYv*J>$DMQyyV@}I1$L%P`t7! zWGg^bk{4f4~EY)r|d(f05SL z#u)x}8bVlx8qs?y_4&^jAkj*B<13rEx;o}ilGa7%Vk<5`^504PdCV)~+f@A;kZ9%Z zZVCF=R(*zl3(qjeLag@XbNGDFUsC_HuM`vJS2WJT>)M^JZOzmD6%83|q=Dxn4cEIi z)vdCX*1yheZhXrYY1ws6q~`_=7q|Z+C(7HNH6^$CA+lYF1Ebk_n6TB9#2{Iq7?_fy$DD&#=QE~dD6;; zL?H3zU-NYzd42uhUSIyJCy-d(YAxu&3F7&JBK4I-uCF8sZDd94$Flz3KsYYYhkmB( zJCh~8FDHq8MJ0G1ka#JYd&R|m2}5bL;CNowC-Ry)nb);8f}v05HEoi^=Q$UMGvK{I zpzC#=ZvS5z=qkR`7G6zI!^M*&J=hmWG}5zkll1UR7q6O`yb^REQS=0Il^YRnv_RjF#0jg;Y<<^P;(z8xAj< z!OEr!`*h~!u%7lfLyg(Nf?{tm1`@#9XUzj(GQP z{&eLp7C(61W!K$S;Nz6`o+H@aS;w%;Tn-QC*w1eS!y|x13jt{_oOd=W>UMe`;`lDw zGY;I*F+DgA4PVkTY##6Y%deRPBwB&M%miM|L%3nkKqBV)fQDgh_4x$VqZr{SK%y03 zX7)yXxL*ug-0S02uNuso1SDGiz^nvD3L$9H==F_TeFE-fAFp_2BQzOEv``=JKMVJ> zZi{DqJnHjuiU)!0w5zYVrYDe-p+8P3zzIU(yaj*vi&CqP7irHa8fKlIrnib3-B$y> z9fB|ppXoLiBOFKQxHpfBKW96=z|j6mue{Qe(oqv2L7 zs~W8w>SAQ=U+|S*R6e6YmrsyC#^-;EW~h~w^-@(c6M&peeqQR0gnxp=tBQ;qx(;pi zXM|K0SiXw3`Vb*sEvu+CtgK?GzmB%Q3CQ=!;q{JU1WEA;%B5)2xn7R<8diQUAl(*7wnwF_@Nn?;JZ<+7eR8{QVc#vbZ)h7Y@K4cwe8j0as_hT-kFZ~FpD5lc{=xsf4 zB5kkGK8SgZt_5?TraQ;*BkDxtHD6j1VgN zVVHhQChV(d_-kNmvkW9&tmPj*;zt10F_bnY^cX&bSH-J7DF70y;EI}}0KJwGh_M%& zqr9m-;6w;0Za#X*URr$tkXX#z`suZS4RxRTA`LGx#|_9Eujdkb@Dy>V>5EA+hDSrqx;>G=2RfDFqePGBba?0 z^NB4EL|{|HZQk;_oYcxs`T#i-+RmE6{>`7r-m<2j-&6j~k?S_Uz5kN3qrY%(s2%|% z7U4%~E(if93fT27|6ow)zwSBHx^YrNSvF%G24X@}i5$1TXoB$*mnYoVhB_o_GqBoa7d+8`hxUNT%tm16^#zoPKw?!m@3QeYK5C>xnslcq z>P`V9*>ndOF~{u*O!xWuG%V9ZNq30|tmyXRiNMQPkKjv^44YOoI|)dvW);uvZSykI z+a9jfwt1HvZRGZ)7xigYp*L^l0zM$9Hb1A(c5=4w*NKd9NYq@sth*U4I1Wgx0vz90 z3l-+_n&m-FcF1Lci-rO?FWh%t%_>OE$jD3p5{qdmGcH0fnk#5DoS^lYxiL{p+V&nj zJZr|daZ`E$iACy+jDC8k(1!cj9mo36enqLHM^8)u5{q1$yRVT~WD|8OPVLuzeT{I@ z^a&HDCIE?r!{zO-hYRiTuFuSylQwyBW^W*;LVuiA@xm+7_00U8RWNgRK$Pj5315a+ z;8l1X-h{W|9XJSwc}0H@;mZdIls?4gj}XjM^O{kIGK7dAOp>Owd2Dod0d|v{J-pj*sV;Id~ zJ&c5T$jqAs&6>$e>IfibU$<`Ex^>Ha@=!m1TT__bQojTbnMeK&!>)6e;j2>wkCvH62w`ki( z3CfQ89%9M6J@idgeeedXM9i(15-4x7TqSis@|M*vW-A(hGkf!)9eEqx|4Z(M`T;=V zfr-?e@2zZ3WVd~D9*|hvx9uHsUFo*kC7WMJ1oA_)e*4ooTXr3`1Bn;iw9c3GP@-tf z9Lxuc5``|}t(l3uon zeR|^HAqhaDg^9<{M=+Ku86i6(X^w!X$3S!N8Xb<9XA8|K9t$L1e1de5n^Q&vG;5UC zutxgyU_1Qo)yxqd)fi4cpN!YEMzWGIior0n47u%_ILQ05usT# zhXMJa>(;GXw{G2}9ZkHe;-g2<>*Y1P?WG0b#Wx5tzCw6Ze*5^1;}?L zbJeHkmS+j`bD17`X$cNx?lPuH8;CU8!z>hHq7yFZYf4BSK`(3cjCVLEoxiB zU|)nx_jxwfJ6^YukT$j?ro7bHKkfB@Bmn6O+wQN=n^^h9K>oh>lQ);_ zNooE1XabNQqSfU)_N*$~+W_Q;=r8Nb63P#}b^Xh4983Wc3to~h6fw*UAyzIc>NYM$ zq87AaSY5W0lZFC`m#kc8Kh?}1Ch0*ile^3?lVu|`OxDe$@&B*AdkS+UiK75sqifr? z?K?>t!P>TM+qP}*294m_w$1LU4%b%pzqZvg-+A~o>gjyvwbZ?D9l`(r{!djnJOBUy zgkIcMQ;z4G1`|#r!v1gj&3~(WoKe`VQWJOjl47c?@%2)S3t1PItn(F$mNqLVhzrN0 zwhkfezvS0)dnu8$E@}4rO6&)>Ge)ehR#|;@BVmMpz2(plTfC8NxBE1!Ct?4#UBlb< zmP~twM49|1FRGN~tBkt%;eqa7jrk*X(I2&nfw1+_=;`UF22aZOA?)8$IVD?muxXvD z7|vAc$WnB%Suw>z$~KEk`+*r`E?FiS&d#whXVb2_{ldP9odLrBE&IGAN+^>mNBL!e zr2U|3+7C!key5`GJIHN6aJw4gcaXbfojLaoO5J%S zsM)v5llbAPkr__d{~;K528?^fy1?`0>NG>-6-|8pgH=}_600)Bd>V^n14uCngjD`{V?!dgOkHq(2nWTdxAdU_pw&z5w@2*h??a@6$vP{RHz!AP!T z{1b%%zL%WC195(-qVek#o!_OH{JwEfey=aeZ=?UKsnhc%&Dt&WO0FYe|D`T#?ArYo zXY2c;qH!paZsMPiZg|jCr~U!SbOSY>Yvi4nZX$>6M(0iv^{!r1s2~jfIrl&IbiM0t zytM{lZZu==ygi->PvNhc$&Q4%QDWx8qaJ)JbqHbqH2?q?h5`Tp0Duvbc9biR%x)pY zvt0xFj!t_fcq78xVANyjIy$x8Ad&4PgLK zy`TgD000000I2ec#bU{fMbleeb>r5$gaJVH;_7e!0000000000UjVq{$bId#XaxWO N002ovPDHLkV1hJ3OSk|4 diff --git a/packages/checkbox/src/img/spritesheet-light.png b/packages/checkbox/src/img/spritesheet-light.png deleted file mode 100644 index bf1cad131db0544883b4a4563866339da3dc8fa7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28858 zcmV*%KsdjNP)qs&0$RR%m}>F~xjEr#9bIYY#W9 zyDhC*;@UUn15!-NwGWPy-FRW@#A{KT?WNlM2-RkXC~mU7ZbfzSP&5~iV$$8*%#C)q zM7{ZnqPo1f-V7USdRUe0r}Ha8SOKJ%7P&hex6IAy#C5vgo>bo-PTrt5nY_sj>7>S% zS0^rX7as%UrvyO|1VPBlrh*^{f*=T0K{C@C=4(sJF0WF&c$HP%mltm6cwq{VVp*+| zO>S&U*3hl!EX55y)n<=F2rnWLb5Fey->6&h!FnfO21p@k15eCS<-WeJ6TZ^fD}Sg`@7>6FDh%YS%vPtTCr-++tcd0a#NbGd2h0M%j;9B2Gc20?^|V( z&&nGNUeO%9GF34@7zIQSO2J8I1rsm0?1>qHl%m!l65kU|H zK@f!hD7lAEU)7haSlbcRH+6Hhu9Gjm!oaKJffS2;OT4@qBuE^vhg6Gwrr6Q<2^h`h z8Fl$Ps+H@LZ+P~Am4}`!15ya}UOc00g%{u+Zz)ccDPJdqc!u_mM49~67*O-8l0Q^` zGv5J7K2=}&_JnGKpRYUN=eiYT8X$H*yBna7Iw*mf?CW`w!(Y;F<2wS$ml`)(ysnGi zAhky?u4*Nb>ZSK12{a4?zhV%Hz}u+L9;Y6U6+3=-1D_wMcRoJ`NIoojL2kB2H{4CK z*m;r}UWyoK52wfPy;iO--GKm99+;Td1`YZk`Z5$~?>QZF;dx-r99#i#r#PQsW27gsY9-^{=;jH6Vf@j68pOVwPnK!;Y{&>;rqlUa%+Z z0lUL)uq*5WJHt-juG!&7R)_IG@?cRo2+o6(VL#Xw)`KdTAIf1gkRqEA=7DKIN|PW6 zf>2{TQ`TgKbAHL*UqCmNwf*DwRlyw!Gq}4u^(0NIXmQ5f-JO|x?h#<{!M)VuN!_8i zJEcI|conxI=lz~=@;rIEsu7sq`=74$St*tD>OM(1=bLNqEl4$Vo|J291oSj{%Jaqu z63YG*O7%x^p?)V&g1|#&VEF8!0vHgmA6KGIwTTHxD!w6%)c(~kyP_?Sv-l?!d=#KE-VNXat9oODEQDIY68!<6 z-4)(IjwX`jPY;rrOz3dJ*ccmBp8!O1)R&-Te6|`D6XeDYKn{elD}66WqR$t}4MhSK z!YQR86SC?lgRd~`_mS#L@V%Kn8O8}fjx-@oFXAN_mItYH>qH9uB6O(z#Zwr6#pCaz zAcbjuKtgF~fLt4Z&`*eCIaMgtyo?U5uki0b5oRq3ROpuS6oz$P%CgTrvoyVc97(kE zVvEqIk`5Dgm$U?GsIKQ3x1q_`S_A!)ZQil7U2Mwk@SRcd9e^B#VHg)^4lNs?H8cgX zCQ06tzg?PkFZV=|JCMC_pPgU;41=LCq>7<67!D($9gxN0e<57oapf%7F&;&X{C+^mwQ!P3}+b3M#GtjA?IzxM)C!nciyqhnb|uoE2lRt_HmInXcg5Ndj>gc8VyqmTj7uo8ZRw_!GT0yz;MHbX8Pf((d&?_oZS zx8tBXS~KVk-N6;;{|o;0uYdhZm{dF!oiG~_U>p-FO;-g9!=nJHu2Lk^8_=1P?UiQw zB_N?>B+!#GCdV)a7vyS@!i2y|%LJ%u=+Xg^9DuLT+!9KPeh*g^HwJPRFPUxwLLMei z)v$nw?IH?NXc=CD@v1%R+B z+_AK!HV^p;D(0iM{+hkR!~>G`-4`X|^DQT8w~fF`l141S<{GLlp)6 zg(=sX0aYh3$MhkH-lEt8d}vuo2mg(q$1;m2t_s{Rqvh+HTXCVrQ1AoqhmRh4KB~h*c<}I{=Y7EYlkk21 zFv0r#ddH4*mkqLn(MR)&Isn;&8@qAf%kilT>hwX4zNnA=dLax3a-vQ!7QDb4yz1c1 zLY=f=M_e_DMH|F=E?bOmyvK2ELg z>5rc?kFN{#b^7?(5n!c)v)(=ha)2MW`zwJ`tNXtXci{$9aIV2kxC@VJ2)gz=Dacv? zTDT0SA&N9-gVUHw%=ea<1cwmBroW zA}l(I$J8lwX65o!S`}ZVjSRO++eQ=C0JQ(3qN zpW7Q2qpR@AES(EvkMR9PZ+XhKTY{AO-vu(`Ux7)+SA3MZ?m+dn_nM1WTxq{=mB$kl ziWFwDT)U!gwC3+$vbB?d>=CLcZ7Y(NvB+K#QQI12L`#pXOWXIyf?egVV+wCJ1+o_x zp0tII4<0=5z{Q2fLxut1Jix~)@wt1Im1YQFJlL=2xB;=g|5@E(ha@3PsY+}KWG}9+ zp$Jq4+OMY>+RSd; zx#NegXG1J6uD%gY4zG9*5$N4}@L=Kt)C%6*Eg)=xN{kiiV)@|sdSm>&@ICBBb0G8r za+2=A$5>3fhoAQlwN&*8?gLvJ>(<@7K6mcj^Ty+keN2d;Kai931OEL74<@knp%$Nq zRXl=9xOV%t?^QsJzPH)>Fy>r+{hS;Q@$vVf#`+kz&(#N(`h2YF8wlhi{ef58_%ZO{ z>DAZQa(wapuyy>Ld3*-|-dUYMSDd4KmHtGKxM&BC`HMbj#*v}2vS)(jS6T%n z8QM%vD(D%eDB$@?bYD%9>yrEuicf?ow1<`|_M2W*<{$M`mLv(WP=08v)-d#NnGcXH zJhxWN!p?o0aa?{!0QjdUqabM7ZyGlsTg+CU81;et{A%3S;y|VGPeFucL+7K{`vKX4 zrz&kVIZoFW$kATA!njRbuJ`Craj!9uJ=hKyuYl*yoZ?*9RZ(eeLeu-UzOG;$peyqsLRELDZ6%UO!@WeW)(MXm~Zj1u`uTPojap(d`IG9dBh`b`Xvm8 zCP2;#05K*LZa;Y7U5WQgDk?^oUcG9Dnpk7Xu3jC(zK{Awp}rBQkF9MOjDR7~6vzqM zf$v>B2Jbw0;Byzr18S%~XPDqXX-PTOi`r!sTxDZ1 z^s|0)Z8p|go9mNuy%A7t!V`+S3dFjfu&_G1;7o`4N@KbZVVFRLsfY^W>99EcF=67F zHb4#WcHD`Pe!GoZF#YsT-}u7CqFja#;Khfwx%tIF-TX5Y|9q!$`=W+Aq&Gt!2NlpL!^H29b{`kGo(!Z88 z+Om0bqvYh|Mumli?g+WqueIjvuJ`sZ=+6E71MZ=lYTbqnEr3EpL)}6{g56$z@p-o; zi~ex^YsnH9peKoY;oax<{rjHx(H*pI-MV%_{}kLs>jVUB6A|e7A3l1tKM-ri^cgNd zwg`wh+!n|YxN9@^0(cSvEYCG-*S3H4)mL3U_~3&^K&*Ll=emc5hPeXO2i8;+1S(2- zK=$GSP(M8Oyvna#oABFjzqNV|^?mxuC+?qr{&}O1KK#)A!w)}n1FA2fLO)ZOV0anG zUhFmGBh-fg(7UvvV%$$Z{nQ-jy?5VrGkfnnmJ3jQg(!`FfpM3;fb7Lxcl%a8eCSdMN1WQc|rfSfECw!kX*00JNo-hsbhD{O}U!hGlt^c3*m zbNCUygl}OXybYev1n3{28;pVpFx$ z;YX*@BW%&XZsw7qRzS|yV|lb|(DD13B3Z+Ogg|s;1#L2X3*-#5lP_lmh}i|S8&(%W z4X!hX`!_p{F2VE`kRu@Qn-(Z8vZ=d?4KpSyG|Vi7LjvoM%Zr#9`%SSCOaRX`y??m1C;5tG{c1oqM!gQRcEdEI#*M?v%v#}zDVWLQ3oQw6( z)`+CKGQP@Su8p1I=z~ryq4n4zWD7%x<(p-A9jLyhMVB=X6&rH-YQrh6`zjN%5t^J8 z#1=_jP#OjUHN=!`!%RLF!RM=tN3A-#((t#)gf7ef0M*xP+s`(^&V0Wh$XkxTaeoEx zx)~1SC|;{Cw+%@v`V2waVxiQqnXkwT1*)(4%ky1A*A}#Ie50}vkTYRn_*OxZ^437M z;Lh(lK*s|I4zvXNr(kPh9z7a_+aV{;pYH+6dE;X@WZP24%9H+uoBNB0ODY`pyP z%dXR>O?3ydg@1DKj2Sx%!h!6?T}w=4ryb$e_qX4FZw>VN>#w;3*}`8{^haPqaivIV zJl1xh>=%dfRa$mB1oeNNX&DwTpz4?U{DJ1I_0@=eH za6F#o$xqG9>npKZqfY34+LuFX>6;~izu>k_RmJn_Qa+RtF zu=TmW^x})IFTM1V3s6JMNGsSZH1BMyWw74n7eMx4n^`R5huV5u>ch{nslKTZ1wZ5e zy);3BZVr&W*lYmfXPzb-D;DKL}J;b_A;PhXUD)J-!bf*C!CmWW9hrPVTRuzSmxR z%>}3-c*@I*asF}_=PrkF+YzWPHGTp`y$G3Af~Gbw2FBWG6m)@X2L@PDcm((1JFdpz z4Pa@f90a|9V3k#Uu|Rebz!|s%ze8*22Lr0;551uaw1pPX2D-xtmY-oo^pdIktOCOAh^=o9;J zAdoZ7*`~_~j7Pv@Lm0!C7?@BwPW;Ym-vM%@xf#Y^z2q93f{jpffTjCC)AXh!7BFKY zt_=gS$FxJ&S_MUF?+BER4_|^)OpM=-(>sA|;eGLvNAPakZ#;LOc6K?j;gzszjWT?0 zw?PTiP<-{xJW;Zy&h93E{9L{qKN}&TFsbCWFsbyuKxQ?a6$F6#s_hPBI|)M)ihcsB zuTWL-g5X-72O``rrq$jYt*Uqls3tz?Wu1azi&pbw2hA6<;A^^P;l6*5?^rcn{wrBFx##1xmv@+i;ePuKfsN%R+I@2VIGR3B5s z6(Kxz;buIp7Y~ZjzW>(=rU{TEy_8`XD3EA>MZL=cpP%0X$RavAaS+hcg1S0AdiZb<*54YEUs%`~$Rcz9 z*-mjOd*(-~cDDnnOK^J0_@L~Pc0i86ozHorHeYn-jF>rdrVEh8?j!l(M=##|Gc9ws z2T)x?W3(GW#TxSqOMG?l+d%fh3^n2OCgB`EE5V4OZ*S^$Ao)Bw~d+AbYUa)!aI2yp*)G-e7Zm zp4p`@PK+b1RLgv2Zz%z1U0w zf0xaVzl_YxKEQT2xd1g(SekK-UmT9FxkFoXMW8zE4rCAZ_@X{@0GODR)Dx(o9e)-< z@{&K;U8ybSRd`|j51_i#_=#!)tc?x`utq`;*kg6Se*@Ve8}7p$_yF3$a2t()7VwLM z1FYBKGURbJwt@lmWC^u81A#Z>!Wq~L&pL3v?N-QyAE6y|hhEj_4(*{Sw1FWo3)X=W zvLO`62|{2S`~p3o8Fb}zh8EBWdcrjL8dk#=SPMQtPUZoh!pAV&dZBslb_mReZ{P=b zj;oiRFkhGp6W|$W3*EsF7Jv{s0zE~~Kv!saz4B4hdk-Hq=f<})GzEHE!cS_x4^kQK z2gr2QT!b3f4vGTbZH2)=PYO?*H)V>vgyA<}Cpdn*feAl-&*ZsvZCfB`5T;gq8Y(kd z0tK7!Rk)RvG7B~x?+xS#J-;vQ5t>|pZkn0`0I1ItLMwb3I&)n2-(03YP(umjWq*n!g|#n!4(JTBuCHOc0IKy&SgMH``mUxwPn$u1FFl4GdCJf zNi?N-OZCV9cik)fL19eMfmsKc@jwc7pHmy)z|FU%by97jOTE_yC4fPeAGI_ zJayTRKy~?gcZIue0ycS&=~o0M7XL9poIe_bpvWB-{``5 z=q_BsOVn+iyWO(v)Jkx(U#e#s*jjIEJCN;nq93DUuI2i;!lS zBBW`|Hd*=^pxOx14a@klBF0~8PysmtdvS@{*u}^FtG+OreB}I?C}q}_C{-r2K2os( zs5Ze;-FHGZw3Z{-z~AIi(z3sR?7>}Q_@X{;XE5$u3D)dXghZ>dWzvik>52_|UIwbo z{?|33|KETE!%Z;;tom9%yp5;v*VI-Mgi5v zE5r2WoK2U_=RE8Z025P78R7QgFM;gA?PO`GuLqDV!qjCi_^S#YpBKV7MH%C(EZhcU z5B53&^$FPe5cGBivW4h$>H9NdFn)3acg|3RI*WeH3JCQY@1ke*Q80N!RaN{%uS7-*q zUBVm%EczoX!Lab_edXbKS1NmO$F>#FlQuQlxSD%Ktycb0 z9bOSEo&w}-AuE_?r>1Id3l!Rhcj{pGx4@LE2|$iEH1%}HuvkMSw^+5E5Gtt4)Ig3P z%+ziaiE9q8L}m>P-SB$~r5eUxZtw@Pg?HBd#^`#vB9zsBEZHf7p$gk}|3jxB)^XCW z1!{;UE!~Oa`76gh?CN%Txa-jMW z<(i^}lG?}3Q(nx>mS4QIS-tn$)ry41KvnVN<+D-mJ^U_pPJ)zhDQ&zXfvL7n795Za}q}7h!7Zm0a2ys5YC#37&c zuJzzF0%AS)%3Ccq$0sqdiMdRqBJ(OxP3CRVeJbRFbOZ;6#g`uS0J0Z1i())Xgmyp{ zhmPkB+%8MIv{jtUs518d3{(@(!=-P`+*L*rfGqqm!Zz96#j?RFkk2{gfazw-zPFag3~#c_aB^Zbb6FWbFSQuh!eF9bStl*f(OB7%_ zHsdWTM7y3L63AZMGC5=I8NZPSN}mgq=*&AWV@f;YgXIwBuPdGgWG`;~#=&4)uT>}J z6wjFwU1a^j^-WQ-p+AtFxDc8l_teS+9X*=QOz9pn;oUfGO|{47bq` zcot&eAy?mjfb8H3ac~*ZVLUtw18mS6y1_QcgX0biJwAkNh~jE&3%wekC%D6#kO{F) z*xq(LY=k8+5}HF-=u(5O&=Fjq8+-%X;1wVz=>cEE+t3x7f(LZ4;sI^I4O)Q^K8H`B z(-R7YW`Ph|LKA3IB`9=*E+B&WFzhKz8|?7i{_^lH+X_w(jn*)p5*;%Eod&&j6fwhN zG;yigTZ64S$LLAnr(KvAoMd7IvU-FBI4PJCW31?#a-kiNGx=ocR|Ln}*5M?8fJCgB z6RGtBa->N^_L1+iVskAgqh_$FEPHS zmN68WyUYr90@W$D{CkmFQ~l!&(+~Wj3)TX$va|LsK(~ZEbNA`7K(+CVKiJ4mb?rp8 z0T$c!sK$C|>QWD&+62o>zD4($)@q6$rbZif1tpXX2C~TAcgZbUnf1-;oyr)aLDvhY zCQDXsY@|7Qa>5qlF;^hI%rLI7%sCYGBmVO{&y(G~G zs45=TUwnUId1D|)NKaIcjFhIur|&%;4pg0)2g`rvVe0KjRr#@xl;=HC6bU(Nq7zQ- zIeKa!kTWUbq!Sc5$2LYOGDZMZr|%JCcre>pg6Hl8Wihi*ex&?RdiMRz+vAiky!U=% zAUjw>B3GcQA|$C}mT#5522>Nl7p21R1DClAb0g!0X=STbdrs#n)P)K0s+WN5RnrcU zE4RtJ{Kvk*j0bsplf;0C*2|2~Uem`w{{+MKmX4ph?lL#q0p~L6i;PfGHWuigVEhG>@BFxn=3~p& zI5o0>36_*E0Qx5wc(QDGkhrkQat(#sfaU#~y4n1KHqwI!It3kORF35%4y&hG(ElJ-LGjHp2H#-1>A5{0M&F1|4eQ0WH7{g5XCG0y&X8 z1VA`+12=HVyISeK;>6W4o6lYw2*ib2?$8?iVdj$v*Er3g!>W^4L%MA*yy`F0Szp|m zPo~DiX_-M$8rAXAyX@}(Pi8uy|9Ym$lvMqBzP$c{Odxw)^r zVGTA+U&R>d%sc1>vNhH){(Loprs#{~fa)tC>*|j}aqYFSC&uGr^vtW7g|7ouCro)I zZVm!C?4ZZ}KGm-?#g2W*E@N+?x=hL`9vLX9J;W8^71Ob&mMTn+ z@a&iJV@KE!)3O6$Re|ba_9XEPP+caeip9Y-bk$+auS&1fvH?IWRZgx;oII^9P)&}W z%e3xr+Dpo^`)f~6eZQyh~qUe`&tlCZG4jqk%2P988%qrobp!}tpT#dx-FYq zZWkvn+Ns`kI6X%8)0pBGW2{P32$YnX-Z@U0S++x-#l*`~bX!j4b_cTNn|-BasLa#?=t&T4D0yp4 z++`+kmywyBS2AI%V%K81EQN_uEnG5?VtI-0IZI2ozTtc+0RWB@%aLyNC= zdoJ$sP0OYxVG?C-5QrZ8t7@59DS{qP_DTn;JTyP4m+It z9NVtS@mDL7-dh`+`0K{#l;?q-hVGXtIt9oJu5#xBs7;3sz^kR-NAK#M6esam8<{Lx zwn@&5!>A3(UusFV-`25-&01^!hJ= z{s{)2s_6FIn*3XQwmyVwA#p{_)GeAMpoXaN6WjvRyR6r$a$tb9-|Bw<0&4p}peM9~ zFCiPYL2Dof=?kklKG4|GeN`8$-4rLn8u%630Xf)E_z_-$4$z`XSk)HVfk%~(H-f(K zDLe->OQALqGb`;+2yse--JlXU%Sb|L#=mIlgG|&^!@zS-*t_Z1= z6UEg`i{V17zB`MUmokc9 z;cgF}N>?yjUeO515d@pdJVeR5n{{@8apM$FkD!Y$LwJ;^+X`ftB*Qm+Y29`4WCkqM zU8eWSE_}~VarqCC#KZ(6)Iz9X35crgatc&qt&8o)1^_iwfK<0rSl2pcN>EoYLssvd z17vNIxLo$4B9D2=91vZuF(4A*#KAxN>MKC?6)4lh@|DKg$1R>+Slk#3RFjqR!;@Z> zoq6<*;w&>0Qv-Z!2#DClWyeL8P6MiouS&ZhP*!`e79`W{0ji5UTHQWLtbS{wdiUb@ z6ld7uTy2Pjo$=V+4j)WdDD?oU4c1yaf{v(~9&5Qk4Y5t8cy*gBJ3d{Ru;>r@fkk5# zWfj#0sv=CO^h+!K2B;=sQTa`Av6UdePJx!`gIG}hG<*P5U)^NaM*^|*n!-K^Ub45# z(i5dBWpZ5X$;Lo_$+{i5|C5l#!n&&k{!0DtKs6DqDs|zD4Ihitx^*E^-Io&*4IO|Q z%IBaVVf>P-i-A~4v2ovTRb^kJQK-^yt&2^5xPE)wbRb9ZQy69iNG}fts>|>UeT&d|U9ou$K$(HzC17Kcvxeh9 zD;K4SHc7>4aq3;K0Xaf%+0_wKw(4FEQHLZk2b(x-HY9E@czls;G%mIu@QpC*OqT3GSECZB=b|Sek0H`iAV$0iy#OWR{ z?||_WVe0;<{bgSPIm-mGeq?ZhArPo8V{*%$`rFWi7(ubS87K3t{N;49Yeh1!|}oKf!e#?XI#`RVx^4hY`>d4p`mqVjvs6 z$lb?nuGWFjABNkgCrpI1a0BjwKad^Xh9bBKUqMS4V54U60bB$Pd;#PDZ$LJP!5dmZ zuLgPs`oJ2#E}_+ybU1A?otmW2Gm00Xc&2sw-ne8MW8NO~bkwqB4Dk>0j&Xo|b83ZGs5&&=lk6qlR95(d_V)>>Q{W2NB*9=90S#V7Oma+uXUQhc2H56W1P7~G< z=J8Q`a6;)`AlB$T#cl$*(G_U0!Z6@9`Gtos)z#s|PVLMzeFaosnC_J!lIv=(4Z(9z zTFFcxi)r!qS`64+(j17De;~Ev2hwACm z1;|3A)Qk#HnEpWUxgk)dod;Btak6V}K1mg=fa+tC>ehfs>f-4@787@sO%KJinegb+ zB|sKC;uC`9nQ7ukMUDWds#n%sZ#p5PxD}ASf)XnFV;lF4{xJnJfUFHYT0SN~rNb_! zI%fE`g2h0rL#Ev>IS2ATIF(oU?W4!%G%X$dLY!xefftmdy*w?|kTxo@s1;CE{Yr1P zMJIAaAUiE8vXGgVa3ukVwJ&K`w_OKMzg%2$WdL{H)zJ~>3~AzKYkyE2ZS zgkyzH=OCHU5EN$`0#uvnD#K}>^zlxyLMdK=Nj5QUN|-@FtZU^J?3fLLPWB$(K$UT( zW#bt(%;&3$p8=|kcZz-=*9B~z)*m9#GX4t2ABe>~ddSu{0J;F#W8|Tdu_BrI{1QQm z-Vh=)4F#&r%w7837(a7(6%<#*u7k-ubB`GS#Nu9f9}2x4@%-@IWq3YB@^~##{&vGx zK(+CSEy@#O+ypqblT{T==ow}gkOg-gJOuhU;#%oF{mow36r_wVWyeq_0jdpOr8&n} zu;Gw_35mh;Lw$V{5U1++xdPe4E3POYDAC*{hx$x^1Jxw-$6anycNSe1qBirg45~sV zTz6Fp#Bu2Oc_(NZ@f5mDf2nyh8!*iPs*RsYcN9A|nje26ImR#2Wa@O3X$}O|_4Tdm zI=!x)^K!xRw$ecXR<9}n)}KH&`iQ%a2OxniFa(C%s569s0j@$h37<ze)#|8%%&7U@DN4w1mkp9vVX&96^H(bZbF-GFH*I6nI%0xaJI zbpZVM1ARD8jGY>dtgC^-63O9VRi*e}v;ndRjXoCd`SW~Ln&=j9r4pbcv?VZjqL=>(b^F~=HO=jGHERO6~wNNGPZ35(_EYVck z#fI?BQ*mi2P))ql#htlzsSZFE=lrze?CA`gh0W>_$2Ax2V(Wezta2pH5V#* z_?y@x`rTu^b9icIhqfAXT?c_;~=HOnGtkI2MY8(h;F(%}m>q}=ZUu3&#gHgZN z;d}dms^ZRrM!*ng4rC9%HM()Z7?S`n2UBr{MIkw5-GHi^vAyt!`T35o6>Y!7%+I*H z3aBcsJ|Rr9XSs_(85ep5V7x2~C1axoglwf>0aa)EmWwHv5^bK=7>FtCykpnzj@ifb z1hU|cs~-f~yG)2+m2q*XQiJhe1AMl_RsWE;Qy&Ucov~7FrZ7@t{(qUTz{PLkJti=b z@dILAGwNKpnF9X6vv;Ni#%vETW~dLx_ey}GcpOl5!s7JmV1z>E9TC~*P|9tl_f=*V z5XW+C13+N!F5d_$R)@r5{FDa3@x|?AS$P;xb%t*=NP?7wj7Y^D-|U;r7%k%kWWj|m zLI`lg%!aU}ilajOEVe!#&fP+CiZ=sQXMX&p-IfglLQ=0V-rG){0_I&-X{WfUIHXKz0_6$Pwd*87aN|)LQQEi;k<& z^c7Hb!Xq@PLK*vfM~(PfG&r&-`|03 zw9x8)HbQ$C2E%RC5oSXL+<;4VrsQrQfjrm?{@?)vY+#wD7YTWA42C;s+M5c};B8x` z4|1Bp`;Y~3(AmLL^Zth4U=XxwVE0uc5Wrek4&8tptP6Y&bD<5VLlsr05LyRaFTwXP z7|2PQLI`+6Qx3hHQTzhdnlhgl`bc%mGg}KTMd#n>36{>XAutd60XbP?@QA;7a~L|X zF4wkw{Wx4iV`sv3H!2@lUQH!u!^PTr+!UY&5lHkU)6xu`ft(>orF~Vvout|fzZd5B zUl;DW-xI)r+sW@S-cD=A5ZcQ*hHBL_AOJ4@6jekmU zI!{^GE`JEw6s4~K)dh>#e^lLl_$n|KfS`{Z$JIa$;VIUa3Txbr(p*2r@j`!~nvDFc z%vB)OYek7xj}c(&;^DcAu8|!;HSv$W;|f%h0ckfo2gVm(uQtHK-%6|x_9swHh9~5= z$Kxy=)Ab%yK=s8g6wQ-s{=^t=5GnL?fok$a zw#jXV%G8>_^O_4#eFUZJpJV^u4H0X12gPU}&fR$VJWxYTi@DbH_0+2^f$TLp_F^Mn znQ1AGJuY(Db@H_D@e(h12;+(jyo6F_@;PQV5bN+ksmoViec{rrYd031J9o|!UbT00 zm-~cehGAiQFYC?SCJAhJOYt4wDB~m`)}%;7b|5a=gh^NsUCHRirfQl3S$q4fx7@IG zdmpP8h3#HLwomD;rcJNM!T+nwf@WLgAdEg(U+0ndNbr!`Nt zo|cM}?eh;N0a?K@KHr1AmO*`<_HOPoKzwxqrt`C7Vzm|^raWboz5rxx_LfUqMG}lJ z*TL$Im6V@XUVR?O;_Y|eZB$lPHkR9c(c9khLViN=e6BW*jvYrR4g|6mB-O6wE4XfR zOfTc3KL4~Up8)}YKi@^K*N@<8^Rf3jY1rXA<3sS6vdjvwoU{1EoOuq&TDbbs;t+hD zW%Hq+q)KMsfwH+k)=Vaor9NNi4rGtv%2Nxb$VzaG4Ua?K1a^ZPtr~~}AT>maP#?w) zUsucoUS=x#eY>PBkhOw>f+5`4f&KLj+jy~as7hxPn!6O)U{A*eECxY>u0N2)oNdLC zehH`zone9L*O^Hf%rT&K7&R;cvgWTU++Ys5 zYMdiRm&Y1U>&l$-~R&HXmgdt;M>?4V6}tS z;3nLKLw3H3)DI5Bd5E)f0rzKNJY+&1Bti=yJ57g7kbpn5gkBBQ8G679$c0~k9B2fr zv;7Q7EVz^$6y2irr3D%`*yeu6nbPBsz3t^P1Hx_s@v zJJ!5<51m*0F_kd+m%~@QfvncQnhru}{G`^v!c@ynxVT$8Di$ZCHSEOJb4MZb$I&aZ zxp8d<VOm=PppIgA$W@?-?B$b~8a+C>q#VxR&PziT( z?+`(W#aM7Oe-)5D(Dm^_b?b%+s=UvJGBcHzndcQ36R@EBVV<&{btaTP7`J0jH=u?> zZ5wbx_kZdT!Ze&92U#u3J_*wlXU1Pzvppuc9T00k%*9SPVaTg%3L+qMs$e{mj?Dq8 zFP~(?)*z{_%KBvn^NxtK6_?qmfaViwKbig@5GzBGF+eF%b_TK-A9H=gR7!t2LP41!AIMswdT$e;>P(L>3-MQK zYMK6upQkk39I-RA6;N$(62Ch@Wj%HVa~EGI;CP(@vQ=P8k)Kd%s`l>>4=26h8Tt=^ zYVu}wd80tJQNfezk6YHj@=_Kb_f{A`0dkZV6HD4ol4;{`|BrtT1WENpK53?fK(*l| z7~jWZZ=I)D`@`gn@+Ls_H7G^b4X7bPR62iunPEu)7LLd6pdmmtS(tXmWsbtsW}wRG z4pag2FAUIMgJoAe*?@J5)O4?v?rvkChMJLct;MXQ!d5_z(nn_e$Uo^CgKjxS7+-iZ zEbBJon|$qb*vCJ(0JUq?#D$2gu@{%l39vYPZLx<)R(t>#xd^fFcTlZk_&YSyW~UpL z3NtVb85hc;{r9hp{Bma(pl@bRbNTkW?_5``T*;!Cm>4$%FTJe-tQJ6yAXI90^0|N` zK!#fx``j}KfCAK|tHYwuT_;CZM9MWraEv(!WD(5cy9k6rSD;Tn{ggew^+KH!*jwme z_eHSSC}D#bZpyql1oD+?#Xu~Pr0i#W44+5cI1k|MVwf?j(xwB=968u!_VlT)&%gAN z8<0dIVb2}?P@k70UU2QCGWbl6*4+3%8}*=0jO9WgmQQNQPeOD3fbr#{9UypB(pNw; zLp)t(&zkK9^uh}-G`@ZN_82a}a>&??h|;{s1_MH6l{Gr$#&>{N2!(#&b__Px$jf1v zpvc3Efmriq&UTwTb*js}dGlO~i;IVI0Rq_Hq0>vQ_YM{7ti}%kD#9XOO4-jqX36?5 z%(Yv>xcx|1RwjK6^rF{zm-%z%xJ{Wh-DS#@DK2;pTk7+%JAmN?q}`kqqT+TMW~V%+ zV~iq<#{{blErG`5lq{LPqv-JqnMoB`6Yl=Kz}4cuKy#*qxz3t3%Wd}T*{(pRPMsRe z)#kAJMr|)@hn>X_SZ~6E=kfi?(S_bXJ7!Kql!SEBzg4W;)ZNa04 z9SEC3H+ToWwuDMf)&asH6ncUixB%@n-D!HN?5-@obnjR|3~wM+rzZl_`z-V}6Y1YWYMw&Kg+?OW&QujJ&#NvKd>D6R`&{vv?f$BgEA<`A zkPHJe_!nJ&p!!0$(8ogS(5Z%98GU62#y{Qo$Cl*WXH(*pfeKmbtTdIP9nhHlH=6oo z>dyvYLTT;{q7ZOziEQD)$%mT$lb0?Mv$A*_s_6iV7x;bWi zbke@hW0aZCi(}&309gykDA*&arAv&DpfM;}cL1nP@)BI+YAwgl9QJ*wIKh0XIEjRQ3#cYMY2jaiDpNJnm)R*-T4uy&6_bE!6QtH{Mn_nl zKxxeMQ<~D>Q=T#X6mw$F*aM~}KsDL7XJ0>{`atL11pj2sKAec}hb$Hz$3=c>(_En1 z@YVX~gXH=RKB}_sr^M$?-4-hw0OTw_ak|;~ySNNpw|~#fDINh-n~~AwZTcL()fDJS z8lGC#viJUL&4Ch8@2)@n^b?ELuV3$+0E-hMF8>c- zq2Vrqb>^T5p=ZYyji1 z0E^?FQnpm6`ri;kAZ5F7jPig4&8Pl~qQ~Ku62S*Lhe8&|z6mrhi0AtJb1%5foj1>Y z=FFLHK#7Tojtj6jqqiBmdnR8g6e_u?NT|j9B1n?)7q5)cIp#HU@Nu?wf7BPeHgg3K zYtFp+?z1t5K(D|4dZU{+Z#pi(;tYu`_Yx&tdmyk{GJucwF*W<05P8W=KKF6<@#v3m zEpW$?C?MAS=U;H2gZje4!d&Lgo$J^Di_=klrCV@f*=07QvJPSV6AZruD7AAY#~>Us zhih7MeZiY@Hv_Te%$?`X1_)CTu!V<*yJ$3;;SLQrIAe3~`UR@5nvbtQiu#gpJX3Y& zCP!*kVMzjWXOSSG)cp9H`u(zTK+n&d;WqEN=iJ!wL-^tfY?mh&U^%cpPC&+8DZ0PR zk2A{{qGM5pTYOBz@Y8NGf~?A0Q(kzpBhYhm!rkW1f6i_G{Q2hb1G;?qG8Yhm12>oI zf1K&!lXde_kdzB@*$#VYfo7cY+-CnIgZaEhkbITl@5cDO|8+m0`O~Jk&0Vm-T;Jr$ zlU-&aWJ8CTV*@she^%uZoHtm9SYS}`)S7R2O3U9DqxtbS<+mMg0L`5e>N0b8v6djK zGc<=6VHk#R0J4W?+GSUqlxS<~R1zp2uXTmBq|6Jphbro^UK5z7MMP>A1KDK5nPI}D;@W-& z7hvhk!OU!Q7fnNrQ_YV{F662MJ4G=_U3ea-Aznzcn5l{a@^mWxnxe!m;W8$rbYu0OyI!yA0J8VCkUvFi?Hr_b(Jynda-qO(8_UYZjm? zxjrD#&>bjKo%(U4D&v#Lgxp_Ma%BjRMZhBCkAWGw+Q$*Q`~)vEtp=*gWU=X8_Cm~h z%w{Ssn;&0%j1^8!Q-CaX%l5b4Do+2;PH|Fn(yrr?|6RJ)7pSVBoNJvz;9n||B8P&UF=W_Z$_E6;CE4F>x8hi_efWJ4=hxNxC`a|0|6 z|19%4FY7J>tH&J&=$bGG8~jvsUhQUXO@8aMZa@prRr1^mFS@Z8Z(N57ix9XuKEUGm zoMgTdWvUpX(p;*5*ajzYjvDoCoZ9Ag$2$e7IG#^m3&&jy+uJ{=ubbJ*I_08S0CI1|$iEd=S6d-!R$ zF@8mi2sH*Ga1)?DK|-1N`8)0F#Q{KbtZL(quk!*djv(dgm;M-|0CfrKtNP;b~KfumOUyAa3*t>84=hH{t*9bveQhJpvI zwF{q&JYQ za9Sw&g#^O2ZqSxZpnX?m=Ni)(_>Nn#h ziM@eFi}h_nvh-^L)7jmSYP&CVoh4xvTydp0P+fe}ZggV5$I`(j1RsTo?F=(N2C;S- zo`;%GfLI45(fy+2satm{GJo1GP2VO--}N3)Rp{=@3aDXsRCcU+GQA9_EwIbUyN|CjDr#xdrgfx9`eA>ZxfNBzyrRg0gL#+zK z5gda|$b!=Xg;6F@mbd`bN}S(Us4}kLDUAPpJ^IY1cXRUtfoiftkv<_pmVPNhmU=EW zA-i~ILiSvs`oPYDqy5#zzk4aQ>%!H>cY*3MaeJ8?P^Kd5*8|bAb3SMDI|9{Y%??SA zC}rjmX+kCwB~LT#J#c&+P(zGAc&~AATt!=;`q&hu_WalUsmw zKt;{m-C8VPzIJ)?;fn_rEn2pyb*t8mpr#PZ?lrJd_MCWa%}y1wEiPpn5Z9I7^YocB zje%aBJ;UYA$s!g3o+J5hk4d=x&@<^e^IqJ+)j+>~|CP&6KmTkAtsE9$&6@Xhlg%+| zNu)YUlC%F%BcPfD#vES|fUt$HV%M%g@PZDuQL5{j(09M@55#tq%&KyMX>WkF=itd9 zf5#+$x@kvr53qEycddFH!nS4249I?Do~p%NWSVQ7l=X-aZa%mT2-tAQx-Po|tY}46 z*PY3``+oYxSFT`rk#Yo#zF$(<0*EDwI3AA+ajp{!xNwNQFcwNK?*jts@TIl@tG%6T z#*Ty`sc}0R0fm41ODmzg=m=`Dj2&>{Rn~oW8HNjUX3cZ~)Hk223%CFaQwUv4N=mpj zrp!74*{B%|gT5E{WxE2gc-xP}@b_08KQ_F2i1&>rfLOD+0LF;{RudQseYGbJxdO5H zAO6}wn11sVKdaIbw1M6nZiKE-z6)%);W~Q`_xN*OfYlU+LGOb(=`KJP(^kko^UuYF z5uUdJmT(CFp7zzEK%mDp&2e^s)zmV6c?b8p0$GH_=SQKQ$Hx~0T=+NTmyL6QX3q@A z_|0*4fYl6!L+>-YQeA*pys!VB5wQCa0{ffX@%`VI=sm5MZ^3i*OUlLCDoN5{BDg2y})hs{rcA^T0k4<1U;Z1 z45&p9=nXsJ0vvL1S4-Mb%bz$MccUq(_1ISstQ;orsqcmK{jcxp4azsJ-^Sf@f0CEK1octC+ zar#@e2Qk$z*e(Dz)C#mrn=^a-im^ahwgbo>p)s0QaDR1<84q;{YY3}^5QG}5Td*HN z!b6{ZOgo^48k17;PO#YA?NyK3bm%fFz%B)TJqfhdBs4Wnnc8>&DthS zF-6ML718P(lO%QDmq2w1lNPv$#6@pl3hQ5EW3`(;%edkVR38&^ZnOcakNEVQSEE#! zOr#<+H$FL+S+zsD3aBAGRb{PbCm31))kjiVMvslLDf1&^^(`JgWZb!cq~nPbCt3hm zn=$XDkMfPTndtb$yZOcUn2_o7J^-o-x=UKy6JTwPQcT(spRhMM=hy=7`-icx?#;8n z22ifcmoIny?{B}cXyxj4o`0m}J^D*^kV#3*y0v`SNE8T8Z4>TVX5{_*4_W{X88pCUhRByitSQT+A)cvsDuyYqGF~aSn1!*sgbIaCm^#kJ0%Y$H~SR!!;nlgTv3()kRR`U_URQjacVE8zH8J~QM z36owv2n3dJ$e{t&4smAK=IGQ{_Z~Uh3M}XI0@mRpM+O2}1Z~~7mJKun2mnQL4dacD zlL;~T=Vr{DxByN2>_2>d_Jc~EIi%E^JHtdVXETAo z`tOU=0<16KG+5q#h9)o`#@c8UbcI6>m_q0VN8lb*!aA#Udpg3i&>i|fe;8cH0`G&M z8>rzvSKE6)c3KE}IK){CU%+$V4+EfsRj6f|zBhm~2-?Cp$cB7SLUSMongMdifOJR! z39N>XA;fAbV{_;Tt)U5g0!f^)Ku+We6X6|L23ui0EQI+m0y;xam<3B<3rqoe!dikK zywBD59?XQ<+?f8z)z}E=DS8IHUrZ#(1PO*^iME8t;ju4RWcnHo{RA+ zLliC|w__*2?=elr6Xm7O=@+1e z3frZZKi*NR_Symf)6p1D7>6*+OI3!p{3>4usJ&{)X5Kp5CqaXdtz;%peRb4dA0L9Q zKas5F>Acv{iXF4ak!e?k1FcBd*9FMJFXe`-Z-QoekXmzGq}JE`dn(OagXaO&SNQT< zQ+$)OrU2FdbVy~e9aH`a!@k+)@9==Er6uk0+`K(wQSR<79CzUhyi&|g9n6JH zmQZ0l;)|`ny;BR?0o4b#FCUAs--z{m7J0>KzgrMh@C;CObowjJcStjqZSJOO zcQNrvyQcxw*Lvwaw-;kg?IX)>x&Sql)$#@%pdHpXYW(iI@4CJ7&O7cv8zUs&MJ4QE z&|!BC>%=i@w?ush^xk{#xm&#T)?4l$ee{uAPEJl!%YAXTuJ)dnAS4-t+rdVo@mZh` zKm5?;J1oi$#M-bqQl6TU%P15nj5Pf)vuy2_l&L%l9Dsa^cReZQ6x!=~j8m zV`mC6W)Hh@7jJ^{^73Io2q;|HwPv2fnnysa?>5Ub?L1%9YR%fn5z6E=SLWfv7FIhMdShL!RzUNy9?q;8(_MjPeez?!;G~kv=wM^! zs*8-OA?{WUwr_TYg%!Wbu9ohTv&&bH= z12hX4-axF7^;xUOVSTtkN^EqHeedCSE4GgY3ZFI0wYsrmJFtM=cKCJl$ z#0puV{#uZz+Y|Pe_I6#m8sy>Z@t z+V6llyh;aR&8p$?Hv@~f1D!c@W)OFL?Fz8ot1^W!(W9g; z`jxwnBDfA>_ypdBa1g+F7y>=PgR7@CwB%}f7J7g?jDQPpjl193Kz3>d(O`g6a31pD z4D1I5tcUMlCX9n#T#e1G)+G85oQ48e0ptXI;9Xb?YDnj#f*Q8Kk1!1ez;O5!B#;KH zo^Tk`3toV~xY{`0H_u(t}65a+sa0U8@Xvx*u4Cr6~?-HdL zS_VjrD{&EfhwCJ<+GZIYW9+&(QtesqJ6QG&KIJl^0B zWN(=P?q?_)fJWY{7-|K?sGdyJ32 z#`BLWU_>f|9bI)sbHFxBf!|TVEda`G6+I}UbQIYnyP>M%k%|f-2Km*Uwp~M=6qS{PgrF8tUzVh#|C16`_!lVC7LRxN8NZ8s3E4tGhYu&RbuL=8s0C0^P>_o#Fpx#8KUZyjXI<90 z199@y;!`8+9-d@ng&Ryhv!5bI-!+@%Kdvn^`ZzUA0 zS{0ialBUk?ID7sJje%Rt*oq^fEp*Uj~zP$wgI>wAGXHRr%w+6s%q@~cSj8W za^<`Ufm7N5)n&ng1up1d8_NZNzIFy2gTNbnj~_oi0LT%pUAs1hJGQ>|21MWue)zl4 z7sy`EKmR-%pmO79cR)E1$Ja7`1A**?HP{?^e21{lHR}MnI%DU&+8?OC@M6Gd?)cUj zP}Wx5NLUB#+avBa1s1^?&fl;aR&iFs3Ruor220^D_yc}`lVJVEvojdD$lZ?y?m#8n zfHKg)c{l`V5Y5%S2!4WhVJdio5R%{qTmz#6cZF*X-@`6A2bUlpPQyv=WBG6jc7p_# zzz6U$tb`++OCSVtqNXq!UV_CSfec866i~r-hy*31fC5GWJq2B0Dtrfj!)90yf5Lod z3iJ=q26{oyC$V$hzy2juYJ2dN#h8kwUycj1NL(;)6Ua;p(bgL@ImYM;^rU&Fmpq3> zn{}vx5!Sf|5<0IEuBT5}vS$#GGfkBhF5@XJ>k~B$z6T8V=N!8b1msA(Yu8Zvr z#d&rOG;W%vjtPm^FhMyFw*WO%fVf~V9&ZIW7Kbf?6J+A&9|=&G9^=c4{}Ym`9|}~H zDKcY|*-6ELlVrM`_}g<9i~8sKDov@}eWhWVY@ts|zI1k6x(iT4Oxk^}YoNGvH6A}p zaNmFVt4rojk11#jWRF);Z*=iimwXW@*DXdcxPI79-Mc^y_1agJ?%@#{5C5z8+<=^6 zP_C)@#N^_3K=$BfGqeQ{D;=OCG=j#Z71st?t>f9LhVaUA+ZtRPblyDR{{8#?aM8~O zPCZIXOFO|cWo2d0LZ^!IQn&LL3m5DTfY?b-WA zjpOa;B5DHT*&v4vISL922B1sM{nb}rb+ziAqZKPx4^2$o6}=%^oe`b5YuR@{{M72T zS6_BvKVKDlalUNXvKDvm-W`SewOpVNu=52|Z|?W>V(<6x;lsU;968eG*zx0iPM$d4 z>0s{Opd?wsk79Z1FLB9xmz+3tcI=7c$GYKSystHUUmtXCu*YOPj)x~#-)L~PGeGsj zeT`%5(`vOtR4P>ubYk^P&&ceNosri0K-R9oN3!>f$=!9p3!7{#$jsR@JUu<9=7q{rmU#!OyU&FTP7$Y|OLqQIQ?lTl~A`@#Bs!H-6mlwR`+} zfd5 z2d#@_9g0=LZMY6sIoG+5J*ZO0eW(BpT!WiX#C`5pCoM$o2d}{*ki!wU2!-7388{6W z;3DTV9D@@09_R_{1JmJmkU<9IKsKbq8W{2qnPxT^JYfuY0R8J<|N3VUrc^Wwl9I{(Vj$*5~qNSTJ90d>-4i`}igmj})j4 zV?|0sP>|B_k*`#@(^IBD9;h;&@>G_jzpp%V<_pEii{6ToBy`)I4?Lzl`IWr5Bakh| z?ln!A8dbCv$K+2exV|)4T>Sdv1g!^K%fIlB9(gV*uJd^ zkUAl$9Z*!{&bAVX)PwzeRS^*p?aT^{!gq&D*y_4xPw*=fJUZA6_cb z&$H?r@vFfk?spY9ph2P$Oke{s?mm6NAN*|O58imZjN!&_paZVQ#-kR~KL^)0maA`&10H{qoG^Z4x%Y>Ht33f0D;Vy9qu(w-CkF->??W`C!2!4c z#c&HALDjbha09M#%B|MEl0Bg*XN{phgusWe0@QF6E`t^{-0gAr6zD1I36tRsco}%M zP89?vCKd=Lx5;!D|B9^El^%M{F?H@5uVzV7m#Sk8@jM~1du&uY`+|YV0H`E z6I&9X1gYUmoW(hZZ!KWINV2mZ)sDm%tJ;Vhj{?Omf4z@|)gZpD^H3vdfSk|%X38TOpJZpm5 ztOKF}Kz8H0*|_P1J{I^neq3NS(kevr<@i*?5@dNoX9r%RjRb%0=XzUX>$`LJ9`EY) zn?e6OM&??)t78?m^#yW()-Z{y&kH8m3gbPAtC0sI9CQub$_e%P!zc$`ceb$vr}owd z&KSSe;OT_pJJLb*wFNIH)Hk|5-H8o(wc!uQfMakNj=)hk4kzI>oPl$Y2l;RbE<*tn zfev!u>nE_gT07_i;~@lIhOgjHSO+pV#MNko|6hA|8J@<{#Q}VBOOtv@>hA8|5=z1f za^2nC-QC^YU1G=z0phvt?naZ{*-q3l~-{{2vI)HsZf(EAvH%B(=&292DgmHPtp8c$i$1xQbG z)plIKgw>zYg$h1wn5+y0x{>rgXVhfUvvC4y+#OLlK(fj4^v{QTWkd0WHIv!VVo^jj z{Q)gfTHiSy5UUl(=>;CC&E!O*dl}vi^Q3>1NE42D(gBE7m>~5qA^HbymuIkLW{1U6 z^4_(bHbAU!L>y*VRVeFNLHnM`6tOn)CU_UTpYaZ8UjH?`NE@7Dvd$rLV})ck^NG9==jJpO+Nw0MVG{53~(AI-0QUTSN2wRo~_v5L{Ql zM1MD&lhg&QU>vfxO1-8uOz-7o{r2Oe?`saP{Q2S4m9!8LD{!JZpfsKw&PV^!ACO(~ zSoE8N%0f})KIwzufaIj-%2qw|YO@0nt7M8X!@&qJd?$?nMHc=!Z3o5O%l)88l(upg ztVqkuymDD|k~sh@1P)Ma0Vh}krUGK2!C(TI1SW1|0vHb_Zo?!n78C$tv5{aZn3lO- z-^5J5DO-5H+cYp449&th<76-wECBO&Qg<`6FPWipue8yUaxfNT$fCn}~LOz1wSxeg(O5Zb%O@UE2;&v0S-87t{2Hmv@I73iOs zu-eLqMk80H-B1!y=K#`EmcQEBXH~U!6Ca|6M^H?UpqkwJo8ya`$!7Lw^1$PKST`Z} z`)sALFCf{pO#XQZU-r|dtO(yJtLF9=j5v5b54qhT<8fzP%LBw}OjX+mUZQpGZFElD za@RuD^p&foLsYH+#A^N+UA|h>n_OWnRVrwoWtJ2+fW~cr*U+X?QUB2;=(9bvDyK_zu5K;q=ql}NVhNf{GT>JcEpN^8{7X6H-iX zK>5d-Cga5=we52O$re|As?Slfatp%Hr~Kl#I|d&pYlR2DrWek8 z^PdHPw1J*wnrZke=cTw&ksTzGI=g zOh3*Wq1SK%y_FN`gPcqsb%y98ZrCpi?%xDsdKn`q`}!-|CIQlurhcRLU+{5iuqUJy z`h!N1CvFTqvOynwc+?oeN80SAHAWE|Q0`@tW4t~$r4V|eV$Ol!-sxZ!HUTdfb_N#n%nxYG2PAww5j~7>b%pU z+T25;$??k@+Xn)Y3$6|P&URKTl|T2@ME=UEmi+7EEq(o;Ciem)S0NOLzJ1nfLhYG= zc%^M9S8_QXwQ<<;SfRyA%qY@2qA=16 || 14 >=14.17'} + minipass@7.1.2: resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} @@ -10232,8 +10239,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.9.0-dev.20250424: - resolution: {integrity: sha512-jO9Ju2gM0ttqxutigFlarB41uOnuB0H1QpXeAJXF4o3tMno6mEDMAe8Pm2bp6S6TqUt3C+J6K5y8EMs1/Bumyg==} + typescript@5.9.0-dev.20250425: + resolution: {integrity: sha512-gAVbfPKGIswjMjNCQFfydDWgg/GWPnUrTw2iy6ePNDZ/ryEqurjVYTeSKZyslJEgJau1agvTMpMeZAoFCtZJyw==} engines: {node: '>=14.17'} hasBin: true @@ -12068,7 +12075,7 @@ snapshots: '@jest/console@29.6.2': dependencies: '@jest/types': 29.6.3 - '@types/node': 20.17.12 + '@types/node': 20.4.8 chalk: 4.1.2 jest-message-util: 29.7.0 jest-util: 29.7.0 @@ -12110,7 +12117,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12124,7 +12131,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12189,7 +12196,7 @@ snapshots: '@jest/transform': 29.7.0 '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.25 - '@types/node': 20.17.12 + '@types/node': 20.4.8 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 @@ -12290,7 +12297,7 @@ snapshots: '@jridgewell/trace-mapping@0.3.9': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@juggle/resize-observer@3.4.0': {} @@ -12593,7 +12600,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 @@ -12603,7 +12610,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250424)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250425)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -12621,7 +12628,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 transitivePeerDependencies: - '@swc/core' - esbuild @@ -12739,11 +12746,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250424)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250425)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -12756,7 +12763,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -12773,16 +12780,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250424)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250425)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250424) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250425) tslib: 2.6.2 - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -12799,16 +12806,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) optionalDependencies: - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -12847,7 +12854,7 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) typescript: 5.8.3 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250424)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 @@ -12860,7 +12867,7 @@ snapshots: storybook: 8.6.12(prettier@3.5.3) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: @@ -13027,12 +13034,12 @@ snapshots: - supports-color - typescript - '@svgr/core@8.0.0(typescript@5.9.0-dev.20250424)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250425)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250424) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250425) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13077,11 +13084,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250424))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250425))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250424) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250425) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: @@ -13112,10 +13119,10 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250424))(typescript@5.9.0-dev.20250424)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250425))(typescript@5.9.0-dev.20250425)': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250424) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250424) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250425) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250425) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: @@ -13146,16 +13153,16 @@ snapshots: - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250424)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250425)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250424) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250424)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250424))(typescript@5.9.0-dev.20250424) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250425) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250425)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250425))(typescript@5.9.0-dev.20250425) transitivePeerDependencies: - supports-color - typescript @@ -13983,7 +13990,7 @@ snapshots: asn1.js@4.10.1: dependencies: - bn.js: 4.12.1 + bn.js: 4.12.2 inherits: 2.0.4 minimalistic-assert: 1.0.1 @@ -14146,9 +14153,9 @@ snapshots: dependencies: file-uri-to-path: 1.0.0 - bn.js@4.12.1: {} + bn.js@4.12.2: {} - bn.js@5.2.1: {} + bn.js@5.2.2: {} boolbase@1.0.0: {} @@ -14201,13 +14208,13 @@ snapshots: browserify-rsa@4.1.1: dependencies: - bn.js: 5.2.1 + bn.js: 5.2.2 randombytes: 2.1.0 safe-buffer: 5.2.1 browserify-sign@4.2.3: dependencies: - bn.js: 5.2.1 + bn.js: 5.2.2 browserify-rsa: 4.1.1 create-hash: 1.2.0 create-hmac: 1.1.7 @@ -14462,18 +14469,18 @@ snapshots: optionalDependencies: typescript: 5.8.3 - cosmiconfig@8.3.6(typescript@5.9.0-dev.20250424): + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250425): dependencies: import-fresh: 3.3.0 js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 optionalDependencies: - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 create-ecdh@4.0.4: dependencies: - bn.js: 4.12.1 + bn.js: 4.12.2 elliptic: 6.6.1 create-hash@1.2.0: @@ -14783,7 +14790,7 @@ snapshots: diffie-hellman@5.0.3: dependencies: - bn.js: 4.12.1 + bn.js: 4.12.2 miller-rabin: 4.0.1 randombytes: 2.1.0 @@ -14865,7 +14872,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 dunder-proto@1.0.1: dependencies: @@ -14886,7 +14893,7 @@ snapshots: elliptic@6.6.1: dependencies: - bn.js: 4.12.1 + bn.js: 4.12.2 brorand: 1.1.0 hash.js: 1.1.7 hmac-drbg: 1.0.1 @@ -15482,7 +15489,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250424)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250425)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15496,7 +15503,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -15624,7 +15631,7 @@ snapshots: foreground-child: 3.1.1 jackspeak: 2.1.1 minimatch: 9.0.5 - minipass: 7.1.2 + minipass: 7.0.4 path-scurry: 1.10.2 glob@11.0.1: @@ -16176,16 +16183,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16260,7 +16267,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16286,7 +16293,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16340,7 +16347,7 @@ snapshots: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.6 - '@types/node': 20.17.12 + '@types/node': 20.4.8 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -16428,7 +16435,7 @@ snapshots: '@jest/test-result': 29.6.2 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.17.12 + '@types/node': 20.4.8 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -16456,7 +16463,7 @@ snapshots: '@jest/test-result': 29.6.2 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.17.12 + '@types/node': 20.4.8 chalk: 4.1.2 cjs-module-lexer: 1.2.3 collect-v8-coverage: 1.0.2 @@ -16521,7 +16528,7 @@ snapshots: dependencies: '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 - '@types/node': 20.17.12 + '@types/node': 20.4.8 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -16530,7 +16537,7 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 20.17.12 + '@types/node': 20.4.8 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -16554,12 +16561,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -17357,7 +17364,7 @@ snapshots: miller-rabin@4.0.1: dependencies: - bn.js: 4.12.1 + bn.js: 4.12.2 brorand: 1.1.0 mime-db@1.52.0: {} @@ -17400,6 +17407,8 @@ snapshots: minimist@1.2.8: {} + minipass@7.0.4: {} + minipass@7.1.2: {} mixme@0.5.9: {} @@ -17773,7 +17782,7 @@ snapshots: path-scurry@1.10.2: dependencies: lru-cache: 10.2.0 - minipass: 7.1.2 + minipass: 7.0.4 path-scurry@2.0.0: dependencies: @@ -17942,7 +17951,7 @@ snapshots: public-encrypt@4.0.3: dependencies: - bn.js: 4.12.1 + bn.js: 4.12.2 browserify-rsa: 4.1.1 create-hash: 1.2.0 parse-asn1: 5.1.7 @@ -17987,9 +17996,9 @@ snapshots: dependencies: typescript: 5.8.3 - react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250424): + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250425): dependencies: - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 react-docgen@7.0.3: dependencies: @@ -18947,7 +18956,7 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250424): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250425): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -18961,13 +18970,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250424): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -18981,7 +18990,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250424 + typescript: 5.9.0-dev.20250425 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19108,7 +19117,7 @@ snapshots: typescript@5.8.3: {} - typescript@5.9.0-dev.20250424: {} + typescript@5.9.0-dev.20250425: {} unbox-primitive@1.0.2: dependencies: diff --git a/tools/build/README.md b/tools/build/README.md index 699b07fdc8..7e411362f3 100644 --- a/tools/build/README.md +++ b/tools/build/README.md @@ -30,6 +30,6 @@ For a package that cli depends on, define the following scripts in its `package. ```json "scripts": { "build": "lg-internal-build-package", - "tsc": "lg-internal-build-ts" + "tsc": "lg-build tsc" } ``` diff --git a/tools/build/bin/build.js b/tools/build/bin/build.js new file mode 100755 index 0000000000..55244ea13d --- /dev/null +++ b/tools/build/bin/build.js @@ -0,0 +1,2 @@ +#! /usr/bin/env node +require('../dist/cli.js'); diff --git a/tools/build/package.json b/tools/build/package.json index b15c01b3ee..aa7aaf3995 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -8,15 +8,14 @@ }, "bin": { "lg-internal-build-package": "./bin/build-package.js", - "lg-ts-downlevel": "./bin/ts-downlevel.js" + "lg-build": "./bin/build.js" }, "main": "./dist/umd/index.js", "module": "dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { - "build": "rollup -c ./config/rollup.config.mjs", - "tsc": "tsc --build tsconfig.json", - "update-types-versions": "ts-node ./scripts/updateTypesVersions.ts" + "build": "./scripts/build.sh", + "tsc": "./scripts/build-ts.sh" }, "dependencies": { "@babel/core": "7.24.3", @@ -36,6 +35,7 @@ "@types/cross-spawn": "6.0.2", "@types/fs-extra": "11.0.1", "chalk": "4.1.2", + "commander": "^11.0.0", "cross-spawn": "7.0.3", "downlevel-dts": "^0.11.0", "fs-extra": "11.1.1", diff --git a/tools/build/rollup.config.mjs b/tools/build/rollup.config.mjs new file mode 100644 index 0000000000..1a050acde4 --- /dev/null +++ b/tools/build/rollup.config.mjs @@ -0,0 +1,8 @@ +import { esmConfig, umdConfig } from './config/rollup.config.mjs'; + +const cli = { + ...umdConfig, + input: ['./src/cli.ts'], +}; + +export default [esmConfig, umdConfig, cli]; diff --git a/tools/build/scripts/build-ts.sh b/tools/build/scripts/build-ts.sh index f9fc590656..f093b6b41e 100755 --- a/tools/build/scripts/build-ts.sh +++ b/tools/build/scripts/build-ts.sh @@ -1,4 +1,15 @@ #!/bin/bash + +# Define an array of flags to exclude +excluded_flags=("--downlevel" "--update") + +# Filter out excluded flags +filtered_args=() +for arg in "$@"; do + [[ " ${excluded_flags[*]} " =~ " ${arg} " ]] || filtered_args+=("$arg") +done + + # lg-build can't use itself as a dependency in the build process -tsc --build tsconfig.json +tsc --build tsconfig.json "${filtered_args[@]}" exit 0 \ No newline at end of file diff --git a/tools/build/scripts/build.sh b/tools/build/scripts/build.sh index ef032b8f35..2ee57002db 100755 --- a/tools/build/scripts/build.sh +++ b/tools/build/scripts/build.sh @@ -1,4 +1,4 @@ #!/bin/bash # lg-build can't use itself as a dependency in the build process -rollup -c ./config/rollup.config.mjs +rollup -c ./rollup.config.mjs exit 0 diff --git a/tools/build/src/buildAll.ts b/tools/build/src/buildAll.ts new file mode 100644 index 0000000000..c55a75d0f9 --- /dev/null +++ b/tools/build/src/buildAll.ts @@ -0,0 +1,19 @@ +/* eslint-disable no-console */ +import { spawn } from 'cross-spawn'; + +interface BuildOptions { + only: Array; + verbose: boolean; +} + +const validSteps = ['build', 'tsc', 'docs']; + +export function buildAll(packages: Array, { only }: BuildOptions) { + console.log({ packages, only }); + + const steps = only ? only.filter(s => validSteps.includes(s)) : validSteps; + + spawn('turbo', ['run', ...steps], { + stdio: 'inherit', + }); +} diff --git a/tools/build/src/cli.ts b/tools/build/src/cli.ts new file mode 100644 index 0000000000..552cd83481 --- /dev/null +++ b/tools/build/src/cli.ts @@ -0,0 +1,43 @@ +import { Command } from 'commander'; + +import { buildPackage } from './rollup/build-package'; +import { buildTSDoc } from './tsdoc/build-tsdoc'; +import { buildTypescript } from './typescript/build-ts'; + +const build = new Command('lg-build'); +build.description('Build LeafyGreen packages'); + +build + .command('bundle') + .description('Bundle packages with Rollup') + .option('-v, --verbose', 'Enable verbose logging', false) + .option( + '-d, --direct', + 'Build package using the lg-build rollup command directly from @lg-tools/build', + true, + ) + .action(buildPackage); + +build + .command('tsc') + .description('Build TypeScript packages') + .option('-v, --verbose', 'Enable verbose logging', false) + .option( + '-d, --downlevel', + 'Downlevel TypeScript packages based on the typesVersions field in package.json', + false, + ) + .option( + '-u, --update', + 'Update package.json typesVersions and exports fields', + false, + ) + .action(buildTypescript); + +build + .command('docs') + .description('Build TSDoc documentation') + .option('-v, --verbose', 'Enable verbose logging', false) + .action(buildTSDoc); + +build.parse(process.argv); diff --git a/tools/build/src/index.ts b/tools/build/src/index.ts index 08537b9fd6..154fa81026 100644 --- a/tools/build/src/index.ts +++ b/tools/build/src/index.ts @@ -1,24 +1,6 @@ -/* eslint-disable no-console */ -import { spawn } from 'cross-spawn'; +export { buildAll as build } from './buildAll'; export { buildPackage } from './rollup/build-package'; export { buildTSDoc } from './tsdoc/build-tsdoc'; export { parseTSDoc } from './tsdoc/tsdocParser'; export { buildTypescript } from './typescript/build-ts'; export { runTypescriptDownlevel } from './typescript/downlevel'; - -interface BuildOptions { - only: Array; - verbose: boolean; -} - -const validSteps = ['build', 'tsc', 'docs']; - -export function build(packages: Array, { only }: BuildOptions) { - console.log({ packages, only }); - - const steps = only ? only.filter(s => validSteps.includes(s)) : validSteps; - - spawn('turbo', ['run', ...steps], { - stdio: 'inherit', - }); -} diff --git a/tools/build/src/typescript/downlevel/downlevel-dts.ts b/tools/build/src/typescript/downlevel/downlevel-dts.ts index 5d4a6a0d00..14ae902bbc 100644 --- a/tools/build/src/typescript/downlevel/downlevel-dts.ts +++ b/tools/build/src/typescript/downlevel/downlevel-dts.ts @@ -56,6 +56,7 @@ export async function downlevelDts( verbose && console.log(chalk.gray(`Output: ${outputDirPath}`)); try { + // adding .0 since `downlevel` expects a full `x.y.z` semver version const semverTarget = target + '.0'; downlevel(typesDirPath, outputDirPath, semverTarget); diff --git a/tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts b/tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts index c68ff65829..360de42948 100644 --- a/tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts +++ b/tools/build/src/typescript/downlevel/updatePackageJsonTypes.ts @@ -1,6 +1,7 @@ /* eslint-disable no-console */ import chalk from 'chalk'; import fs from 'fs'; +import cloneDeep from 'lodash/cloneDeep'; import path from 'path'; import { DOWNLEVEL_VERSIONS, EXCLUDED_PACKAGES } from './TYPES_VERSIONS'; @@ -69,28 +70,28 @@ export function updatePackageJsonTypes( }; // Construct the exports field with types conditions - let exportsField = packageJson.exports || { '.': {} }; + let exports = cloneDeep(packageJson.exports); // If exports field is a string, convert it to an object - if (typeof exportsField === 'string') { - exportsField = { '.': exportsField }; + if (typeof exports === 'string' || !exports) { + exports = { '.': exports }; } // Ensure the main export path exists - if (!exportsField['.']) { - exportsField['.'] = {}; - } else if (typeof exportsField['.'] === 'string') { + if (!exports['.']) { + exports['.'] = {}; + } else if (typeof exports['.'] === 'string') { // If the main export is a string, convert it to an object - const mainExport = exportsField['.']; - exportsField['.'] = { + const mainExport = exports['.']; + exports['.'] = { import: mainExport, require: mainExport, }; } // set the default types export - if (!exportsField['.'].types) { - exportsField['.'].types = './index.d.ts'; + if (!exports['.'].types) { + exports['.'].types = './index.d.ts'; } // Add entries for each TypeScript version we support @@ -104,8 +105,8 @@ export function updatePackageJsonTypes( } // Add to exports field with types condition - if (typeof exportsField['.'] === 'object') { - exportsField['.'][`types${condition}`] = `./ts${target}/index.d.ts`; + if (typeof exports['.'] === 'object') { + exports['.'][`types${condition}`] = `./ts${target}/index.d.ts`; } }); diff --git a/tools/build/src/typescript/parsePassThruOptions.ts b/tools/build/src/typescript/parsePassThruOptions.ts index 056cd6effa..3f3033744f 100644 --- a/tools/build/src/typescript/parsePassThruOptions.ts +++ b/tools/build/src/typescript/parsePassThruOptions.ts @@ -5,7 +5,11 @@ export function parsePassThruOptions( passThru?: Array, ): Record | undefined { - return passThru?.reduce((acc, arg) => { + if (!passThru || !Array.isArray(passThru) || passThru.length === 0) { + return; + } + + return passThru.reduce((acc, arg) => { const [_key, value] = arg.split('='); const key = _key.replace(/^-+/, ''); diff --git a/tools/build/turbo.json b/tools/build/turbo.json new file mode 100644 index 0000000000..132b0c1be2 --- /dev/null +++ b/tools/build/turbo.json @@ -0,0 +1,22 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build": { + "inputs": ["$TURBO_DEFAULT$", "./config/**", "./scripts/**"], + "outputs": ["dist/**/*.js", "dist/**/*.js.map", "./bin/**"] + }, + "tsc": { + "dependsOn": ["build"], + "outputs": [ + "dist/**/*.d.ts", + "dist/**/*.d.ts.map", + "tsconfig.tsbuildinfo" + ] + }, + "docs": { + "dependsOn": ["^tsc"], + "outputs": ["tsdoc.json"] + } + } +} diff --git a/tools/cli/package.json b/tools/cli/package.json index 18f4532fc7..35db208e7b 100644 --- a/tools/cli/package.json +++ b/tools/cli/package.json @@ -13,8 +13,8 @@ "lg": "./bin/index.js" }, "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "dependencies": { "@lg-tools/build": "workspace:^", diff --git a/tools/cli/src/index.ts b/tools/cli/src/index.ts index 5aef3fa515..c0bd437175 100644 --- a/tools/cli/src/index.ts +++ b/tools/cli/src/index.ts @@ -238,6 +238,11 @@ cli 'Builds all TS downlevel targets based on the typesVersions field in package.json', false, ) + .option( + '-u, --update', + 'Update package.json typesVersions and exports fields', + false, + ) .allowUnknownOption(true) .action(buildTypescript); cli diff --git a/tools/codemods/package.json b/tools/codemods/package.json index 603043fe12..7f2d930394 100644 --- a/tools/codemods/package.json +++ b/tools/codemods/package.json @@ -7,8 +7,8 @@ "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "publishConfig": { "access": "public" diff --git a/tools/create/package.json b/tools/create/package.json index 9ae763a5df..03c58d4d2f 100644 --- a/tools/create/package.json +++ b/tools/create/package.json @@ -7,8 +7,8 @@ "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "publishConfig": { "access": "public" diff --git a/tools/install/package.json b/tools/install/package.json index 45c76c7c50..df510a5295 100644 --- a/tools/install/package.json +++ b/tools/install/package.json @@ -8,8 +8,8 @@ "license": "Apache-2.0", "scripts": { "prebuild": "npx ts-node ./scripts/writePackageNames.ts", - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "publishConfig": { "access": "public" diff --git a/tools/install/turbo.json b/tools/install/turbo.json index cd724b595c..23581b0a23 100644 --- a/tools/install/turbo.json +++ b/tools/install/turbo.json @@ -3,7 +3,7 @@ "extends": ["//"], "tasks": { "prebuild": { - "dependsOn": ["^prebuild", "^build"], + "dependsOn": ["^prebuild", "^build", "^tsc"], "outputs": ["src/ALL_PACKAGES.ts"] } } diff --git a/tools/link/package.json b/tools/link/package.json index 5278a0fa0e..44ccc62f02 100644 --- a/tools/link/package.json +++ b/tools/link/package.json @@ -7,8 +7,8 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "publishConfig": { "access": "public" diff --git a/tools/lint/package.json b/tools/lint/package.json index 910764ec82..3d557c3a20 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -11,7 +11,7 @@ }, "scripts": { "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "tsc": "lg-build tsc" }, "dependencies": { "@babel/core": "7.23.2", diff --git a/tools/lint/tsconfig.json b/tools/lint/tsconfig.json index 2bab3b6865..4e549bd884 100644 --- a/tools/lint/tsconfig.json +++ b/tools/lint/tsconfig.json @@ -5,4 +5,4 @@ "src/**/*" ], "exclude": ["**/*.spec.*", "**/*.stories.*"] -} \ No newline at end of file +} diff --git a/tools/meta/package.json b/tools/meta/package.json index 086da0d492..8940d12ff4 100644 --- a/tools/meta/package.json +++ b/tools/meta/package.json @@ -10,8 +10,8 @@ "access": "public" }, "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "dependencies": { "@lg-tools/build": "workspace:^", diff --git a/tools/slackbot/package.json b/tools/slackbot/package.json index 7274b5b8b3..abb1e2ed63 100644 --- a/tools/slackbot/package.json +++ b/tools/slackbot/package.json @@ -10,8 +10,8 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "publishConfig": { "access": "public" diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index 21254c6119..c44e554304 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -7,8 +7,8 @@ "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json", + "build": "lg-build bundle", + "tsc": "lg-build tsc", "upgrade": "npx storybook@latest upgrade --config-dir ." }, "publishConfig": { diff --git a/tools/storybook-decorators/package.json b/tools/storybook-decorators/package.json index d69e5d2dfa..644c60b9ac 100644 --- a/tools/storybook-decorators/package.json +++ b/tools/storybook-decorators/package.json @@ -7,8 +7,8 @@ "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json", + "build": "lg-build bundle", + "tsc": "lg-build tsc", "upgrade": "npx storybook@latest upgrade --config-dir ../storybook" }, "publishConfig": { diff --git a/tools/storybook-utils/package.json b/tools/storybook-utils/package.json index d14a21f3d2..445c707ddc 100644 --- a/tools/storybook-utils/package.json +++ b/tools/storybook-utils/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index f64321f917..fc84a6b555 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -7,8 +7,8 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "publishConfig": { "access": "public" diff --git a/tools/test/package.json b/tools/test/package.json index e9852e0bd3..f40f0f401d 100644 --- a/tools/test/package.json +++ b/tools/test/package.json @@ -7,8 +7,8 @@ "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "publishConfig": { "access": "public" diff --git a/tools/update/package.json b/tools/update/package.json index 99fcc5bedd..f3077f9ec7 100644 --- a/tools/update/package.json +++ b/tools/update/package.json @@ -10,8 +10,8 @@ "access": "public" }, "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "dependencies": { "@lg-tools/build": "workspace:^", diff --git a/tools/validate/package.json b/tools/validate/package.json index d77b92800c..b70cfb90e8 100644 --- a/tools/validate/package.json +++ b/tools/validate/package.json @@ -10,8 +10,8 @@ "access": "public" }, "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "dependencies": { "@lg-tools/build": "workspace:^", diff --git a/tsconfig.json b/tsconfig.json index 0e9ffd65ef..bf41b953b7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ "@leafygreen-ui/*": ["packages/*/src"], "@lg-charts/*": ["charts/*/src"], "@lg-chat/*": ["chat/*/src"], - "@lg-tools/*": ["tools/*/src"], + "@lg-tools/*": ["tools/*/src"] } }, "include": ["./charts", "./chat", "./packages", "./tools" ], From e1481df1597241f5df5d261e6fb800fa8d507b77 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 25 Apr 2025 16:46:50 -0400 Subject: [PATCH 097/123] Squashed commit of the following: commit 6051460f06b9f08b710fe7c88c3fadd427ff6cb7 Author: Adam Michael Thompson Date: Fri Apr 25 16:34:45 2025 -0400 update cli require path commit 60c1a003d5998856bf7cd625ed60456cf7f71a6a Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit ddd2a83ec383713d25aafd016ef7bfde78c93f07 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit 2d9d6073105a477b944e0a69fd72594167292083 Author: Adam Michael Thompson Date: Fri Apr 25 15:01:31 2025 -0400 fix missing packages commit 29bc251ad60a1793a3cfec8c8faa7b6b4b8fe46b Author: Adam Michael Thompson Date: Fri Apr 25 15:00:05 2025 -0400 Update pnpm-lock.yaml commit facba0a86c92337b4cfc31660b640cb3259e8476 Author: Adam Michael Thompson Date: Fri Apr 25 14:08:21 2025 -0400 Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration commit 3d984c79ebf962d6c15f04b5ce9e349fd7042eed Author: Adam Michael Thompson Date: Thu Apr 24 18:08:34 2025 -0400 Update storybook addon rollup.config.mjs commit a7013d132551788e660d75b42498afa9c075055f Author: Adam Michael Thompson Date: Wed Apr 23 19:42:44 2025 -0400 Update icon & testing lib commit e1a1aff4fd23914416d40d77afe264af80b0c400 Author: Adam Michael Thompson Date: Wed Apr 23 17:34:03 2025 -0400 restores missing deps commit e30382de881995e1701ec5a08dbe08d5dd972722 Author: Adam Michael Thompson Date: Wed Apr 23 16:24:24 2025 -0400 ts-expect-error commit 06325f05460a6666bf66e16c6cb6441813570017 Author: Adam Michael Thompson Date: Wed Apr 23 16:22:23 2025 -0400 Update pnpm-lock.yaml commit ae18786d0f5aac6899775117d78dcf1dc832cdc2 Author: Adam Michael Thompson Date: Wed Apr 23 13:12:30 2025 -0400 updates palette rollup config commit b68837adc21d054eb9d901bf18cad18079a38618 Author: Adam Michael Thompson Date: Wed Apr 23 13:11:35 2025 -0400 updates /bin commit b1bccaa447866ab7a37ee00fc531ba17e2c75157 Author: Adam Michael Thompson Date: Wed Apr 23 13:10:36 2025 -0400 updates main package.json entries commit 76842905f0d1549996acd43414a81ae302c05a31 Author: Adam Michael Thompson Date: Wed Apr 23 13:09:08 2025 -0400 Updates rollup config to output UMD directory commit ed463732cadeb673bfffa90ac1b5e92620ddacb1 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 5312a6b3b738b80dec2d3c6aa757b24ab145c20a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit 242c454a56b4873b5aa20420a662feb5a5b7eb6a Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit e864b6107850a1df25cf2dd35c45e64ba622f28f Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 160ed606c31f8685ba7b249180511a39569126f9 Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit d948565e9dcab87b9539402b8a607815958d2259 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 09ca2961438f4c2aa94266bd8eef93e770592a4c Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit 8c81078fb9a94331b2c2ed180c4e27092d383fbf Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit c32015916f83a1e0d61ad195697da98c7e1980b9 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 22e70929ec6e9aa10e4e7f7acca61f3c23db5b18 Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit 97ff86b6ce5e02051885a8918670e80efe46cc98 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit dde432625ae5903bc1a0353bc27fec0a739f1de7 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit c49db2428436395eb62fb5f4b6e3b8b61afb89ca Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit 9c3201380fefb67b3f7c49a0c4839a287dd0c5ef Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 17a29f9d41ee5a7c56481cc53c70cf58848bf52d Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 305c114d6f27c19a9bc8a35467b651faa4b42724 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit f41e54001407bb1d4d1ea21b82255d21cd4a7408 Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 731bfce7284536a8f915dedbc7d67c5ef3e85ec2 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit b401c1daacdfe677d4072fe9c1f79770215b40f1 Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 1be25fd72dd5201d98a5e74858f7de116a79f2cc Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 61b7ab0195936835821f754935892eb0637545ae Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 2c0138f5fbcbf1af11d504bb50e609dfa480636a Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit 431a7f21bcffbfdd0f45e072c4bae0d1df81ca45 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 6ea1f2e4ab7cfa3caf6374a83f3180b2e82bca91 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 1adb0675543b44c904e81498ca49f00d7a2bc191 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 40743a2023e7522e2bfab6f4ab67643141cc42ac Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit a0b2c2587fea2b5c1c3f17cdcf8cecf2a176d442 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit a4d336afd9a685b58258fe3a00da0332e0cb48d5 Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit 6c3f9bd0d9bd4b2724277d46a4816bc9941acd74 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit b24e1bbc1b14947d8f4de8adbff6ed00bd9980bc Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit ebffb2e331ae23c2807cce4cde5a67e216cf72d0 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit c8b010a919acbc48a8749c30db4b75617402b7f4 Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit f99dc04759d610edf05ef9ff52105ca7f15537cf Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration --- tools/build/bin/build.js | 2 +- tools/build/package.json | 2 +- tools/storybook-addon/rollup.config.mjs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/build/bin/build.js b/tools/build/bin/build.js index 55244ea13d..60c6e3ec2c 100755 --- a/tools/build/bin/build.js +++ b/tools/build/bin/build.js @@ -1,2 +1,2 @@ #! /usr/bin/env node -require('../dist/cli.js'); +require('../dist/umd/cli.js'); diff --git a/tools/build/package.json b/tools/build/package.json index aa7aaf3995..00ae5dbe98 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -1,6 +1,6 @@ { "name": "@lg-tools/build", - "version": "0.7.4", + "version": "0.7.3", "description": "Build config for LeafyGreen repositories", "license": "Apache-2.0", "publishConfig": { diff --git a/tools/storybook-addon/rollup.config.mjs b/tools/storybook-addon/rollup.config.mjs index da7e9664fb..459b8f0208 100644 --- a/tools/storybook-addon/rollup.config.mjs +++ b/tools/storybook-addon/rollup.config.mjs @@ -18,7 +18,7 @@ export default [ output: { ...umdConfig.output, dir: null, - file: 'dist/main.js', + file: 'dist/umd/main.js', }, }, { @@ -36,7 +36,7 @@ export default [ output: { ...umdConfig.output, dir: null, - file: 'dist/manager.js', + file: 'dist/umd/manager.js', }, }, { @@ -54,7 +54,7 @@ export default [ output: { ...umdConfig.output, dir: null, - file: 'dist/preview.js', + file: 'dist/umd/preview.js', }, }, ]; From 96bca77e6f5ca758fb1f145911fe83cae83188e4 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 25 Apr 2025 17:19:36 -0400 Subject: [PATCH 098/123] install build as dev dep for every package --- charts/chart-card/package.json | 3 + charts/colors/package.json | 3 +- charts/core/package.json | 1 + charts/drag-provider/package.json | 1 + charts/legend/package.json | 3 +- charts/series-provider/package.json | 3 + chat/avatar/package.json | 4 +- chat/chat-disclaimer/package.json | 3 +- chat/chat-window/package.json | 3 +- chat/fixed-chat-window/package.json | 3 +- chat/input-bar/package.json | 4 +- chat/leafygreen-chat-provider/package.json | 3 + chat/lg-markdown/package.json | 4 +- chat/message-feed/package.json | 3 +- chat/message-feedback/package.json | 3 +- chat/message-prompts/package.json | 4 +- chat/message-rating/package.json | 4 +- chat/message/package.json | 3 +- chat/rich-links/package.json | 4 +- chat/title-bar/package.json | 4 +- packages/a11y/package.json | 7 +- packages/avatar/package.json | 4 +- packages/badge/package.json | 4 +- packages/banner/package.json | 8 +- packages/box/package.json | 5 +- packages/button/package.json | 3 +- packages/callout/package.json | 3 +- packages/card/package.json | 4 +- packages/checkbox/package.json | 4 +- packages/chip/package.json | 4 +- packages/combobox/package.json | 3 +- packages/confirmation-modal/package.json | 4 +- packages/copyable/package.json | 4 +- packages/date-picker/package.json | 1 + packages/date-utils/package.json | 1 + packages/descendants/package.json | 3 +- packages/drawer/package.json | 3 +- packages/emotion/package.json | 1 + packages/empty-state/package.json | 4 +- packages/expandable-card/package.json | 4 +- packages/form-field/package.json | 3 +- packages/form-footer/package.json | 4 +- packages/gallery-indicator/package.json | 4 +- packages/guide-cue/package.json | 4 +- packages/hooks/package.json | 3 +- packages/icon-button/package.json | 4 +- packages/icon/package.json | 1 + packages/info-sprinkle/package.json | 8 +- packages/inline-definition/package.json | 3 +- packages/input-option/package.json | 3 +- packages/leafygreen-provider/package.json | 3 + packages/lib/package.json | 3 + packages/loading-indicator/package.json | 4 +- packages/logo/package.json | 4 +- packages/marketing-modal/package.json | 4 +- packages/menu/package.json | 5 +- packages/modal/package.json | 3 +- packages/number-input/package.json | 4 +- packages/ordered-list/package.json | 4 +- packages/pagination/package.json | 4 +- packages/password-input/package.json | 4 +- packages/pipeline/package.json | 6 +- packages/polymorphic/package.json | 3 +- packages/popover/package.json | 3 +- packages/portal/package.json | 3 +- packages/radio-box-group/package.json | 3 +- packages/radio-group/package.json | 4 +- packages/ripple/package.json | 4 +- packages/search-input/package.json | 4 +- packages/segmented-control/package.json | 3 +- packages/select/package.json | 7 +- packages/select/rollup.config.mjs | 2 +- packages/side-nav/package.json | 3 +- packages/skeleton-loader/package.json | 4 +- packages/split-button/package.json | 4 +- packages/stepper/package.json | 4 +- packages/table/package.json | 7 +- packages/tabs/package.json | 3 +- packages/text-area/package.json | 4 +- packages/text-input/package.json | 4 +- packages/toast/package.json | 1 + packages/toggle/package.json | 8 +- packages/tokens/package.json | 1 + packages/tooltip/package.json | 3 +- packages/typography/package.json | 4 +- pnpm-lock.yaml | 406 ++++++++++++++++++--- tools/build/config/rollup.config.mjs | 2 +- tools/storybook-utils/package.json | 3 + tools/test-harnesses/package.json | 3 + 89 files changed, 593 insertions(+), 129 deletions(-) diff --git a/charts/chart-card/package.json b/charts/chart-card/package.json index 97d1e401f1..39acb9a17b 100644 --- a/charts/chart-card/package.json +++ b/charts/chart-card/package.json @@ -34,5 +34,8 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "devDependencies": { + "@lg-tools/build": "workspace:^" } } diff --git a/charts/colors/package.json b/charts/colors/package.json index 7e4dcecbf2..cc6c9e38f0 100644 --- a/charts/colors/package.json +++ b/charts/colors/package.json @@ -23,7 +23,8 @@ }, "devDependencies": { "@leafygreen-ui/emotion": "workspace:^", - "@leafygreen-ui/tokens": "workspace:^" + "@leafygreen-ui/tokens": "workspace:^", + "@lg-tools/build": "workspace:^" }, "repository": { "type": "git", diff --git a/charts/core/package.json b/charts/core/package.json index 9071dacbaa..a4107e3800 100644 --- a/charts/core/package.json +++ b/charts/core/package.json @@ -34,6 +34,7 @@ "devDependencies": { "@faker-js/faker": "8.0.2", "@leafygreen-ui/icon": "workspace:^", + "@lg-tools/build": "workspace:^", "@types/lodash.debounce": "^4.0.9" }, "repository": { diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index 16d756b495..7a2b7e493b 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -31,6 +31,7 @@ "@leafygreen-ui/leafygreen-provider": "workspace:^" }, "devDependencies": { + "@lg-tools/build": "workspace:^", "@storybook/test": "8.5.3" } } \ No newline at end of file diff --git a/charts/legend/package.json b/charts/legend/package.json index 45acd12ca8..d768b21857 100644 --- a/charts/legend/package.json +++ b/charts/legend/package.json @@ -28,7 +28,8 @@ }, "devDependencies": { "@leafygreen-ui/icon": "workspace:^", - "@lg-charts/core": "workspace:^" + "@lg-charts/core": "workspace:^", + "@lg-tools/build": "workspace:^" }, "repository": { "type": "git", diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index 05159ef7c1..31aa5c40bc 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -23,5 +23,8 @@ }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" + }, + "devDependencies": { + "@lg-tools/build": "workspace:^" } } \ No newline at end of file diff --git a/chat/avatar/package.json b/chat/avatar/package.json index c72379e2fd..728a64b1f4 100644 --- a/chat/avatar/package.json +++ b/chat/avatar/package.json @@ -25,5 +25,7 @@ "@leafygreen-ui/leafygreen-provider": "workspace:^", "@lg-chat/leafygreen-chat-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/chat/chat-disclaimer/package.json b/chat/chat-disclaimer/package.json index 969d2e5c42..54a1778ca8 100644 --- a/chat/chat-disclaimer/package.json +++ b/chat/chat-disclaimer/package.json @@ -23,7 +23,8 @@ }, "devDependencies": { "@leafygreen-ui/button": "workspace:^", - "@leafygreen-ui/modal": "workspace:^" + "@leafygreen-ui/modal": "workspace:^", + "@lg-tools/build": "workspace:^" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/chat-disclaimer", "repository": { diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index 733a59a359..612fde5caa 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -28,8 +28,9 @@ "@lg-chat/input-bar": "workspace:^", "@lg-chat/message": "workspace:^", "@lg-chat/message-feed": "workspace:^", + "@lg-chat/message-feedback": "workspace:^", "@lg-chat/message-prompts": "workspace:^", - "@lg-chat/message-feedback": "workspace:^" + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/chat/fixed-chat-window/package.json b/chat/fixed-chat-window/package.json index 6b3e36fa8a..b57cb38a73 100644 --- a/chat/fixed-chat-window/package.json +++ b/chat/fixed-chat-window/package.json @@ -32,8 +32,9 @@ "@lg-chat/leafygreen-chat-provider": "workspace:^", "@lg-chat/message": "workspace:^", "@lg-chat/message-feed": "workspace:^", + "@lg-chat/message-feedback": "workspace:^", "@lg-chat/message-prompts": "workspace:^", - "@lg-chat/message-feedback": "workspace:^" + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index bdff170694..e960a6a722 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -36,5 +36,7 @@ "@leafygreen-ui/leafygreen-provider": "workspace:^", "@lg-chat/leafygreen-chat-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index b5d1d1c573..a28181505f 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -16,5 +16,8 @@ }, "dependencies": { "use-resize-observer": "^9.1.0" + }, + "devDependencies": { + "@lg-tools/build": "workspace:^" } } diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index b80ad82551..ac64600ea1 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -25,5 +25,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index 44fe45051e..d592b7f7ef 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -29,7 +29,8 @@ "devDependencies": { "@leafygreen-ui/typography": "workspace:^", "@lg-chat/chat-disclaimer": "workspace:^", - "@lg-chat/message-prompts": "workspace:^" + "@lg-chat/message-prompts": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^", diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index fe00b1706f..521c38b713 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -29,7 +29,8 @@ "@leafygreen-ui/typography": "workspace:^" }, "devDependencies": { - "@lg-chat/message-rating": "workspace:^" + "@lg-chat/message-rating": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/chat/message-prompts/package.json b/chat/message-prompts/package.json index de4be4b459..4c9d0ada9e 100644 --- a/chat/message-prompts/package.json +++ b/chat/message-prompts/package.json @@ -32,5 +32,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index 60a51d18dd..7cceef2483 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -26,5 +26,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/chat/message/package.json b/chat/message/package.json index 7da9956e5c..d9009d4f79 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -27,7 +27,8 @@ }, "devDependencies": { "@lg-chat/avatar": "workspace:^", - "@lg-chat/message-feedback": "workspace:^" + "@lg-chat/message-feedback": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^", diff --git a/chat/rich-links/package.json b/chat/rich-links/package.json index f0559e6e60..73ec71c956 100644 --- a/chat/rich-links/package.json +++ b/chat/rich-links/package.json @@ -36,5 +36,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index 0ab1df3111..369b41ccff 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -28,5 +28,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 2a699f6f3e..d52a8bbb92 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -16,9 +16,9 @@ "access": "public" }, "dependencies": { + "@leafygreen-ui/emotion": "workspace:^", "@leafygreen-ui/hooks": "workspace:^", - "@leafygreen-ui/lib": "workspace:^", - "@leafygreen-ui/emotion": "workspace:^" + "@leafygreen-ui/lib": "workspace:^" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/a11y", "repository": { @@ -27,5 +27,8 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "devDependencies": { + "@lg-tools/build": "workspace:^" } } diff --git a/packages/avatar/package.json b/packages/avatar/package.json index 83ec14bbeb..b4fe78542c 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -27,5 +27,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/badge/package.json b/packages/badge/package.json index a9a7184e97..a99c320eb9 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -33,5 +33,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/banner/package.json b/packages/banner/package.json index b11a8d4b98..9b7932f456 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -16,11 +16,11 @@ "access": "public" }, "dependencies": { - "@leafygreen-ui/lib": "workspace:^", "@leafygreen-ui/emotion": "workspace:^", - "@leafygreen-ui/palette": "workspace:^", "@leafygreen-ui/icon": "workspace:^", "@leafygreen-ui/icon-button": "workspace:^", + "@leafygreen-ui/lib": "workspace:^", + "@leafygreen-ui/palette": "workspace:^", "@leafygreen-ui/tokens": "workspace:^", "@leafygreen-ui/typography": "workspace:^" }, @@ -35,5 +35,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/box/package.json b/packages/box/package.json index 3b042e2539..7f6ae8e27b 100644 --- a/packages/box/package.json +++ b/packages/box/package.json @@ -15,7 +15,6 @@ "publishConfig": { "access": "public" }, - "dependencies": {}, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/box", "repository": { "type": "git", @@ -24,5 +23,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/button/package.json b/packages/button/package.json index f544f83a43..198f6acdf8 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -27,7 +27,8 @@ }, "devDependencies": { "@leafygreen-ui/icon": "workspace:^", - "@leafygreen-ui/loading-indicator": "workspace:^" + "@leafygreen-ui/loading-indicator": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/callout/package.json b/packages/callout/package.json index 8419f50898..b8476424ef 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -24,7 +24,8 @@ "@leafygreen-ui/typography": "workspace:^" }, "devDependencies": { - "@leafygreen-ui/code": "workspace:^" + "@leafygreen-ui/code": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/card/package.json b/packages/card/package.json index ab623530a5..4bcc56ea12 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -35,5 +35,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index 461f20e56e..5d19fadf2f 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -38,5 +38,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/chip/package.json b/packages/chip/package.json index dbcc9c44b1..5bc9f09f1e 100644 --- a/packages/chip/package.json +++ b/packages/chip/package.json @@ -33,5 +33,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/combobox/package.json b/packages/combobox/package.json index 5606925b8e..35c2e78806 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -37,7 +37,8 @@ "@leafygreen-ui/leafygreen-provider": "workspace:^" }, "devDependencies": { - "@leafygreen-ui/button": "workspace:^" + "@leafygreen-ui/button": "workspace:^", + "@lg-tools/build": "workspace:^" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/combobox", "repository": { diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index 546960f7c2..6d62c93962 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -37,5 +37,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/copyable/package.json b/packages/copyable/package.json index f35086463e..493c2d0196 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -39,5 +39,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index f7f10ff4b7..b2e7ec1562 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -40,6 +40,7 @@ "@jest/globals": "^29.7.0", "@leafygreen-ui/button": "workspace:^", "@leafygreen-ui/modal": "workspace:^", + "@lg-tools/build": "workspace:^", "mockdate": "^3.0.5" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/date-picker", diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index 32846bd29d..88c63f7985 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -31,6 +31,7 @@ "weekstart": "^2.0.0" }, "devDependencies": { + "@lg-tools/build": "workspace:^", "@types/jest": "^29.5.12" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/date-utils", diff --git a/packages/descendants/package.json b/packages/descendants/package.json index 8c7f798c57..168dd2c288 100644 --- a/packages/descendants/package.json +++ b/packages/descendants/package.json @@ -23,7 +23,8 @@ "@faker-js/faker": "^8.0.0", "@leafygreen-ui/button": "workspace:^", "@leafygreen-ui/emotion": "workspace:^", - "@leafygreen-ui/popover": "workspace:^" + "@leafygreen-ui/popover": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/drawer/package.json b/packages/drawer/package.json index fb57de2359..ebf7f25d50 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -31,7 +31,8 @@ "react-intersection-observer": "^8.25.1" }, "devDependencies": { - "@faker-js/faker": "^8.0.2" + "@faker-js/faker": "^8.0.2", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 3784030660..efb6a33a95 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -22,6 +22,7 @@ "@emotion/server": "^11.4.0" }, "devDependencies": { + "@lg-tools/build": "workspace:^", "@lg-tools/meta": "workspace:^", "fs-extra": "11.1.1" }, diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index dff50ae4ac..e0354c3782 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -35,5 +35,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index 0584461267..0c2fd434a7 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -38,5 +38,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/form-field/package.json b/packages/form-field/package.json index a4125c2f11..1d304950ea 100644 --- a/packages/form-field/package.json +++ b/packages/form-field/package.json @@ -28,7 +28,8 @@ }, "devDependencies": { "@leafygreen-ui/button": "workspace:^", - "@leafygreen-ui/icon-button": "workspace:^" + "@leafygreen-ui/icon-button": "workspace:^", + "@lg-tools/build": "workspace:^" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/form-field", "repository": { diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index c5f4096a34..e40500ffc1 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -35,5 +35,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index d58fbf4472..b15da9abc9 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -45,5 +45,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index c98dbc7a61..b4267677e5 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -39,7 +39,9 @@ "focus-trap-react": "9.0.2", "polished": "^4.2.2" }, - "devDependencies": {}, + "devDependencies": { + "@lg-tools/build": "workspace:^" + }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" } diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 33140a51b2..f7bb17c17a 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -29,6 +29,7 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "devDependencies": { - "@leafygreen-ui/emotion": "workspace:^" + "@leafygreen-ui/emotion": "workspace:^", + "@lg-tools/build": "workspace:^" } } diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index 283f6bc972..a6f7330bda 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -36,5 +36,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/icon/package.json b/packages/icon/package.json index a722e74faf..be3df0dc9b 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -23,6 +23,7 @@ "devDependencies": { "@leafygreen-ui/lib": "workspace:^", "@leafygreen-ui/palette": "workspace:^", + "@lg-tools/build": "workspace:^", "@lg-tools/lint": "workspace:^", "@svgr/core": "^5.3.1", "@types/xml2json": "^0.11.0", diff --git a/packages/info-sprinkle/package.json b/packages/info-sprinkle/package.json index 109554c612..6755fc0ed1 100644 --- a/packages/info-sprinkle/package.json +++ b/packages/info-sprinkle/package.json @@ -19,8 +19,8 @@ "@leafygreen-ui/icon": "workspace:^", "@leafygreen-ui/lib": "workspace:^", "@leafygreen-ui/palette": "workspace:^", - "@leafygreen-ui/tooltip": "workspace:^", - "@leafygreen-ui/tokens": "workspace:^" + "@leafygreen-ui/tokens": "workspace:^", + "@leafygreen-ui/tooltip": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" @@ -33,5 +33,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index 879705dc0c..b6ec985f02 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -34,6 +34,7 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "devDependencies": { - "@leafygreen-ui/typography": "workspace:^" + "@leafygreen-ui/typography": "workspace:^", + "@lg-tools/build": "workspace:^" } } diff --git a/packages/input-option/package.json b/packages/input-option/package.json index 7d8b1fd45e..2c5fd58550 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -33,7 +33,8 @@ "@leafygreen-ui/typography": "workspace:^" }, "devDependencies": { - "@leafygreen-ui/icon": "workspace:^" + "@leafygreen-ui/icon": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index 2eb225bd02..d890879026 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -28,5 +28,8 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "devDependencies": { + "@lg-tools/build": "workspace:^" } } diff --git a/packages/lib/package.json b/packages/lib/package.json index 3f48daf400..32baadcc97 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -30,5 +30,8 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "devDependencies": { + "@lg-tools/build": "workspace:^" } } diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index 4117eb7ebe..9442494db7 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -34,5 +34,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/logo/package.json b/packages/logo/package.json index 36c6543d3e..fec7e30398 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -28,5 +28,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index 9e786b581f..b9b57be554 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -35,5 +35,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/menu/package.json b/packages/menu/package.json index f716a86dbf..4fb9b7958d 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -24,8 +24,8 @@ "@leafygreen-ui/input-option": "workspace:^", "@leafygreen-ui/lib": "workspace:^", "@leafygreen-ui/palette": "workspace:^", - "@leafygreen-ui/popover": "workspace:^", "@leafygreen-ui/polymorphic": "workspace:^", + "@leafygreen-ui/popover": "workspace:^", "@leafygreen-ui/tokens": "workspace:^", "@leafygreen-ui/typography": "workspace:^", "lodash": "^4.17.21", @@ -34,7 +34,8 @@ }, "devDependencies": { "@leafygreen-ui/button": "workspace:^", - "@leafygreen-ui/text-input": "workspace:^" + "@leafygreen-ui/text-input": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/modal/package.json b/packages/modal/package.json index fb3ac3e16b..16770bd715 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -36,7 +36,8 @@ "@leafygreen-ui/code": "workspace:^", "@leafygreen-ui/copyable": "workspace:^", "@leafygreen-ui/select": "workspace:^", - "@leafygreen-ui/typography": "workspace:^" + "@leafygreen-ui/typography": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/number-input/package.json b/packages/number-input/package.json index 0d2b4d394f..7caaaf0df6 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -41,5 +41,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/ordered-list/package.json b/packages/ordered-list/package.json index 447791a4c4..4ebc34cc82 100644 --- a/packages/ordered-list/package.json +++ b/packages/ordered-list/package.json @@ -24,7 +24,9 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {}, + "devDependencies": { + "@lg-tools/build": "workspace:^" + }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/ordered-list", "repository": { "type": "git", diff --git a/packages/pagination/package.json b/packages/pagination/package.json index 413dc25a6f..366ca0d863 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -37,5 +37,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/password-input/package.json b/packages/password-input/package.json index 009f504b69..f6e1f6ca21 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -38,5 +38,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index feeaff4ec6..dca7565567 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -21,8 +21,8 @@ "@leafygreen-ui/icon": "workspace:^", "@leafygreen-ui/lib": "workspace:^", "@leafygreen-ui/palette": "workspace:^", - "@leafygreen-ui/tooltip": "workspace:^", "@leafygreen-ui/tokens": "workspace:^", + "@leafygreen-ui/tooltip": "workspace:^", "react-intersection-observer": "^8.25.1" }, "peerDependencies": { @@ -37,5 +37,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index 46a50aaad0..37529411c8 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -24,7 +24,8 @@ "access": "public" }, "devDependencies": { - "@emotion/styled": "^11.10.5" + "@emotion/styled": "^11.10.5", + "@lg-tools/build": "workspace:^" }, "dependencies": { "@leafygreen-ui/lib": "workspace:^", diff --git a/packages/popover/package.json b/packages/popover/package.json index c528321b74..2d440c6a6a 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -27,7 +27,8 @@ }, "devDependencies": { "@leafygreen-ui/button": "workspace:^", - "@leafygreen-ui/palette": "workspace:^" + "@leafygreen-ui/palette": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/portal/package.json b/packages/portal/package.json index 2b4f6ddac4..0b3e7766fb 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -23,7 +23,8 @@ "@leafygreen-ui/lib": "workspace:^" }, "devDependencies": { - "@leafygreen-ui/emotion": "workspace:^" + "@leafygreen-ui/emotion": "workspace:^", + "@lg-tools/build": "workspace:^" }, "gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/portal", diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index 8176a6bdc1..de3fa16889 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -35,6 +35,7 @@ "url": "https://jira.mongodb.org/projects/PD/summary" }, "devDependencies": { - "@leafygreen-ui/tooltip": "workspace:^" + "@leafygreen-ui/tooltip": "workspace:^", + "@lg-tools/build": "workspace:^" } } diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index c2d8bc441d..0ba6474ed5 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -35,5 +35,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/ripple/package.json b/packages/ripple/package.json index 808b7a277e..e11a074c5b 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -26,5 +26,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/search-input/package.json b/packages/search-input/package.json index 5c81dff496..861568d277 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -42,5 +42,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index 93797cd21b..cd2b885980 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -28,7 +28,8 @@ "polished": "^4.2.2" }, "devDependencies": { - "@leafygreen-ui/button": "workspace:^" + "@leafygreen-ui/button": "workspace:^", + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/select/package.json b/packages/select/package.json index 25037041a1..507c38dc61 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -46,7 +46,8 @@ "react-is": "^18.0.1" }, "peerDependencies": { - "@leafygreen-ui/leafygreen-provider": "workspace:^" + "@leafygreen-ui/leafygreen-provider": "workspace:^", + "@lg-tools/build": "workspace:^" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/select", "repository": { @@ -56,5 +57,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/select/rollup.config.mjs b/packages/select/rollup.config.mjs index cff35beb80..ac555dbb4e 100644 --- a/packages/select/rollup.config.mjs +++ b/packages/select/rollup.config.mjs @@ -17,7 +17,7 @@ const umdTestUtilsConfig = { input: 'src/testing/index.ts', output: { ...umdConfig.output, - dir: 'dist/testing', + dir: 'dist/umd/testing', }, }; diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index 6191c7aacb..3e21f225c1 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -34,7 +34,8 @@ "@leafygreen-ui/leafygreen-provider": "workspace:^" }, "devDependencies": { - "@leafygreen-ui/select": "workspace:^" + "@leafygreen-ui/select": "workspace:^", + "@lg-tools/build": "workspace:^" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/side-nav", "repository": { diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index 7fd09b8fdd..120377fc03 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -36,5 +36,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/split-button/package.json b/packages/split-button/package.json index a2aad2b525..3e97d9ca21 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -38,5 +38,7 @@ "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/stepper/package.json b/packages/stepper/package.json index 329aec68c5..b9fd4d8b2c 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -35,5 +35,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/table/package.json b/packages/table/package.json index 775b00e8b2..7b3c6d69f5 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -47,13 +47,14 @@ "react-intersection-observer": "^8.25.1" }, "devDependencies": { + "@emotion/styled": "^11.14.0", "@faker-js/faker": "^8.0.0", - "@leafygreen-ui/code": "workspace:^", - "@leafygreen-ui/button": "workspace:^", "@leafygreen-ui/badge": "workspace:^", + "@leafygreen-ui/button": "workspace:^", + "@leafygreen-ui/code": "workspace:^", "@leafygreen-ui/pagination": "workspace:^", "@leafygreen-ui/tooltip": "workspace:^", - "@emotion/styled": "^11.14.0" + "@lg-tools/build": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/packages/tabs/package.json b/packages/tabs/package.json index d57dd5c494..845cc5d883 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -55,6 +55,7 @@ "@leafygreen-ui/card": "workspace:^", "@leafygreen-ui/icon": "workspace:^", "@leafygreen-ui/icon-button": "workspace:^", - "@leafygreen-ui/tooltip": "workspace:^" + "@leafygreen-ui/tooltip": "workspace:^", + "@lg-tools/build": "workspace:^" } } diff --git a/packages/text-area/package.json b/packages/text-area/package.json index e0e2c3901c..dc145f5a84 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -49,5 +49,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/text-input/package.json b/packages/text-input/package.json index 55150dd780..7ae1cd863f 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -47,5 +47,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/toast/package.json b/packages/toast/package.json index 8f88b20b4a..1d653332f1 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -35,6 +35,7 @@ "devDependencies": { "@faker-js/faker": "^8.0.0", "@leafygreen-ui/button": "workspace:^", + "@lg-tools/build": "workspace:^", "react-test-renderer": "^18.2.0" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/toast", diff --git a/packages/toggle/package.json b/packages/toggle/package.json index cb842cc007..63ffc9c2f0 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -33,8 +33,8 @@ "@leafygreen-ui/icon": "workspace:^", "@leafygreen-ui/lib": "workspace:^", "@leafygreen-ui/palette": "workspace:^", - "@lg-tools/test-harnesses": "workspace:^", - "@leafygreen-ui/tokens": "workspace:^" + "@leafygreen-ui/tokens": "workspace:^", + "@lg-tools/test-harnesses": "workspace:^" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" @@ -48,5 +48,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/packages/tokens/package.json b/packages/tokens/package.json index cda3a530d5..cb3ff3fee4 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -22,6 +22,7 @@ "polished": "^4.2.2" }, "devDependencies": { + "@lg-tools/build": "workspace:^", "lodash": "^4.17.21" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/tokens", diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index f59f885c26..a73cd3233d 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -16,7 +16,8 @@ "access": "public" }, "devDependencies": { - "@leafygreen-ui/button": "workspace:^" + "@leafygreen-ui/button": "workspace:^", + "@lg-tools/build": "workspace:^" }, "dependencies": { "@leafygreen-ui/emotion": "workspace:^", diff --git a/packages/typography/package.json b/packages/typography/package.json index f5bbf547b2..f4f96087b8 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -34,5 +34,7 @@ "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" }, - "devDependencies": {} + "devDependencies": { + "@lg-tools/build": "workspace:^" + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a445d74fe6..3357d3c56c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -143,6 +143,10 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../../packages/typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build charts/colors: dependencies: @@ -162,6 +166,9 @@ importers: '@leafygreen-ui/tokens': specifier: workspace:^ version: link:../../packages/tokens + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build charts/core: dependencies: @@ -211,6 +218,9 @@ importers: '@leafygreen-ui/icon': specifier: workspace:^ version: link:../../packages/icon + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build '@types/lodash.debounce': specifier: ^4.0.9 version: 4.0.9 @@ -233,6 +243,9 @@ importers: specifier: workspace:^ version: link:../core devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build '@storybook/test': specifier: 8.5.3 version: 8.5.3(storybook@8.6.12(prettier@3.5.3)) @@ -270,12 +283,19 @@ importers: '@lg-charts/core': specifier: workspace:^ version: link:../core + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build charts/series-provider: dependencies: '@leafygreen-ui/leafygreen-provider': specifier: workspace:^ version: link:../../packages/leafygreen-provider + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/avatar: dependencies: @@ -300,6 +320,10 @@ importers: '@lg-chat/leafygreen-chat-provider': specifier: workspace:^ version: link:../leafygreen-chat-provider + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/chat-disclaimer: dependencies: @@ -325,6 +349,9 @@ importers: '@leafygreen-ui/modal': specifier: workspace:^ version: link:../../packages/modal + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/chat-window: dependencies: @@ -371,6 +398,9 @@ importers: '@lg-chat/message-prompts': specifier: workspace:^ version: link:../message-prompts + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/fixed-chat-window: dependencies: @@ -429,6 +459,9 @@ importers: '@lg-chat/message-prompts': specifier: workspace:^ version: link:../message-prompts + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/input-bar: dependencies: @@ -486,12 +519,20 @@ importers: react-textarea-autosize: specifier: ^8.3.2 version: 8.5.3(@types/react@18.2.23)(react@18.2.0) + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/leafygreen-chat-provider: dependencies: use-resize-observer: specifier: ^9.1.0 version: 9.1.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/lg-markdown: dependencies: @@ -516,6 +557,10 @@ importers: react-markdown: specifier: ^8.0.7 version: 8.0.7(@types/react@18.2.23)(react@18.2.0) + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/message: dependencies: @@ -559,6 +604,9 @@ importers: '@lg-chat/message-feedback': specifier: workspace:^ version: link:../message-feedback + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/message-feed: dependencies: @@ -608,6 +656,9 @@ importers: '@lg-chat/message-prompts': specifier: workspace:^ version: link:../message-prompts + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/message-feedback: dependencies: @@ -651,6 +702,9 @@ importers: '@lg-chat/message-rating': specifier: workspace:^ version: link:../message-rating + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/message-prompts: dependencies: @@ -672,6 +726,10 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../../packages/typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/message-rating: dependencies: @@ -699,6 +757,10 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../../packages/typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/rich-links: dependencies: @@ -729,6 +791,10 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../../packages/typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build chat/title-bar: dependencies: @@ -762,6 +828,10 @@ importers: '@lg-chat/avatar': specifier: workspace:^ version: link:../avatar + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/a11y: dependencies: @@ -774,6 +844,10 @@ importers: '@leafygreen-ui/lib': specifier: workspace:^ version: link:../lib + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/avatar: dependencies: @@ -801,6 +875,10 @@ importers: lodash: specifier: ^4.17.21 version: 4.17.21 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/badge: dependencies: @@ -819,6 +897,10 @@ importers: '@leafygreen-ui/tokens': specifier: workspace:^ version: link:../tokens + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/banner: dependencies: @@ -846,8 +928,16 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build - packages/box: {} + packages/box: + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/button: dependencies: @@ -885,6 +975,9 @@ importers: '@leafygreen-ui/loading-indicator': specifier: workspace:^ version: link:../loading-indicator + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/callout: dependencies: @@ -913,6 +1006,9 @@ importers: '@leafygreen-ui/code': specifier: workspace:^ version: link:../code + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/card: dependencies: @@ -937,6 +1033,10 @@ importers: polished: specifier: ^4.2.2 version: 4.3.1 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/checkbox: dependencies: @@ -970,6 +1070,10 @@ importers: react-transition-group: specifier: ^4.4.5 version: 4.4.5(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/chip: dependencies: @@ -994,6 +1098,10 @@ importers: '@leafygreen-ui/tokens': specifier: workspace:^ version: link:../tokens + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/code: dependencies: @@ -1124,6 +1232,9 @@ importers: '@leafygreen-ui/button': specifier: workspace:^ version: link:../button + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/confirmation-modal: dependencies: @@ -1157,6 +1268,10 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/copyable: dependencies: @@ -1196,6 +1311,10 @@ importers: polished: specifier: ^4.2.2 version: 4.3.1 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/date-picker: dependencies: @@ -1263,6 +1382,9 @@ importers: '@leafygreen-ui/modal': specifier: workspace:^ version: link:../modal + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build mockdate: specifier: ^3.0.5 version: 3.0.5 @@ -1288,6 +1410,9 @@ importers: specifier: ^2.0.0 version: 2.0.0 devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build '@types/jest': specifier: ^29.5.12 version: 29.5.14 @@ -1319,6 +1444,9 @@ importers: '@leafygreen-ui/popover': specifier: workspace:^ version: link:../popover + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/drawer: dependencies: @@ -1371,6 +1499,9 @@ importers: '@faker-js/faker': specifier: ^8.0.2 version: 8.0.2 + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/emotion: dependencies: @@ -1381,6 +1512,9 @@ importers: specifier: ^11.4.0 version: 11.11.0(@emotion/css@11.11.2) devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build '@lg-tools/meta': specifier: workspace:^ version: link:../../tools/meta @@ -1414,6 +1548,10 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/expandable-card: dependencies: @@ -1450,6 +1588,10 @@ importers: react-transition-group: specifier: ^4.4.5 version: 4.4.5(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/form-field: dependencies: @@ -1484,6 +1626,9 @@ importers: '@leafygreen-ui/icon-button': specifier: workspace:^ version: link:../icon-button + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/form-footer: dependencies: @@ -1511,6 +1656,10 @@ importers: polished: specifier: ^4.2.2 version: 4.3.1 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/gallery-indicator: dependencies: @@ -1532,6 +1681,10 @@ importers: '@lg-tools/test-harnesses': specifier: workspace:^ version: link:../../tools/test-harnesses + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/guide-cue: dependencies: @@ -1580,6 +1733,10 @@ importers: polished: specifier: ^4.2.2 version: 4.3.1 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/hooks: dependencies: @@ -1593,6 +1750,9 @@ importers: '@leafygreen-ui/emotion': specifier: workspace:^ version: link:../emotion + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/icon: dependencies: @@ -1609,6 +1769,9 @@ importers: '@leafygreen-ui/palette': specifier: workspace:^ version: link:../palette + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build '@lg-tools/lint': specifier: workspace:^ version: link:../../tools/lint @@ -1657,6 +1820,10 @@ importers: polished: specifier: ^4.2.2 version: 4.3.1 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/info-sprinkle: dependencies: @@ -1681,6 +1848,10 @@ importers: '@leafygreen-ui/tooltip': specifier: workspace:^ version: link:../tooltip + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/inline-definition: dependencies: @@ -1706,6 +1877,9 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../typography + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/input-option: dependencies: @@ -1737,6 +1911,9 @@ importers: '@leafygreen-ui/icon': specifier: workspace:^ version: link:../icon + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/leafygreen-provider: dependencies: @@ -1749,6 +1926,10 @@ importers: react-transition-group: specifier: ^4.4.5 version: 4.4.5(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/lib: dependencies: @@ -1758,6 +1939,10 @@ importers: react: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/loading-indicator: dependencies: @@ -1782,6 +1967,10 @@ importers: react-lottie-player: specifier: ^1.5.6 version: 1.5.6(react@18.2.0) + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/logo: dependencies: @@ -1794,6 +1983,10 @@ importers: '@leafygreen-ui/palette': specifier: workspace:^ version: link:../palette + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/marketing-modal: dependencies: @@ -1821,6 +2014,10 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/menu: dependencies: @@ -1879,6 +2076,9 @@ importers: '@leafygreen-ui/text-input': specifier: workspace:^ version: link:../text-input + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/modal: dependencies: @@ -1943,6 +2143,9 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../typography + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/number-input: dependencies: @@ -1988,6 +2191,10 @@ importers: lodash: specifier: ^4.17.21 version: 4.17.21 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/ordered-list: dependencies: @@ -2009,6 +2216,10 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/pagination: dependencies: @@ -2042,6 +2253,10 @@ importers: lodash: specifier: ^4.17.21 version: 4.17.21 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/palette: devDependencies: @@ -2096,6 +2311,10 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/pipeline: dependencies: @@ -2126,6 +2345,10 @@ importers: react-intersection-observer: specifier: ^8.25.1 version: 8.34.0(react@18.2.0) + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/polymorphic: dependencies: @@ -2139,6 +2362,9 @@ importers: '@emotion/styled': specifier: ^11.10.5 version: 11.11.0(@emotion/react@11.11.1(@types/react@18.2.23)(react@18.2.0))(@types/react@18.2.23)(react@18.2.0) + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/popover: dependencies: @@ -2176,6 +2402,9 @@ importers: '@leafygreen-ui/palette': specifier: workspace:^ version: link:../palette + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/portal: dependencies: @@ -2192,6 +2421,9 @@ importers: '@leafygreen-ui/emotion': specifier: workspace:^ version: link:../emotion + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/radio-box-group: dependencies: @@ -2217,6 +2449,9 @@ importers: '@leafygreen-ui/tooltip': specifier: workspace:^ version: link:../tooltip + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/radio-group: dependencies: @@ -2241,12 +2476,20 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/ripple: dependencies: '@leafygreen-ui/tokens': specifier: workspace:^ version: link:../tokens + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/search-input: dependencies: @@ -2295,6 +2538,10 @@ importers: polished: specifier: ^4.2.2 version: 4.3.1 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/segmented-control: dependencies: @@ -2335,6 +2582,9 @@ importers: '@leafygreen-ui/button': specifier: workspace:^ version: link:../button + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/select: dependencies: @@ -2389,6 +2639,10 @@ importers: react-is: specifier: ^18.0.1 version: 18.2.0 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/side-nav: dependencies: @@ -2438,6 +2692,9 @@ importers: '@leafygreen-ui/select': specifier: workspace:^ version: link:../select + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/skeleton-loader: dependencies: @@ -2468,6 +2725,10 @@ importers: lodash: specifier: ^4.17.21 version: 4.17.21 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/split-button: dependencies: @@ -2504,6 +2765,10 @@ importers: '@leafygreen-ui/tokens': specifier: workspace:^ version: link:../tokens + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/stepper: dependencies: @@ -2531,6 +2796,10 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../typography + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/table: dependencies: @@ -2610,6 +2879,9 @@ importers: '@leafygreen-ui/tooltip': specifier: workspace:^ version: link:../tooltip + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/tabs: dependencies: @@ -2662,12 +2934,12 @@ importers: '@leafygreen-ui/tooltip': specifier: workspace:^ version: link:../tooltip - - packages/testing-lib: - dependencies: '@lg-tools/build': specifier: workspace:^ version: link:../../tools/build + + packages/testing-lib: + dependencies: '@testing-library/react': specifier: ^12.0.0 || ^13.1.0 || ^14.0.0 version: 14.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -2681,6 +2953,10 @@ importers: '@testing-library/react-hooks': specifier: '>=3.7.0' version: 8.0.1(@types/react@18.2.23)(react-dom@18.2.0(react@18.2.0))(react-test-renderer@18.2.0(react@18.2.0))(react@18.2.0) + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/text-area: dependencies: @@ -2714,6 +2990,10 @@ importers: '@lg-tools/test-harnesses': specifier: workspace:^ version: link:../../tools/test-harnesses + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/text-input: dependencies: @@ -2741,6 +3021,10 @@ importers: '@lg-tools/test-harnesses': specifier: workspace:^ version: link:../../tools/test-harnesses + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/toast: dependencies: @@ -2790,6 +3074,9 @@ importers: '@leafygreen-ui/button': specifier: workspace:^ version: link:../button + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build react-test-renderer: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) @@ -2820,6 +3107,10 @@ importers: '@lg-tools/test-harnesses': specifier: workspace:^ version: link:../../tools/test-harnesses + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/tokens: dependencies: @@ -2836,6 +3127,9 @@ importers: specifier: ^4.2.2 version: 4.3.1 devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build lodash: specifier: ^4.17.21 version: 4.17.21 @@ -2879,6 +3173,9 @@ importers: '@leafygreen-ui/button': specifier: workspace:^ version: link:../button + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build packages/typography: dependencies: @@ -2903,6 +3200,10 @@ importers: '@leafygreen-ui/tokens': specifier: workspace:^ version: link:../tokens + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build tools/build: dependencies: @@ -2997,6 +3298,9 @@ importers: specifier: ~5.8.0 version: 5.8.3 devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: 'link:' '@types/mock-fs': specifier: ^4.13.4 version: 4.13.4 @@ -3006,9 +3310,6 @@ importers: tools/cli: dependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@lg-tools/codemods': specifier: workspace:^ version: link:../codemods @@ -3042,12 +3343,13 @@ importers: read-pkg-up: specifier: 7.0.1 version: 7.0.1 - - tools/codemods: - dependencies: + devDependencies: '@lg-tools/build': specifier: workspace:^ version: link:../build + + tools/codemods: + dependencies: chalk: specifier: 4.1.2 version: 4.1.2 @@ -3067,6 +3369,9 @@ importers: specifier: 2.8.8 version: 2.8.8 devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@types/fs-extra': specifier: 11.0.1 version: 11.0.1 @@ -3079,9 +3384,6 @@ importers: tools/create: dependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3097,12 +3399,13 @@ importers: lodash: specifier: 4.17.21 version: 4.17.21 - - tools/install: - dependencies: + devDependencies: '@lg-tools/build': specifier: workspace:^ version: link:../build + + tools/install: + dependencies: '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3119,6 +3422,9 @@ importers: specifier: ^4.17.21 version: 4.17.21 devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/lint': specifier: workspace:^ version: link:../lint @@ -3128,9 +3434,6 @@ importers: tools/link: dependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3150,6 +3453,9 @@ importers: specifier: 11.1.1 version: 11.1.1 devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/test': specifier: workspace:^ version: link:../test @@ -3174,9 +3480,6 @@ importers: '@eslint/js': specifier: ^9.16.0 version: 9.16.0 - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3246,12 +3549,13 @@ importers: typescript: specifier: ~5.8.0 version: 5.8.3 - - tools/meta: - dependencies: + devDependencies: '@lg-tools/build': specifier: workspace:^ version: link:../build + + tools/meta: + dependencies: '@types/cross-spawn': specifier: 6.0.2 version: 6.0.2 @@ -3270,12 +3574,13 @@ importers: lodash: specifier: 4.17.21 version: 4.17.21 - - tools/slackbot: - dependencies: + devDependencies: '@lg-tools/build': specifier: workspace:^ version: link:../build + + tools/slackbot: + dependencies: '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3295,6 +3600,9 @@ importers: specifier: 2.6.11 version: 2.6.11 devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@types/node-fetch': specifier: ^2.6.11 version: 2.6.12 @@ -3313,9 +3621,6 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../../packages/typography - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3445,6 +3750,10 @@ importers: webpack: specifier: 5.88.0 version: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build tools/storybook-decorators: dependencies: @@ -3463,9 +3772,6 @@ importers: '@leafygreen-ui/tokens': specifier: workspace:^ version: link:../../packages/tokens - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@lg-tools/storybook-utils': specifier: workspace:^ version: link:../storybook-utils @@ -3475,6 +3781,10 @@ importers: lodash: specifier: 4.17.21 version: 4.17.21 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build tools/storybook-utils: dependencies: @@ -3490,6 +3800,10 @@ importers: lodash: specifier: ^4.17.21 version: 4.17.21 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build tools/test: dependencies: @@ -3511,9 +3825,6 @@ importers: '@leafygreen-ui/testing-lib': specifier: workspace:^ version: link:../../packages/testing-lib - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3577,18 +3888,23 @@ importers: regenerator-runtime: specifier: 0.14.0 version: 0.14.0 + devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build tools/test-harnesses: dependencies: '@testing-library/dom': specifier: 9.3.4 version: 9.3.4 - - tools/update: - dependencies: + devDependencies: '@lg-tools/build': specifier: workspace:^ version: link:../build + + tools/update: + dependencies: '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3607,12 +3923,13 @@ importers: fs-extra: specifier: 11.1.1 version: 11.1.1 - - tools/validate: - dependencies: + devDependencies: '@lg-tools/build': specifier: workspace:^ version: link:../build + + tools/validate: + dependencies: '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3638,6 +3955,9 @@ importers: specifier: 4.17.21 version: 4.17.21 devDependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/test': specifier: workspace:^ version: link:../test diff --git a/tools/build/config/rollup.config.mjs b/tools/build/config/rollup.config.mjs index 35789f4304..16f4093dae 100644 --- a/tools/build/config/rollup.config.mjs +++ b/tools/build/config/rollup.config.mjs @@ -29,7 +29,7 @@ const external = [/node_modules/]; const moduleFormatToDirectory = { esm: 'dist/esm/', - umd: 'dist/umd', + umd: 'dist/umd/', }; const doTestUtilsExist = glob.sync(testUtilsFilename).length > 0; diff --git a/tools/storybook-utils/package.json b/tools/storybook-utils/package.json index 445c707ddc..358ef03281 100644 --- a/tools/storybook-utils/package.json +++ b/tools/storybook-utils/package.json @@ -27,5 +27,8 @@ }, "bugs": { "url": "https://jira.mongodb.org/projects/PD/summary" + }, + "devDependencies": { + "@lg-tools/build": "workspace:^" } } diff --git a/tools/test-harnesses/package.json b/tools/test-harnesses/package.json index fc84a6b555..6451fbf4a2 100644 --- a/tools/test-harnesses/package.json +++ b/tools/test-harnesses/package.json @@ -15,5 +15,8 @@ }, "dependencies": { "@testing-library/dom": "9.3.1" + }, + "devDependencies": { + "@lg-tools/build": "workspace:^" } } From b20ad2f022ddfdc822309336d667ef0af3986457 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 25 Apr 2025 17:19:56 -0400 Subject: [PATCH 099/123] Update pnpm-lock.yaml --- pnpm-lock.yaml | 96 ++++++++++++++++++++++---------------------------- 1 file changed, 42 insertions(+), 54 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3357d3c56c..43ee3f47f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2940,6 +2940,9 @@ importers: packages/testing-lib: dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../../tools/build '@testing-library/react': specifier: ^12.0.0 || ^13.1.0 || ^14.0.0 version: 14.0.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -2953,10 +2956,6 @@ importers: '@testing-library/react-hooks': specifier: '>=3.7.0' version: 8.0.1(@types/react@18.2.23)(react-dom@18.2.0(react@18.2.0))(react-test-renderer@18.2.0(react@18.2.0))(react@18.2.0) - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../../tools/build packages/text-area: dependencies: @@ -3298,9 +3297,6 @@ importers: specifier: ~5.8.0 version: 5.8.3 devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: 'link:' '@types/mock-fs': specifier: ^4.13.4 version: 4.13.4 @@ -3310,6 +3306,9 @@ importers: tools/cli: dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/codemods': specifier: workspace:^ version: link:../codemods @@ -3343,13 +3342,12 @@ importers: read-pkg-up: specifier: 7.0.1 version: 7.0.1 - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build tools/codemods: dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build chalk: specifier: 4.1.2 version: 4.1.2 @@ -3369,9 +3367,6 @@ importers: specifier: 2.8.8 version: 2.8.8 devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@types/fs-extra': specifier: 11.0.1 version: 11.0.1 @@ -3384,6 +3379,9 @@ importers: tools/create: dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3399,13 +3397,12 @@ importers: lodash: specifier: 4.17.21 version: 4.17.21 - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build tools/install: dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3422,9 +3419,6 @@ importers: specifier: ^4.17.21 version: 4.17.21 devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@lg-tools/lint': specifier: workspace:^ version: link:../lint @@ -3434,6 +3428,9 @@ importers: tools/link: dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3453,9 +3450,6 @@ importers: specifier: 11.1.1 version: 11.1.1 devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@lg-tools/test': specifier: workspace:^ version: link:../test @@ -3480,6 +3474,9 @@ importers: '@eslint/js': specifier: ^9.16.0 version: 9.16.0 + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3549,13 +3546,12 @@ importers: typescript: specifier: ~5.8.0 version: 5.8.3 - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build tools/meta: dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@types/cross-spawn': specifier: 6.0.2 version: 6.0.2 @@ -3574,13 +3570,12 @@ importers: lodash: specifier: 4.17.21 version: 4.17.21 - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build tools/slackbot: dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3600,9 +3595,6 @@ importers: specifier: 2.6.11 version: 2.6.11 devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@types/node-fetch': specifier: ^2.6.11 version: 2.6.12 @@ -3621,6 +3613,9 @@ importers: '@leafygreen-ui/typography': specifier: workspace:^ version: link:../../packages/typography + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3750,10 +3745,6 @@ importers: webpack: specifier: 5.88.0 version: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build tools/storybook-decorators: dependencies: @@ -3772,6 +3763,9 @@ importers: '@leafygreen-ui/tokens': specifier: workspace:^ version: link:../../packages/tokens + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/storybook-utils': specifier: workspace:^ version: link:../storybook-utils @@ -3781,10 +3775,6 @@ importers: lodash: specifier: 4.17.21 version: 4.17.21 - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build tools/storybook-utils: dependencies: @@ -3825,6 +3815,9 @@ importers: '@leafygreen-ui/testing-lib': specifier: workspace:^ version: link:../../packages/testing-lib + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3888,10 +3881,6 @@ importers: regenerator-runtime: specifier: 0.14.0 version: 0.14.0 - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build tools/test-harnesses: dependencies: @@ -3905,6 +3894,9 @@ importers: tools/update: dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3923,13 +3915,12 @@ importers: fs-extra: specifier: 11.1.1 version: 11.1.1 - devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build tools/validate: dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build '@lg-tools/meta': specifier: workspace:^ version: link:../meta @@ -3955,9 +3946,6 @@ importers: specifier: 4.17.21 version: 4.17.21 devDependencies: - '@lg-tools/build': - specifier: workspace:^ - version: link:../build '@lg-tools/test': specifier: workspace:^ version: link:../test From 1308bca9f559de285a28b4a852fdf96e3d1a471e Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 25 Apr 2025 18:15:34 -0400 Subject: [PATCH 100/123] fixes select entry points --- packages/select/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/select/package.json b/packages/select/package.json index 507c38dc61..20144f462f 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -8,14 +8,14 @@ "typesVersions": {}, "exports": { ".": { + "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": "./dist/types/index.d.ts" }, "./testing": { + "require": "./dist/umd/testing/index.js", "import": "./dist/esm/testing/index.js", - "require": "./dist/testing/index.js", - "types": "./dist/testing/index.d.ts" + "types": "./dist/types/testing/index.d.ts" } }, "scripts": { From b323d56756bab69310fae5326eb76faae24c9e46 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 28 Apr 2025 19:02:29 -0400 Subject: [PATCH 101/123] Squashed commit of the following: commit 55fc5a067937831e7c20468bf36dd785bae88f98 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 11:30:52 2025 -0400 2a. Updates shared TypeScript config (#2824) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * updates all TSconfigs * adds changesets * adds types entry point in package.json * code postinstall * fix builds * Update prettier.ts * Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson Date: Thu Apr 24 17:35:10 2025 -0400 Merge branch 'a/ts5' of https://github.com/mongodb/leafygreen-ui into a/ts5 commit eba052c5b4da9cca0374043c6333614c85469102 Author: Adam Michael Thompson Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 160fecb1ba2acf91e57f9cc5622982392238e960 Merge: a01525f2f 028147fe1 Author: Adam Michael Thompson Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 06ec702e08075e1c99003b917677385e5d1f1b47 Author: Adam Michael Thompson Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 * Update package.json * Update pnpm-lock.yaml * Update all-types-entry-point.md commit 9530c24424908967c92fc8ef5a8605d277eafd4b Merge: 254eb28c8 2cb75f722 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 2cb75f7226a01702d31ff67c4d7161a9651460f5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit 989387c95945d4482bac569f41dc8289fbf55708 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 18:28:06 2025 -0400 Validate builds based on `package.json` (#2823) * update validate to use package entry files * Create validate-build-package-json.md * updates types validation only validate if it should exist * rm validate ignore * Update index.ts commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration --- packages/text-area/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/text-area/package.json b/packages/text-area/package.json index dc145f5a84..c3b2c5c175 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -8,9 +8,9 @@ "typesVersions": {}, "exports": { ".": { + "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": "./dist/types/index.d.ts" }, "./testing": { "import": "./dist/esm/testing/index.js", From f6cd5059ff5fc2693493eca1ead78473d86da264 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 28 Apr 2025 19:06:47 -0400 Subject: [PATCH 102/123] Squashed commit of the following: commit b33b0ff4e8e74048ec3e3a0a3f98c45970a930b1 Author: Adam Michael Thompson Date: Mon Apr 28 18:50:38 2025 -0400 update preview.js commit 079893b5b4f0af5c7f171f66a5b744a634e60adb Author: Adam Michael Thompson Date: Mon Apr 28 18:23:41 2025 -0400 Update preset.js commit 6af5981225ae96509f2419c998dd81b17966eb07 Author: Adam Michael Thompson Date: Mon Apr 28 16:42:40 2025 -0400 fixes missing deps commit 39fc4b68b136f383c2a145cc36678d3c94fdc638 Author: Adam Michael Thompson Date: Mon Apr 28 16:32:19 2025 -0400 Update pnpm-lock.yaml commit f5b4dc0698ec4f218d910e29742c8e93e52ecdbf Author: Adam Michael Thompson Date: Mon Apr 28 16:21:33 2025 -0400 Squashed commit of the following: commit 55fc5a067937831e7c20468bf36dd785bae88f98 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 11:30:52 2025 -0400 2a. Updates shared TypeScript config (#2824) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * updates all TSconfigs * adds changesets * adds types entry point in package.json * code postinstall * fix builds * Update prettier.ts * Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson Date: Thu Apr 24 17:35:10 2025 -0400 Merge branch 'a/ts5' of https://github.com/mongodb/leafygreen-ui into a/ts5 commit eba052c5b4da9cca0374043c6333614c85469102 Author: Adam Michael Thompson Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 160fecb1ba2acf91e57f9cc5622982392238e960 Merge: a01525f2f 028147fe1 Author: Adam Michael Thompson Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 06ec702e08075e1c99003b917677385e5d1f1b47 Author: Adam Michael Thompson Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 * Update package.json * Update pnpm-lock.yaml * Update all-types-entry-point.md commit 9530c24424908967c92fc8ef5a8605d277eafd4b Merge: 254eb28c8 2cb75f722 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit 2cb75f7226a01702d31ff67c4d7161a9651460f5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit 989387c95945d4482bac569f41dc8289fbf55708 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 18:28:06 2025 -0400 Validate builds based on `package.json` (#2823) * update validate to use package entry files * Create validate-build-package-json.md * updates types validation only validate if it should exist * rm validate ignore * Update index.ts commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit dc5927dd6dd235b0748fc379140166eff53e728e Author: Adam Michael Thompson Date: Fri Apr 25 16:34:45 2025 -0400 update cli require path commit d85f2f9146737ffa9ddc53012f81f45b26344e78 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit e47c2af56975b42553a76185a5922a944597e38c Author: Adam Michael Thompson Date: Fri Apr 25 15:01:31 2025 -0400 fix missing packages commit d8dc0c52ecd1513f1727f82dc076d4938195b9d3 Author: Adam Michael Thompson Date: Fri Apr 25 15:00:05 2025 -0400 Update pnpm-lock.yaml commit 2ec1aa752b3c1343c4adf03ef7311bb37279b180 Author: Adam Michael Thompson Date: Fri Apr 25 14:08:21 2025 -0400 Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration commit bca406f1a06a02c85321d1999e343734906cdcaa Author: Adam Michael Thompson Date: Thu Apr 24 18:08:34 2025 -0400 Update storybook addon rollup.config.mjs commit a683224ca08c4ce5058b32b535b4cc5ba5eac862 Author: Adam Michael Thompson Date: Wed Apr 23 19:42:44 2025 -0400 Update icon & testing lib commit 27db116cd79062180288d2d6974ea501c8c62b08 Author: Adam Michael Thompson Date: Wed Apr 23 17:34:03 2025 -0400 restores missing deps commit 4c04f324fc1d7dd8de9190bed442d104b57d9ec0 Author: Adam Michael Thompson Date: Wed Apr 23 16:24:24 2025 -0400 ts-expect-error commit 96613593e1f07ec17aa7934e84071bc9a5858627 Author: Adam Michael Thompson Date: Wed Apr 23 16:22:23 2025 -0400 Update pnpm-lock.yaml commit 96e83a5e98a1eab5dcafd7bdf821fc0da30df490 Author: Adam Michael Thompson Date: Wed Apr 23 13:12:30 2025 -0400 updates palette rollup config commit 277431e2d4c5feb1b292f9a00cc01a84d110fa67 Author: Adam Michael Thompson Date: Wed Apr 23 13:11:35 2025 -0400 updates /bin commit 34676e4eb6d15490189a8c1758a3410351da312c Author: Adam Michael Thompson Date: Wed Apr 23 13:10:36 2025 -0400 updates main package.json entries commit f31927d47aa4dd90b78fac9a9d5f909dc5769930 Author: Adam Michael Thompson Date: Wed Apr 23 13:09:08 2025 -0400 Updates rollup config to output UMD directory commit 8833088def3ca55ed61c50dda05e0d64ec531f6c Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 1e0927b947e22e630c0d9830fa596b53379f4bbf Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit c96bd0d9b9f65fe745dc0a7086f867dc777c480f Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 0ce118a7c492a09f4d3b0a5fed0c6c4d456ea966 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit e9d68021ce987c1904dc00e68e52d5fbefb37ee6 Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 393638dadd9304022fd5c7b4673027a1015e6b81 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit d9681493f0b69bd841b3843ab37f17927015cc44 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit a7ff987ca91b3b4f1bbe5981e7eb42e8004e56b1 Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit 263d57dc2aa56ef562150a6f2489b465c2a811f2 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit f34e1fb89e261f1fc6cce925455daee2a6de6f1e Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit 1e898c4b034d44df1cf4b7202dce094bb9a511ee Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit c065c0014d7e49a62bd355c46c78ef291ddf1cf1 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 49089a1d0e678334762300611853423bd795548b Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit 9fcb42f57dcb4062e714f6fc6c4cab281f1869c8 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit bb261c0db4206e4e77a49594fbaa8fb0a214c384 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 8c3ba8663bb7083c0cc3933053bfe21fc0102943 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit cf82d73878c0d85dd892148450028a755621c467 Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit cc51cbc0ef6034b1642cff722b556e584f6663a1 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 190e4cde1a15bedbd6554fd1d7ff0534cf285436 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit a3a242220b51d35c6cc7efc8702047d5ccca8444 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit 3185c91f091fda01e4450b32d730660ca097728e Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit beff4470a1ee443f023842f9e1d5129e5c872d38 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit ef0aebe350ff3a48d58e22995fb87edd0876aa7e Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 9eea66d57916deb6153ae821a50be60d16e374d6 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 510443306f3e87b109d3a50bbc307e8796533d2a Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit a0bc0fe8d4d0caf7088ce61584ef016c9ab8776c Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit 0714dd6dd89d15ad069869b2e4b39d6d39915341 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit a05aef6a64bc506d6a018fb6e148d0feaa7f89e8 Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit f5185217cd3ef094e6dd3bc9bd42715ab60823af Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit 652b3a65e42deacffd2684d462d00cab326adfb6 Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 83b489f57e55caf6ccc44524fd794ecb5809d75e Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 commit 55fc5a067937831e7c20468bf36dd785bae88f98 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 11:30:52 2025 -0400 2a. Updates shared TypeScript config (#2824) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * updates all TSconfigs * adds changesets * adds types entry point in package.json * code postinstall * fix builds * Update prettier.ts * Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson Date: Thu Apr 24 17:35:10 2025 -0400 Merge branch 'a/ts5' of https://github.com/mongodb/leafygreen-ui into a/ts5 commit eba052c5b4da9cca0374043c6333614c85469102 Author: Adam Michael Thompson Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 160fecb1ba2acf91e57f9cc5622982392238e960 Merge: a01525f2f 028147fe1 Author: Adam Michael Thompson Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 06ec702e08075e1c99003b917677385e5d1f1b47 Author: Adam Michael Thompson Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 * Update package.json * Update pnpm-lock.yaml * Update all-types-entry-point.md commit 9530c24424908967c92fc8ef5a8605d277eafd4b Merge: 254eb28c8 2cb75f722 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 2cb75f7226a01702d31ff67c4d7161a9651460f5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit 989387c95945d4482bac569f41dc8289fbf55708 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 18:28:06 2025 -0400 Validate builds based on `package.json` (#2823) * update validate to use package entry files * Create validate-build-package-json.md * updates types validation only validate if it should exist * rm validate ignore * Update index.ts commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration --- packages/code/package.json | 8 +- packages/table/package.json | 8 +- packages/tabs/package.json | 8 +- packages/testing-lib/package.json | 4 +- packages/text-area/package.json | 4 +- packages/text-input/package.json | 8 +- packages/toggle/package.json | 8 +- pnpm-lock.yaml | 116 ++++++++++++++--------------- tools/create/package.json | 3 +- tools/storybook-addon/preset.js | 10 ++- tools/storybook-addon/src/index.ts | 7 -- tsconfig.json | 2 +- 12 files changed, 93 insertions(+), 93 deletions(-) diff --git a/packages/code/package.json b/packages/code/package.json index f681682bf1..cb548f64d2 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -8,14 +8,14 @@ "typesVersions": {}, "exports": { ".": { + "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": "./dist/types/index.d.ts" }, "./testing": { + "require": "./dist/umd/testing/index.js", "import": "./dist/esm/testing/index.js", - "require": "./dist/testing/index.js", - "types": "./dist/testing/index.d.ts" + "types": "./dist/types/testing/index.d.ts" } }, "scripts": { diff --git a/packages/table/package.json b/packages/table/package.json index 7b3c6d69f5..332556095c 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -8,14 +8,14 @@ "typesVersions": {}, "exports": { ".": { + "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": "./dist/types/index.d.ts" }, "./testing": { + "require": "./dist/umd/testing/index.js", "import": "./dist/esm/testing/index.js", - "require": "./dist/testing/index.js", - "types": "./dist/testing/index.d.ts" + "types": "./dist/types/testing/index.d.ts" } }, "scripts": { diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 845cc5d883..7621635c1e 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -8,14 +8,14 @@ "typesVersions": {}, "exports": { ".": { + "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": "./dist/types/index.d.ts" }, "./testing": { + "require": "./dist/umd/testing/index.js", "import": "./dist/esm/testing/index.js", - "require": "./dist/testing/index.js", - "types": "./dist/testing/index.d.ts" + "types": "./dist/types/testing/index.d.ts" } }, "scripts": { diff --git a/packages/testing-lib/package.json b/packages/testing-lib/package.json index a393202581..a1cb2ad19f 100644 --- a/packages/testing-lib/package.json +++ b/packages/testing-lib/package.json @@ -18,8 +18,8 @@ "@testing-library/react-hooks": ">=3.7.0" }, "scripts": { - "build": "lg-internal-build-package", - "tsc": "tsc --build tsconfig.json" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/text-area/package.json b/packages/text-area/package.json index c3b2c5c175..2014836aa8 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -13,9 +13,9 @@ "types": "./dist/types/index.d.ts" }, "./testing": { + "require": "./dist/umd/testing/index.js", "import": "./dist/esm/testing/index.js", - "require": "./dist/testing/index.js", - "types": "./dist/testing/index.d.ts" + "types": "./dist/types/testing/index.d.ts" } }, "scripts": { diff --git a/packages/text-input/package.json b/packages/text-input/package.json index 7ae1cd863f..d9583525d8 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -8,14 +8,14 @@ "typesVersions": {}, "exports": { ".": { + "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": "./dist/types/index.d.ts" }, "./testing": { + "require": "./dist/umd/testing/index.js", "import": "./dist/esm/testing/index.js", - "require": "./dist/testing/index.js", - "types": "./dist/testing/index.d.ts" + "types": "./dist/types/testing/index.d.ts" } }, "scripts": { diff --git a/packages/toggle/package.json b/packages/toggle/package.json index 63ffc9c2f0..0580840066 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -8,14 +8,14 @@ "typesVersions": {}, "exports": { ".": { + "require": "./dist/umd/index.js", "import": "./dist/esm/index.js", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": "./dist/types/index.d.ts" }, "./testing": { + "require": "./dist/umd/testing/index.js", "import": "./dist/esm/testing/index.js", - "require": "./dist/testing/index.js", - "types": "./dist/testing/index.d.ts" + "types": "./dist/types/testing/index.d.ts" } }, "scripts": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 43ee3f47f8..d85b7a3d84 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1786,7 +1786,7 @@ importers: version: 11.0.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250425) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250428) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -3657,10 +3657,10 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) '@storybook/test': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) @@ -3669,7 +3669,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.9.0-dev.20250425) + version: 8.0.1(typescript@5.9.0-dev.20250428) assert: specifier: ^2.1.0 version: 2.1.0 @@ -3711,7 +3711,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.9.0-dev.20250425) + version: 2.2.2(typescript@5.9.0-dev.20250428) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3862,7 +3862,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -10547,8 +10547,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.9.0-dev.20250425: - resolution: {integrity: sha512-gAVbfPKGIswjMjNCQFfydDWgg/GWPnUrTw2iy6ePNDZ/ryEqurjVYTeSKZyslJEgJau1agvTMpMeZAoFCtZJyw==} + typescript@5.9.0-dev.20250428: + resolution: {integrity: sha512-/6K3WJlc0zjdAgLJMpU40jIxBIQ4fpAfE3o35EsPBTaqvDh9X6rY+c0NBYpYb/3UG0a2wgSr0yD0sS1l6Km7Fw==} engines: {node: '>=14.17'} hasBin: true @@ -12425,7 +12425,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12439,7 +12439,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12908,7 +12908,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 @@ -12918,7 +12918,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250425)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250428)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -12936,7 +12936,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 transitivePeerDependencies: - '@swc/core' - esbuild @@ -13054,11 +13054,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250425)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250428)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -13071,7 +13071,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13088,16 +13088,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250425)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250428)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250425) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250428) tslib: 2.6.2 - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -13114,16 +13114,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) optionalDependencies: - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13162,7 +13162,7 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) typescript: 5.8.3 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250425)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 @@ -13175,7 +13175,7 @@ snapshots: storybook: 8.6.12(prettier@3.5.3) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: @@ -13342,12 +13342,12 @@ snapshots: - supports-color - typescript - '@svgr/core@8.0.0(typescript@5.9.0-dev.20250425)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250428)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250425) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250428) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13392,11 +13392,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250425))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250428))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250425) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250428) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: @@ -13427,10 +13427,10 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250425))(typescript@5.9.0-dev.20250425)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250428))(typescript@5.9.0-dev.20250428)': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250425) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250425) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250428) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250428) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: @@ -13461,16 +13461,16 @@ snapshots: - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250425)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250428)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250425) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250425)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250425))(typescript@5.9.0-dev.20250425) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250428) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250428)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250428))(typescript@5.9.0-dev.20250428) transitivePeerDependencies: - supports-color - typescript @@ -14777,14 +14777,14 @@ snapshots: optionalDependencies: typescript: 5.8.3 - cosmiconfig@8.3.6(typescript@5.9.0-dev.20250425): + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250428): dependencies: import-fresh: 3.3.0 js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 optionalDependencies: - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 create-ecdh@4.0.4: dependencies: @@ -15180,7 +15180,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 dunder-proto@1.0.1: dependencies: @@ -15797,7 +15797,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250425)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250428)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15811,7 +15811,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -16491,16 +16491,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16575,7 +16575,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16601,7 +16601,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16869,12 +16869,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -18304,9 +18304,9 @@ snapshots: dependencies: typescript: 5.8.3 - react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250425): + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250428): dependencies: - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 react-docgen@7.0.3: dependencies: @@ -19264,7 +19264,7 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250425): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250428): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19278,13 +19278,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250425): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19298,7 +19298,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250425 + typescript: 5.9.0-dev.20250428 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19425,7 +19425,7 @@ snapshots: typescript@5.8.3: {} - typescript@5.9.0-dev.20250425: {} + typescript@5.9.0-dev.20250428: {} unbox-primitive@1.0.2: dependencies: diff --git a/tools/create/package.json b/tools/create/package.json index 03c58d4d2f..78cf15694f 100644 --- a/tools/create/package.json +++ b/tools/create/package.json @@ -3,8 +3,7 @@ "version": "0.3.1", "description": "Creates a new LeafyGreen packages", "main": "./dist/umd/index.js", - "module": "./dist/esm/index.js", - "types": "./dist/types/index.d.ts", + "module": "dist/esm/index.js", "license": "Apache-2.0", "scripts": { "build": "lg-build bundle", diff --git a/tools/storybook-addon/preset.js b/tools/storybook-addon/preset.js index f4f0e99884..5600f99e4d 100644 --- a/tools/storybook-addon/preset.js +++ b/tools/storybook-addon/preset.js @@ -1 +1,9 @@ -module.exports = require('./dist/index'); +// @ts-nocheck +module.exports = require('./dist/umd/index.js'); + +/** + * We also export named arrays for any files we want to use for default + * `preview.js` and `manager.js` settings + */ +module.exports.previewAnnotations = [require.resolve('./dist/umd/preview.js')]; +module.exports.managerEntries = [require.resolve('./dist/umd/manager.js')]; diff --git a/tools/storybook-addon/src/index.ts b/tools/storybook-addon/src/index.ts index 9abdb2a983..f1e6230043 100644 --- a/tools/storybook-addon/src/index.ts +++ b/tools/storybook-addon/src/index.ts @@ -14,10 +14,3 @@ export { typescript, webpackFinal, } from './main'; - -/** - * We also export named arrays for any files we want to use for default - * `preview.js` and `manager.js` settings - */ -export const previewAnnotations = [require.resolve('../dist/preview.js')]; -export const managerEntries = [require.resolve('../dist/manager.js')]; diff --git a/tsconfig.json b/tsconfig.json index bf41b953b7..d7c10e4160 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,6 @@ "@lg-tools/*": ["tools/*/src"] } }, - "include": ["./charts", "./chat", "./packages", "./tools" ], + "include": ["./charts", "./chat", "./packages", "./tools"], "exclude": ["node_modules", "**/dist"] } From 3e9a04f084d9a4ec7f6b09a13d0f6ea76cbf7476 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 28 Apr 2025 19:22:12 -0400 Subject: [PATCH 103/123] Squashed commit of the following: commit 633623e6eef0f4022d532ec737d76ff5d4099ce5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 19:19:10 2025 -0400 2b. Updates UMD build config (#2825) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * update typesVersions * lint * lint console * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Updates rollup config to output UMD directory * updates main package.json entries * updates /bin * updates palette rollup config * Update pnpm-lock.yaml * ts-expect-error * restores missing deps * Update icon & testing lib * Update storybook addon rollup.config.mjs * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * Update pnpm-lock.yaml * fix missing packages * 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build * update cli require path * Squashed commit of the following: commit 55fc5a067937831e7c20468bf36dd785bae88f98 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 11:30:52 2025 -0400 2a. Updates shared TypeScript config (#2824) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * updates all TSconfigs * adds changesets * adds types entry point in package.json * code postinstall * fix builds * Update prettier.ts * Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson Date: Thu Apr 24 17:35:10 2025 -0400 Merge branch 'a/ts5' of https://github.com/mongodb/leafygreen-ui into a/ts5 commit eba052c5b4da9cca0374043c6333614c85469102 Author: Adam Michael Thompson Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 160fecb1ba2acf91e57f9cc5622982392238e960 Merge: a01525f2f 028147fe1 Author: Adam Michael Thompson Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 06ec702e08075e1c99003b917677385e5d1f1b47 Author: Adam Michael Thompson Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 * Update package.json * Update pnpm-lock.yaml * Update all-types-entry-point.md commit 9530c24424908967c92fc8ef5a8605d277eafd4b Merge: 254eb28c8 2cb75f722 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit 2cb75f7226a01702d31ff67c4d7161a9651460f5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit 989387c95945d4482bac569f41dc8289fbf55708 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 18:28:06 2025 -0400 Validate builds based on `package.json` (#2823) * update validate to use package entry files * Create validate-build-package-json.md * updates types validation only validate if it should exist * rm validate ignore * Update index.ts commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Update pnpm-lock.yaml * fixes missing deps * Update preset.js * update preview.js commit 55fc5a067937831e7c20468bf36dd785bae88f98 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 28 11:30:52 2025 -0400 2a. Updates shared TypeScript config (#2824) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * updates all TSconfigs * adds changesets * adds types entry point in package.json * code postinstall * fix builds * Update prettier.ts * Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson Date: Thu Apr 24 17:35:10 2025 -0400 Merge branch 'a/ts5' of https://github.com/mongodb/leafygreen-ui into a/ts5 commit eba052c5b4da9cca0374043c6333614c85469102 Author: Adam Michael Thompson Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 160fecb1ba2acf91e57f9cc5622982392238e960 Merge: a01525f2f 028147fe1 Author: Adam Michael Thompson Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 16:38:05 2025 -0400 Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson Date: Wed Apr 23 12:53:58 2025 -0400 Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. commit 06ec702e08075e1c99003b917677385e5d1f1b47 Author: Adam Michael Thompson Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Tue Apr 22 15:47:12 2025 -0400 T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors commit 41dad03253e97ee654bb2d4e7e5fba48da0dc446 Author: Adam Michael Thompson Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 * Update package.json * Update pnpm-lock.yaml * Update all-types-entry-point.md commit 9530c24424908967c92fc8ef5a8605d277eafd4b Merge: 254eb28c8 2cb75f722 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 15:10:36 2025 -0400 1b. Adds standalone `lg-build` CLI command (#2817) * Bump to TS5.0 * use typescript node API * use createSolutionBuilderHost * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * update packagejsons * fix build build scripts * "tsc": "lg-internal-build-ts" * reset packagejson * add runTypescriptDownlevel to bin * Update package.json * update typesVersions * lint * lint console * remove TS 3 downleveling * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * updates scripts * updates downlevel script * comments * lint fix * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * `lg-build` cli * cli --update flag * tools use lg-build cli * update pnpm build:ts-downlevel * Update lg-build-cli.md * install prebuild depends on tsc * Squashed commit of the following: commit a01525f2f8dc6c6e55a7c5fcac90071318d98d2c Author: Adam Michael Thompson Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Fri Apr 25 12:26:09 2025 -0400 1. Typescript 5.8 [LG-5006] (#2821) * Bump to TS5.0 * use typescript node API * handle cli options * use createSolutionBuilderHost * add production flag * makeTypescriptDiagnosticReporter * creates downlevelDts * downlevelDts parses package.json * use --downlevel flag * add ts version override * add --downlevel on prepublish * adds changesets * Update InlineCode.tsx * update packagejsons * fix prepublishOnly * update logging * Update build-typescript-5.md * fix build build scripts * "tsc": "lg-internal-build-ts" * add downlevel to prepublish * reset packagejson * add runTypescriptDownlevel to bin * Update pnpm-lock.yaml * Update package.json * update typesVersions * Update package.json * Update package.json * lint * lint console * Update build-ts.spec.ts * Update pnpm-lock.yaml * add missing mock-fs * @types/mock-fs * remove TS 3 downleveling * rm chalk. fix mockFs * creates updateTypesVersions script * exclude packages from ts downlevel script * remove typesVersions * Create typescript-5-all.md * updates all tsconfigs * Update build-package.ts * updates scripts * updates downlevel script * comments * T 5.8 (#2816) * upgrade to TS 5.8 * fix or ignore new errors * Update build-typescript-5.md * Update tsconfig.json * lint fix * Update typescript-5-all.md * add --update to bin cmd * ensure empty * Create validate-build-package-json.md * Revert "Create validate-build-package-json.md" This reverts commit 06ec702e08075e1c99003b917677385e5d1f1b47. * Delete package.json * revert typesversions * lockfile * disable downlevel * Adds `getPackageRoot` utility (#2826) * adds getPackageRoot * Create meta-get-package-root.md * adds tests * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files * Update packagejson exports * add comment * use clone deep commit 2cb75f7226a01702d31ff67c4d7161a9651460f5 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit 989387c95945d4482bac569f41dc8289fbf55708 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Wed Apr 23 18:28:06 2025 -0400 Validate builds based on `package.json` (#2823) * update validate to use package entry files * Create validate-build-package-json.md * updates types validation only validate if it should exist * rm validate ignore * Update index.ts commit 6bc396170701e32eea46ac41b5e167726abe93d7 Author: Adam Michael Thompson Date: Tue Apr 22 17:02:19 2025 -0400 integration --- pnpm-lock.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d85b7a3d84..d4c4fd188e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5304,6 +5304,15 @@ packages: rollup: optional: true + '@rollup/plugin-url@8.0.2': + resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + '@rollup/pluginutils@5.0.2': resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} engines: {node: '>=14.0.0'} @@ -12698,6 +12707,12 @@ snapshots: make-dir: 3.1.0 mime: 3.0.0 + '@rollup/plugin-url@8.0.2': + dependencies: + '@rollup/pluginutils': 5.0.2(rollup@4.16.1) + make-dir: 3.1.0 + mime: 3.0.0 + '@rollup/pluginutils@5.0.2(rollup@4.16.1)': dependencies: '@types/estree': 1.0.6 From e694ffaf4d9968ad0b12d1fdc53bc2699a711c7a Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 28 Apr 2025 19:29:24 -0400 Subject: [PATCH 104/123] Update pnpm-lock.yaml --- pnpm-lock.yaml | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d9b3eba70f..d85b7a3d84 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5304,24 +5304,6 @@ packages: rollup: optional: true - '@rollup/plugin-url@8.0.2': - resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - - '@rollup/plugin-url@8.0.2': - resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 - peerDependenciesMeta: - rollup: - optional: true - '@rollup/pluginutils@5.0.2': resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} engines: {node: '>=14.0.0'} @@ -12716,18 +12698,6 @@ snapshots: make-dir: 3.1.0 mime: 3.0.0 - '@rollup/plugin-url@8.0.2': - dependencies: - '@rollup/pluginutils': 5.0.2(rollup@4.16.1) - make-dir: 3.1.0 - mime: 3.0.0 - - '@rollup/plugin-url@8.0.2': - dependencies: - '@rollup/pluginutils': 5.0.2(rollup@4.16.1) - make-dir: 3.1.0 - mime: 3.0.0 - '@rollup/pluginutils@5.0.2(rollup@4.16.1)': dependencies: '@types/estree': 1.0.6 From c9f2dcd54517f4c2d66adc2fb3959e1392e76fd3 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 28 Apr 2025 19:36:07 -0400 Subject: [PATCH 105/123] Create all-build-dev-dep.md --- .changeset/all-build-dev-dep.md | 108 ++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 .changeset/all-build-dev-dep.md diff --git a/.changeset/all-build-dev-dep.md b/.changeset/all-build-dev-dep.md new file mode 100644 index 0000000000..e324dfca43 --- /dev/null +++ b/.changeset/all-build-dev-dep.md @@ -0,0 +1,108 @@ +--- +'@lg-chat/leafygreen-chat-provider': patch +'@leafygreen-ui/leafygreen-provider': patch +'@leafygreen-ui/confirmation-modal': patch +'@leafygreen-ui/gallery-indicator': patch +'@leafygreen-ui/inline-definition': patch +'@leafygreen-ui/loading-indicator': patch +'@leafygreen-ui/segmented-control': patch +'@lg-tools/storybook-decorators': patch +'@leafygreen-ui/expandable-card': patch +'@leafygreen-ui/marketing-modal': patch +'@leafygreen-ui/radio-box-group': patch +'@leafygreen-ui/skeleton-loader': patch +'@leafygreen-ui/password-input': patch +'@lg-charts/series-provider': patch +'@lg-chat/fixed-chat-window': patch +'@leafygreen-ui/info-sprinkle': patch +'@lg-chat/message-feedback': patch +'@leafygreen-ui/input-option': patch +'@leafygreen-ui/number-input': patch +'@leafygreen-ui/ordered-list': patch +'@leafygreen-ui/search-input': patch +'@leafygreen-ui/split-button': patch +'@lg-tools/storybook-addon': patch +'@lg-tools/storybook-utils': patch +'@lg-charts/drag-provider': patch +'@lg-chat/chat-disclaimer': patch +'@lg-chat/message-prompts': patch +'@leafygreen-ui/date-picker': patch +'@leafygreen-ui/descendants': patch +'@leafygreen-ui/empty-state': patch +'@leafygreen-ui/form-footer': patch +'@leafygreen-ui/icon-button': patch +'@leafygreen-ui/polymorphic': patch +'@leafygreen-ui/radio-group': patch +'@leafygreen-ui/testing-lib': patch +'@lg-tools/test-harnesses': patch +'@lg-chat/message-rating': patch +'@leafygreen-ui/date-utils': patch +'@leafygreen-ui/form-field': patch +'@leafygreen-ui/pagination': patch +'@leafygreen-ui/text-input': patch +'@leafygreen-ui/typography': patch +'@leafygreen-ui/guide-cue': patch +'@leafygreen-ui/text-area': patch +'@lg-charts/chart-card': patch +'@lg-chat/message-feed': patch +'@leafygreen-ui/checkbox': patch +'@leafygreen-ui/combobox': patch +'@leafygreen-ui/copyable': patch +'@leafygreen-ui/pipeline': patch +'@leafygreen-ui/side-nav': patch +'@lg-chat/chat-window': patch +'@lg-chat/lg-markdown': patch +'@leafygreen-ui/callout': patch +'@leafygreen-ui/emotion': patch +'@leafygreen-ui/palette': patch +'@leafygreen-ui/popover': patch +'@leafygreen-ui/stepper': patch +'@leafygreen-ui/tooltip': patch +'@lg-chat/rich-links': patch +'@leafygreen-ui/avatar': patch +'@leafygreen-ui/banner': patch +'@leafygreen-ui/button': patch +'@leafygreen-ui/drawer': patch +'@leafygreen-ui/portal': patch +'@leafygreen-ui/ripple': patch +'@leafygreen-ui/select': patch +'@leafygreen-ui/toggle': patch +'@leafygreen-ui/tokens': patch +'@lg-chat/input-bar': patch +'@lg-chat/title-bar': patch +'@leafygreen-ui/badge': patch +'@leafygreen-ui/hooks': patch +'@leafygreen-ui/modal': patch +'@leafygreen-ui/table': patch +'@leafygreen-ui/toast': patch +'@lg-tools/codemods': patch +'@lg-tools/slackbot': patch +'@lg-tools/validate': patch +'@lg-charts/colors': patch +'@lg-charts/legend': patch +'@leafygreen-ui/a11y': patch +'@leafygreen-ui/card': patch +'@leafygreen-ui/chip': patch +'@leafygreen-ui/code': patch +'@leafygreen-ui/icon': patch +'@leafygreen-ui/logo': patch +'@leafygreen-ui/menu': patch +'@leafygreen-ui/tabs': patch +'@lg-tools/install': patch +'@lg-chat/message': patch +'@leafygreen-ui/box': patch +'@leafygreen-ui/lib': patch +'@lg-tools/create': patch +'@lg-tools/update': patch +'@lg-charts/core': patch +'@lg-chat/avatar': patch +'@lg-tools/build': patch +'@lg-tools/link': patch +'@lg-tools/lint': patch +'@lg-tools/meta': patch +'@lg-tools/test': patch +'@lg-tools/cli': patch +'lg-scripts': patch +--- + +Adds `@lg-tools/build` as a dev dependency From 5c92415411e24ffa83f8bc4505e255e5b3192c5e Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 29 Apr 2025 10:36:44 -0400 Subject: [PATCH 106/123] Update getAllPackages.ts --- tools/meta/src/getAllPackages/getAllPackages.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/meta/src/getAllPackages/getAllPackages.ts b/tools/meta/src/getAllPackages/getAllPackages.ts index 8769634e47..4a60714d4b 100644 --- a/tools/meta/src/getAllPackages/getAllPackages.ts +++ b/tools/meta/src/getAllPackages/getAllPackages.ts @@ -1,4 +1,4 @@ -import fse from 'fs-extra'; +import { existsSync, lstatSync, readdirSync } from 'fs-extra'; import path from 'path'; import { getLGConfig } from '../getLGConfig'; @@ -15,9 +15,11 @@ export const getAllPackages = () => { for (const scopePath of Object.values(scopes)) { const scopeDir = path.resolve(rootDir, scopePath); - if (fse.existsSync(scopeDir)) { - const pkgNames = fse.readdirSync(scopeDir); - const pkgPaths = pkgNames.map(name => path.resolve(scopeDir, name)); + if (existsSync(scopeDir)) { + const pkgNames = readdirSync(scopeDir); + const pkgPaths = pkgNames + .map(name => path.resolve(scopeDir, name)) + .filter(pkgPath => lstatSync(pkgPath).isDirectory()); paths.push(...pkgPaths); } } From 6a1fa57ad82915dac333023d3d38b63e41bb9b59 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 29 Apr 2025 15:29:48 -0400 Subject: [PATCH 107/123] updates testing references --- packages/code/src/Code/Code.spec.tsx | 8 ++++---- packages/code/src/testing/getTestUtils.spec.tsx | 3 +-- packages/code/src/testing/index.ts | 2 ++ .../date-picker/src/DatePicker/DatePicker.spec.tsx | 10 +++++++--- .../DatePicker/DatePickerMenu/DatePickerMenu.spec.tsx | 5 +---- packages/date-utils/package.json | 5 +++++ .../src/GalleryIndicator/GalleryIndicator.spec.tsx | 2 +- .../table/src/ExpandedContent/ExpandedContent.spec.tsx | 2 +- packages/table/src/Row/Row.spec.tsx | 2 +- packages/table/src/Row/RowWithRT.spec.tsx | 2 +- packages/table/src/Table/Table.spec.tsx | 2 +- packages/tabs/src/Tabs.spec.tsx | 3 +-- packages/tabs/src/testing/index.ts | 1 + .../utils/getEnabledIndices/getEnabledIndices.spec.tsx | 2 +- packages/text-area/src/TextArea/TextArea.spec.tsx | 2 +- packages/text-input/src/TextInput/TextInput.spec.tsx | 2 +- packages/toggle/src/Toggle/Toggle.spec.tsx | 2 +- 17 files changed, 31 insertions(+), 24 deletions(-) diff --git a/packages/code/src/Code/Code.spec.tsx b/packages/code/src/Code/Code.spec.tsx index ac6acdc08d..0d73f3309a 100644 --- a/packages/code/src/Code/Code.spec.tsx +++ b/packages/code/src/Code/Code.spec.tsx @@ -8,14 +8,14 @@ import Icon from '@leafygreen-ui/icon'; import IconButton from '@leafygreen-ui/icon-button'; import { Context, jest as Jest } from '@leafygreen-ui/testing-lib'; +import { numOfCollapsedLinesOfCode } from '../constants'; +import { Panel } from '../Panel'; +import { getTestUtils } from '../testing'; import { languageOptions, renderCode, renderCodeWithLanguageSwitcher, -} from '../Code.testutils'; -import { numOfCollapsedLinesOfCode } from '../constants'; -import { Panel } from '../Panel'; -import { getTestUtils } from '../utils/getTestUtils/getTestUtils'; +} from '../testing/Code.testutils'; import Code from './Code'; import { hasMultipleLines } from './utils'; diff --git a/packages/code/src/testing/getTestUtils.spec.tsx b/packages/code/src/testing/getTestUtils.spec.tsx index dcbe92b8e4..161c2142d0 100644 --- a/packages/code/src/testing/getTestUtils.spec.tsx +++ b/packages/code/src/testing/getTestUtils.spec.tsx @@ -7,8 +7,7 @@ import { renderCode, renderCodeWithLanguageSwitcher, renderMultipleCodes, -} from '../Code.testutils'; - +} from './Code.testutils'; import { getTestUtils } from './getTestUtils'; describe('packages/tabs/getTestUtils', () => { diff --git a/packages/code/src/testing/index.ts b/packages/code/src/testing/index.ts index f7d9e2cf77..86046833e7 100644 --- a/packages/code/src/testing/index.ts +++ b/packages/code/src/testing/index.ts @@ -1 +1,3 @@ +export * from './Code.testutils'; export * from './getTestUtils'; +export type * from './getTestUtils.types'; diff --git a/packages/date-picker/src/DatePicker/DatePicker.spec.tsx b/packages/date-picker/src/DatePicker/DatePicker.spec.tsx index 458e9773de..8b4c0959ba 100644 --- a/packages/date-picker/src/DatePicker/DatePicker.spec.tsx +++ b/packages/date-picker/src/DatePicker/DatePicker.spec.tsx @@ -9,13 +9,17 @@ import { import userEvent from '@testing-library/user-event'; import { addDays, subDays } from 'date-fns'; -import { getISODate, Month, newUTC } from '@leafygreen-ui/date-utils'; -import { SupportedLocales } from '@leafygreen-ui/date-utils'; +import { + getISODate, + Month, + newUTC, + SupportedLocales, +} from '@leafygreen-ui/date-utils'; import { mockTimeZone, testTimeZones, undefinedTZ, -} from '@leafygreen-ui/date-utils/src/testing'; +} from '@leafygreen-ui/date-utils/testing'; import { LGIDS_FORM_FIELD } from '@leafygreen-ui/form-field'; import { eventContainingTargetValue, diff --git a/packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenu.spec.tsx b/packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenu.spec.tsx index 95eb72ad56..0077376305 100644 --- a/packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenu.spec.tsx +++ b/packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenu.spec.tsx @@ -7,10 +7,7 @@ import { Month, newUTC, } from '@leafygreen-ui/date-utils'; -import { - mockTimeZone, - testTimeZones, -} from '@leafygreen-ui/date-utils/src/testing'; +import { mockTimeZone, testTimeZones } from '@leafygreen-ui/date-utils/testing'; import { SharedDatePickerProvider, diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index 88c63f7985..2e0efc8136 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -12,6 +12,11 @@ "import": "./dist/esm/index.js", "require": "./dist/umd/index.js", "types": "./dist/types/index.d.ts" + }, + "./testing": { + "import": "./dist/esm/testing/index.js", + "require": "./dist/umd/testing/index.js", + "types": "./dist/types/testing/index.d.ts" } }, "scripts": { diff --git a/packages/gallery-indicator/src/GalleryIndicator/GalleryIndicator.spec.tsx b/packages/gallery-indicator/src/GalleryIndicator/GalleryIndicator.spec.tsx index 874474d124..ee7365a005 100644 --- a/packages/gallery-indicator/src/GalleryIndicator/GalleryIndicator.spec.tsx +++ b/packages/gallery-indicator/src/GalleryIndicator/GalleryIndicator.spec.tsx @@ -3,7 +3,7 @@ import { render } from '@testing-library/react'; import { axe } from 'jest-axe'; import { LGIDs } from '../constants'; -import { getTestUtils } from '../utils/getTestUtils/getTestUtils'; +import { getTestUtils } from '../testing'; import { GalleryIndicator, GalleryIndicatorProps } from '.'; diff --git a/packages/table/src/ExpandedContent/ExpandedContent.spec.tsx b/packages/table/src/ExpandedContent/ExpandedContent.spec.tsx index 7919f8230a..3517c3e5a5 100644 --- a/packages/table/src/ExpandedContent/ExpandedContent.spec.tsx +++ b/packages/table/src/ExpandedContent/ExpandedContent.spec.tsx @@ -9,8 +9,8 @@ import { renderHook } from '@leafygreen-ui/testing-lib'; import { Cell } from '../Cell'; import { Row } from '../Row'; import TableBody from '../TableBody'; +import { getTestUtils } from '../testing'; import { LeafyGreenTableRow } from '../useLeafyGreenTable'; -import { getTestUtils } from '../utils/getTestUtils/getTestUtils'; import { Person } from '../utils/makeData.testutils'; import { useMockTestRowData, diff --git a/packages/table/src/Row/Row.spec.tsx b/packages/table/src/Row/Row.spec.tsx index 644657fce3..ae67eae5c9 100644 --- a/packages/table/src/Row/Row.spec.tsx +++ b/packages/table/src/Row/Row.spec.tsx @@ -7,7 +7,7 @@ import { axe } from 'jest-axe'; import { renderHook } from '@leafygreen-ui/testing-lib'; import { LGIDS } from '../constants'; -import { getTestUtils } from '../utils/getTestUtils/getTestUtils'; +import { getTestUtils } from '../testing'; import { Person } from '../utils/makeData.testutils'; import { useMockTestRowData } from '../utils/testHookCalls.testutils'; diff --git a/packages/table/src/Row/RowWithRT.spec.tsx b/packages/table/src/Row/RowWithRT.spec.tsx index b60bda8f71..c405398f68 100644 --- a/packages/table/src/Row/RowWithRT.spec.tsx +++ b/packages/table/src/Row/RowWithRT.spec.tsx @@ -7,8 +7,8 @@ import { renderHook } from '@leafygreen-ui/testing-lib'; import { Cell } from '../Cell'; import TableBody from '../TableBody'; +import { getTestUtils } from '../testing'; import { LeafyGreenTableRow } from '../useLeafyGreenTable'; -import { getTestUtils } from '../utils/getTestUtils/getTestUtils'; import { Person } from '../utils/makeData.testutils'; import { useMockTestRowData, diff --git a/packages/table/src/Table/Table.spec.tsx b/packages/table/src/Table/Table.spec.tsx index 04757dea74..cb87d9f353 100644 --- a/packages/table/src/Table/Table.spec.tsx +++ b/packages/table/src/Table/Table.spec.tsx @@ -11,13 +11,13 @@ import { Cell, HeaderCell } from '../Cell'; import { HeaderRow, Row } from '../Row'; import TableBody from '../TableBody'; import TableHead from '../TableHead'; +import { getTestUtils } from '../testing'; import useLeafyGreenTable, { LeafyGreenTable, LeafyGreenTableCell, LeafyGreenTableRow, } from '../useLeafyGreenTable'; import useLeafyGreenVirtualTable from '../useLeafyGreenVirtualTable'; -import { getTestUtils } from '../utils/getTestUtils/getTestUtils'; import { Person } from '../utils/makeData.testutils'; import { getDefaultTestColumns, diff --git a/packages/tabs/src/Tabs.spec.tsx b/packages/tabs/src/Tabs.spec.tsx index ead1757c19..94bc779c3b 100644 --- a/packages/tabs/src/Tabs.spec.tsx +++ b/packages/tabs/src/Tabs.spec.tsx @@ -5,8 +5,7 @@ import { axe } from 'jest-axe'; import { keyMap } from '@leafygreen-ui/lib'; -import { TestUtilsReturnType } from './utils/getTestUtils/getTestUtils.types'; -import { getTestUtils } from './utils'; +import { getTestUtils, TestUtilsReturnType } from './testing'; import { Tab, Tabs } from '.'; const tabsClassName = 'tabs-class-name'; diff --git a/packages/tabs/src/testing/index.ts b/packages/tabs/src/testing/index.ts index f7d9e2cf77..72562baafe 100644 --- a/packages/tabs/src/testing/index.ts +++ b/packages/tabs/src/testing/index.ts @@ -1 +1,2 @@ export * from './getTestUtils'; +export type * from './getTestUtils.types'; diff --git a/packages/tabs/src/utils/getEnabledIndices/getEnabledIndices.spec.tsx b/packages/tabs/src/utils/getEnabledIndices/getEnabledIndices.spec.tsx index 9c4396e5cd..c1619394a4 100644 --- a/packages/tabs/src/utils/getEnabledIndices/getEnabledIndices.spec.tsx +++ b/packages/tabs/src/utils/getEnabledIndices/getEnabledIndices.spec.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { render } from '@testing-library/react'; import { Tab, Tabs } from '../..'; -import { getTestUtils } from '..'; +import { getTestUtils } from '../../testing'; import { getEnabledIndices } from './getEnabledIndices'; diff --git a/packages/text-area/src/TextArea/TextArea.spec.tsx b/packages/text-area/src/TextArea/TextArea.spec.tsx index ea48f99224..4f981577dc 100644 --- a/packages/text-area/src/TextArea/TextArea.spec.tsx +++ b/packages/text-area/src/TextArea/TextArea.spec.tsx @@ -3,7 +3,7 @@ import { fireEvent, getByLabelText, render } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { axe } from 'jest-axe'; -import { getTestUtils } from '../utils'; +import { getTestUtils } from '../testing'; import { TextArea, TextAreaProps } from '.'; diff --git a/packages/text-input/src/TextInput/TextInput.spec.tsx b/packages/text-input/src/TextInput/TextInput.spec.tsx index c1005d6d42..5c11358a86 100644 --- a/packages/text-input/src/TextInput/TextInput.spec.tsx +++ b/packages/text-input/src/TextInput/TextInput.spec.tsx @@ -5,7 +5,7 @@ import { axe } from 'jest-axe'; import { consoleOnce } from '@leafygreen-ui/lib'; -import { getTestUtils } from '../utils'; +import { getTestUtils } from '../testing'; import TextInput from './TextInput'; import { State, TextInputProps } from './TextInput.types'; diff --git a/packages/toggle/src/Toggle/Toggle.spec.tsx b/packages/toggle/src/Toggle/Toggle.spec.tsx index b246a40e0a..24feac519c 100644 --- a/packages/toggle/src/Toggle/Toggle.spec.tsx +++ b/packages/toggle/src/Toggle/Toggle.spec.tsx @@ -3,7 +3,7 @@ import { act, render } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { axe } from 'jest-axe'; -import { getTestUtils } from '../utils'; +import { getTestUtils } from '../testing'; import Toggle from '..'; const className = 'test-className'; From fc17b704268e2e20ce55c861e45826ea5c358b05 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 29 Apr 2025 18:40:12 -0400 Subject: [PATCH 108/123] updates umd/testing dir --- tools/build/config/rollup.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/config/rollup.config.mjs b/tools/build/config/rollup.config.mjs index 16f4093dae..16154dd988 100644 --- a/tools/build/config/rollup.config.mjs +++ b/tools/build/config/rollup.config.mjs @@ -94,7 +94,7 @@ doTestUtilsExist && input: testUtilsFilename, output: { ...umdConfig.output, - dir: 'dist/testing', + dir: 'dist/umd/testing', }, }); From 59f142b2b61da2eb5d2e2b4b86c936fca49287e5 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 29 Apr 2025 18:40:35 -0400 Subject: [PATCH 109/123] date-utils/testing --- .../utils/getInitialHighlight/getInitialHighlight.spec.ts | 2 +- packages/date-utils/src/index.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/date-picker/src/DatePicker/utils/getInitialHighlight/getInitialHighlight.spec.ts b/packages/date-picker/src/DatePicker/utils/getInitialHighlight/getInitialHighlight.spec.ts index a938b87e35..b6186ce68c 100644 --- a/packages/date-picker/src/DatePicker/utils/getInitialHighlight/getInitialHighlight.spec.ts +++ b/packages/date-picker/src/DatePicker/utils/getInitialHighlight/getInitialHighlight.spec.ts @@ -1,5 +1,5 @@ import { Month, newUTC } from '@leafygreen-ui/date-utils'; -import { testTimeZones } from '@leafygreen-ui/date-utils'; +import { testTimeZones } from '@leafygreen-ui/date-utils/testing'; import { getInitialHighlight } from '.'; diff --git a/packages/date-utils/src/index.ts b/packages/date-utils/src/index.ts index 382fee3b9a..57c6a0eaeb 100644 --- a/packages/date-utils/src/index.ts +++ b/packages/date-utils/src/index.ts @@ -35,9 +35,6 @@ export { setToUTCMidnight } from './setToUTCMidnight'; export { setUTCDate } from './setUTCDate'; export { setUTCMonth } from './setUTCMonth'; export { setUTCYear } from './setUTCYear'; -export { SupportedLocales } from './types/locales'; -// TODO: export /testing as a separate sub-directory -// i.e. `import {} from '@leafygreen-ui/date-utils/testing'` -export * from './testing'; export { toDate } from './toDate'; export * from './types'; +export { SupportedLocales } from './types/locales'; From 82778a6d725136a6d7f3d574a8ab9113aad8f982 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Tue, 29 Apr 2025 18:40:53 -0400 Subject: [PATCH 110/123] meta ensureDirSync --- tools/meta/src/getPackageManager/getPackageManager.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/meta/src/getPackageManager/getPackageManager.spec.ts b/tools/meta/src/getPackageManager/getPackageManager.spec.ts index 5bc04aa46a..07ba6dc57b 100644 --- a/tools/meta/src/getPackageManager/getPackageManager.spec.ts +++ b/tools/meta/src/getPackageManager/getPackageManager.spec.ts @@ -4,7 +4,7 @@ import { getPackageManager } from './getPackageManager'; describe('tools/meta/getPackageManager', () => { beforeAll(() => { - fsx.mkdirSync('./tmp/'); + fsx.ensureDirSync('./tmp/'); }); afterEach(() => { From 5762b113abadeeb5b89489ea6624cddd48997489 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 30 Apr 2025 13:07:37 -0400 Subject: [PATCH 111/123] Update DatePicker.stories.tsx --- packages/date-picker/src/DatePicker.stories.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/date-picker/src/DatePicker.stories.tsx b/packages/date-picker/src/DatePicker.stories.tsx index 94596dcb5d..2721fd83cc 100644 --- a/packages/date-picker/src/DatePicker.stories.tsx +++ b/packages/date-picker/src/DatePicker.stories.tsx @@ -4,13 +4,15 @@ import { StoryFn } from '@storybook/react'; import Button from '@leafygreen-ui/button'; import { - DateType, + type DateType, Month, newUTC, + SupportedLocales, +} from '@leafygreen-ui/date-utils'; +import { testLocales, testTimeZoneLabels, -} from '@leafygreen-ui/date-utils'; -import { SupportedLocales } from '@leafygreen-ui/date-utils'; +} from '@leafygreen-ui/date-utils/testing'; import { css } from '@leafygreen-ui/emotion'; import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider'; import Modal from '@leafygreen-ui/modal'; From a560dc6e10a56dcefa061cbc312832507b5cc199 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 30 Apr 2025 13:40:02 -0400 Subject: [PATCH 112/123] storybook-addon entry points --- tools/storybook-addon/package.json | 31 +++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index c44e554304..a245f8e83a 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -2,10 +2,39 @@ "name": "@lg-tools/storybook-addon", "version": "0.4.0", "description": "Storybook Addon for LeafyGreen UI Kit", + "license": "Apache-2.0", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", - "license": "Apache-2.0", + "exports": { + ".": { + "types": "./dist/types/index.d.ts", + "node": "./dist/umd/index.js", + "require": "./dist/umd/index.js", + "import": "./dist/esm/index.js" + }, + "./main": { + "types": "./dist/types/main.d.ts", + "node": "./dist/umd/main.js", + "require": "./dist/umd/main.js", + "import": "./dist/esm/main.js" + }, + "./manager": { + "types": "./dist/types/manager.d.ts", + "node": "./dist/umd/manager.js", + "require": "./dist/umd/manager.js", + "import": "./dist/esm/manager.js" + }, + "./preview": { + "types": "./dist/types/preview.d.ts", + "node": "./dist/umd/preview.js", + "require": "./dist/umd/preview.js", + "import": "./dist/esm/preview.js" + }, + "./preset": "./preset.js", + "./package.json": "./package.json" + }, + "files": ["dist/**/*", "*.js", "*.d.ts", "README.md", "package.json", "preset.js"], "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", From 5eedc8dae23157c567d21432b163ca58e2c5a347 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 30 Apr 2025 16:39:52 -0400 Subject: [PATCH 113/123] adds verbose logging to build --- tools/build/src/rollup/build-package.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/build/src/rollup/build-package.ts b/tools/build/src/rollup/build-package.ts index a198c58339..e1773df3f2 100644 --- a/tools/build/src/rollup/build-package.ts +++ b/tools/build/src/rollup/build-package.ts @@ -52,6 +52,15 @@ export function buildPackage({ direct, verbose }: BuildPackageOptions) { options: Array; warnings: BatchWarnings; }) => { + verbose && + console.log( + `Building ${packageName} with the following config:`, + options.map(config => ({ + input: config.input, + output: config.output[0].dir ?? config.output[0].file, + })), + ); + if (warnings.count > 0) { if (verbose) { // This prints all deferred warnings From 668194ca3eaa4f9de9a6fa5a33b906f207a8ef78 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 30 Apr 2025 16:40:19 -0400 Subject: [PATCH 114/123] fix esm testing build --- pnpm-lock.yaml | 124 ++++++++++++++------------- tools/build/config/rollup.config.mjs | 45 ++++++---- tools/build/package.json | 1 + 3 files changed, 93 insertions(+), 77 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d85b7a3d84..703e15e3fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1786,7 +1786,7 @@ importers: version: 11.0.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250428) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250430) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -3275,6 +3275,9 @@ importers: lodash: specifier: 4.17.21 version: 4.17.21 + lodash-es: + specifier: ^4.17.21 + version: 4.17.21 react-docgen-typescript: specifier: 2.2.2 version: 2.2.2(typescript@5.8.3) @@ -3657,10 +3660,10 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) '@storybook/test': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) @@ -3669,7 +3672,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.9.0-dev.20250428) + version: 8.0.1(typescript@5.9.0-dev.20250430) assert: specifier: ^2.1.0 version: 2.1.0 @@ -3711,7 +3714,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.9.0-dev.20250428) + version: 2.2.2(typescript@5.9.0-dev.20250430) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3862,7 +3865,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -8672,6 +8675,9 @@ packages: resolution: {integrity: sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + lodash-es@4.17.21: + resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} + lodash.debounce@4.0.8: resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} @@ -10547,8 +10553,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.9.0-dev.20250428: - resolution: {integrity: sha512-/6K3WJlc0zjdAgLJMpU40jIxBIQ4fpAfE3o35EsPBTaqvDh9X6rY+c0NBYpYb/3UG0a2wgSr0yD0sS1l6Km7Fw==} + typescript@5.9.0-dev.20250430: + resolution: {integrity: sha512-XCv8HsA7GgiWPibRv/7GtB9R4MNmR0kgQpWp1B+NtvVd1iCHCu7xsAnI0jSuiX5mzRDV5k04G4j8fZJmlrfyFw==} engines: {node: '>=14.17'} hasBin: true @@ -12425,7 +12431,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12439,7 +12445,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12908,7 +12914,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 @@ -12918,7 +12924,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250428)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250430)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -12936,7 +12942,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 transitivePeerDependencies: - '@swc/core' - esbuild @@ -13054,11 +13060,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250428)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250430)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -13071,7 +13077,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13088,16 +13094,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250428)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250430)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250428) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250430) tslib: 2.6.2 - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -13114,16 +13120,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) optionalDependencies: - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13162,7 +13168,7 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) typescript: 5.8.3 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250428)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 @@ -13175,7 +13181,7 @@ snapshots: storybook: 8.6.12(prettier@3.5.3) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: @@ -13342,12 +13348,12 @@ snapshots: - supports-color - typescript - '@svgr/core@8.0.0(typescript@5.9.0-dev.20250428)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250430)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250428) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250430) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13392,11 +13398,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250428))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250430))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250428) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250430) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: @@ -13427,10 +13433,10 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250428))(typescript@5.9.0-dev.20250428)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250430))(typescript@5.9.0-dev.20250430)': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250428) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250428) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250430) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250430) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: @@ -13461,16 +13467,16 @@ snapshots: - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250428)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250430)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250428) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250428)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250428))(typescript@5.9.0-dev.20250428) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250430) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250430)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250430))(typescript@5.9.0-dev.20250430) transitivePeerDependencies: - supports-color - typescript @@ -14777,14 +14783,14 @@ snapshots: optionalDependencies: typescript: 5.8.3 - cosmiconfig@8.3.6(typescript@5.9.0-dev.20250428): + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250430): dependencies: import-fresh: 3.3.0 js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 optionalDependencies: - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 create-ecdh@4.0.4: dependencies: @@ -15180,7 +15186,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 dunder-proto@1.0.1: dependencies: @@ -15797,7 +15803,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250428)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250430)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15811,7 +15817,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -16491,16 +16497,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16575,7 +16581,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16601,7 +16607,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16869,12 +16875,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -17065,6 +17071,8 @@ snapshots: dependencies: p-locate: 6.0.0 + lodash-es@4.17.21: {} + lodash.debounce@4.0.8: {} lodash.merge@4.6.2: {} @@ -18304,9 +18312,9 @@ snapshots: dependencies: typescript: 5.8.3 - react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250428): + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250430): dependencies: - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 react-docgen@7.0.3: dependencies: @@ -19264,7 +19272,7 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250428): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250430): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19278,13 +19286,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250428): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19298,7 +19306,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250428 + typescript: 5.9.0-dev.20250430 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19425,7 +19433,7 @@ snapshots: typescript@5.8.3: {} - typescript@5.9.0-dev.20250428: {} + typescript@5.9.0-dev.20250430: {} unbox-primitive@1.0.2: dependencies: diff --git a/tools/build/config/rollup.config.mjs b/tools/build/config/rollup.config.mjs index 16154dd988..400887c21c 100644 --- a/tools/build/config/rollup.config.mjs +++ b/tools/build/config/rollup.config.mjs @@ -11,6 +11,7 @@ import { nodeExternals } from 'rollup-plugin-node-externals'; import nodePolyfills from 'rollup-plugin-polyfill-node'; import { getUMDGlobals } from './utils/getUMDGlobals.mjs'; +import { defaultsDeep } from 'lodash-es'; const extensions = ['.ts', '.tsx']; const testUtilsFilename = 'src/testing/index.ts'; @@ -28,13 +29,19 @@ const { name } = createRequire(import.meta.url)( const external = [/node_modules/]; const moduleFormatToDirectory = { - esm: 'dist/esm/', - umd: 'dist/umd/', + esm: 'dist/esm', + umd: 'dist/umd', }; const doTestUtilsExist = glob.sync(testUtilsFilename).length > 0; -const createConfigForFormat = format => { +/** + * + * @param {'esm' | 'umd'} format + * @param {*} overrides + * @returns + */ +const createConfigForFormat = (format, overrides) => { const formatConfig = { input: ['src/index.ts'], output: { @@ -72,14 +79,8 @@ const createConfigForFormat = format => { }, }; - // Add code-splitting for test utils to ESM build if they exist - if (format === 'esm' && doTestUtilsExist) { - formatConfig.input.push(testUtilsFilename); - } - - return { - ...formatConfig, - }; + const finalConfig = defaultsDeep({}, overrides, formatConfig); + return finalConfig; }; const esmConfig = createConfigForFormat('esm'); @@ -89,14 +90,20 @@ const defaultConfig = [esmConfig, umdConfig]; // Add additional entry point to UMD build for test-utils if they exist doTestUtilsExist && - defaultConfig.push({ - ...umdConfig, - input: testUtilsFilename, - output: { - ...umdConfig.output, - dir: 'dist/umd/testing', - }, - }); + defaultConfig.push( + createConfigForFormat('esm', { + input: testUtilsFilename, + output: { + dir: `${moduleFormatToDirectory['esm']}/testing`, + }, + }), + createConfigForFormat('umd', { + input: testUtilsFilename, + output: { + dir: `${moduleFormatToDirectory['umd']}/testing`, + }, + }), + ); // FIXME: Figure out a way to get rid of this. // Creates a super-hacky `stories` bundle diff --git a/tools/build/package.json b/tools/build/package.json index 00ae5dbe98..fc77f6595e 100644 --- a/tools/build/package.json +++ b/tools/build/package.json @@ -41,6 +41,7 @@ "fs-extra": "11.1.1", "glob": "10.3.12", "lodash": "4.17.21", + "lodash-es": "^4.17.21", "react-docgen-typescript": "2.2.2", "rollup": "4.16.1", "rollup-plugin-bundle-stats": "^4.18.2", From ab3854fe0db8eaab6198e00835a6007ffab201fe Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 30 Apr 2025 16:40:29 -0400 Subject: [PATCH 115/123] update date-utils/testing --- .../DatePicker/DatePickerMenu/DatePickerMenu.stories.tsx | 6 ++---- .../Calendar/CalendarGrid/CalendarGrid.stories.tsx | 4 +++- .../DateInput/DateInputBox/DateInputBox.stories.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenu.stories.tsx b/packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenu.stories.tsx index 8b432c8e2b..1d5414db1d 100644 --- a/packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenu.stories.tsx +++ b/packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenu.stories.tsx @@ -7,13 +7,11 @@ import last from 'lodash/last'; import omit from 'lodash/omit'; import MockDate from 'mockdate'; +import { DateType, Month, newUTC } from '@leafygreen-ui/date-utils'; import { - DateType, - Month, - newUTC, testLocales, testTimeZoneLabels, -} from '@leafygreen-ui/date-utils'; +} from '@leafygreen-ui/date-utils/testing'; import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider'; import { transitionDuration } from '@leafygreen-ui/tokens'; import { InlineCode } from '@leafygreen-ui/typography'; diff --git a/packages/date-picker/src/shared/components/Calendar/CalendarGrid/CalendarGrid.stories.tsx b/packages/date-picker/src/shared/components/Calendar/CalendarGrid/CalendarGrid.stories.tsx index da0814369c..ba9bb7ea7f 100644 --- a/packages/date-picker/src/shared/components/Calendar/CalendarGrid/CalendarGrid.stories.tsx +++ b/packages/date-picker/src/shared/components/Calendar/CalendarGrid/CalendarGrid.stories.tsx @@ -8,9 +8,11 @@ import { Month, newUTC, SupportedLocales, +} from '@leafygreen-ui/date-utils'; +import { testLocales, testTimeZoneLabels, -} from '@leafygreen-ui/date-utils'; +} from '@leafygreen-ui/date-utils/testing'; import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider'; import { diff --git a/packages/date-picker/src/shared/components/DateInput/DateInputBox/DateInputBox.stories.tsx b/packages/date-picker/src/shared/components/DateInput/DateInputBox/DateInputBox.stories.tsx index e415b87a62..8d0934d1ca 100644 --- a/packages/date-picker/src/shared/components/DateInput/DateInputBox/DateInputBox.stories.tsx +++ b/packages/date-picker/src/shared/components/DateInput/DateInputBox/DateInputBox.stories.tsx @@ -8,8 +8,8 @@ import { Month, newUTC, SupportedLocales, - testLocales, } from '@leafygreen-ui/date-utils'; +import { testLocales } from '@leafygreen-ui/date-utils/testing'; import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider'; import { From 6b6470d85a35e6dce6db116c92fc6254bce39ebd Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 1 May 2025 13:10:13 -0400 Subject: [PATCH 116/123] fixes new bug in InlineCode --- .../typography/src/InlineCode/InlineCode.tsx | 3 ++- packages/typography/src/InlineCode/utils.ts | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 packages/typography/src/InlineCode/utils.ts diff --git a/packages/typography/src/InlineCode/InlineCode.tsx b/packages/typography/src/InlineCode/InlineCode.tsx index c6a29b8d2a..1f5134f624 100644 --- a/packages/typography/src/InlineCode/InlineCode.tsx +++ b/packages/typography/src/InlineCode/InlineCode.tsx @@ -21,6 +21,7 @@ import { nowrap, } from './InlineCode.styles'; import { BaseInlineCodeProps } from './InlineCode.types'; +import { getChildrenLength } from './utils'; const InlineCode = InferredPolymorphic( ( @@ -38,7 +39,7 @@ const InlineCode = InferredPolymorphic( const baseFontSize = useUpdatedBaseFontSize(baseFontSizeOverride); const { Component } = useInferredPolymorphic(as, rest, 'code'); - const charsCount = children.match(/./gu)?.length ?? 0; + const charsCount = getChildrenLength(children); const whiteSpace = charsCount <= 30 ? nowrap : normal; const needsWrapper = Component !== 'code'; diff --git a/packages/typography/src/InlineCode/utils.ts b/packages/typography/src/InlineCode/utils.ts new file mode 100644 index 0000000000..1738f05549 --- /dev/null +++ b/packages/typography/src/InlineCode/utils.ts @@ -0,0 +1,18 @@ +import { getNodeTextContent } from '@leafygreen-ui/lib'; +import { isValidElement } from 'react'; + +export const getChildrenLength = (children: any): number => { + if (typeof children === 'string') { + return children.match(/./gu)?.length ?? 0; + } else if ( + Array.isArray(children) && + children.every(child => typeof child === 'string') + ) { + return children.join('').match(/./gu)?.length ?? 0; + } else if (isValidElement(children)) { + const text = getNodeTextContent(children); + return text.match(/./gu)?.length ?? 0; + } + + return 0; +}; From 15d317ad5894ab3ce52ffae6a9847c53822f027b Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Thu, 1 May 2025 13:17:20 -0400 Subject: [PATCH 117/123] adds missing @storybook/test --- packages/date-picker/package.json | 1 + pnpm-lock.yaml | 119 +++++++++++++++--------------- 2 files changed, 62 insertions(+), 58 deletions(-) diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index b2e7ec1562..ff2cb9813a 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -41,6 +41,7 @@ "@leafygreen-ui/button": "workspace:^", "@leafygreen-ui/modal": "workspace:^", "@lg-tools/build": "workspace:^", + "@storybook/test": "^8.6.12", "mockdate": "^3.0.5" }, "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/date-picker", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 703e15e3fd..a491e9ce03 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1385,6 +1385,9 @@ importers: '@lg-tools/build': specifier: workspace:^ version: link:../../tools/build + '@storybook/test': + specifier: ^8.6.12 + version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) mockdate: specifier: ^3.0.5 version: 3.0.5 @@ -1786,7 +1789,7 @@ importers: version: 11.0.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250430) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250501) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -3660,10 +3663,10 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) '@storybook/test': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) @@ -3672,7 +3675,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.9.0-dev.20250430) + version: 8.0.1(typescript@5.9.0-dev.20250501) assert: specifier: ^2.1.0 version: 2.1.0 @@ -3714,7 +3717,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.9.0-dev.20250430) + version: 2.2.2(typescript@5.9.0-dev.20250501) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3865,7 +3868,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -10553,8 +10556,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.9.0-dev.20250430: - resolution: {integrity: sha512-XCv8HsA7GgiWPibRv/7GtB9R4MNmR0kgQpWp1B+NtvVd1iCHCu7xsAnI0jSuiX5mzRDV5k04G4j8fZJmlrfyFw==} + typescript@5.9.0-dev.20250501: + resolution: {integrity: sha512-oVdMnDZTyAKb0Bv9Lx5Uiy2XrHWeN6nHwekRxElXs6OJpQK1oPTd2uaL7xVJUD5CiVTlQGQQeCXJQZFrXmrgQw==} engines: {node: '>=14.17'} hasBin: true @@ -12431,7 +12434,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12445,7 +12448,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12914,7 +12917,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 @@ -12924,7 +12927,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250430)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250501)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -12942,7 +12945,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 transitivePeerDependencies: - '@swc/core' - esbuild @@ -13060,11 +13063,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250430)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250501)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -13077,7 +13080,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13094,16 +13097,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250430)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250501)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250430) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250501) tslib: 2.6.2 - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -13120,16 +13123,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) optionalDependencies: - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13168,7 +13171,7 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) typescript: 5.8.3 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250430)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 @@ -13181,7 +13184,7 @@ snapshots: storybook: 8.6.12(prettier@3.5.3) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: @@ -13348,12 +13351,12 @@ snapshots: - supports-color - typescript - '@svgr/core@8.0.0(typescript@5.9.0-dev.20250430)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250501)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250430) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250501) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13398,11 +13401,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250430))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250501))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250430) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250501) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: @@ -13433,10 +13436,10 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250430))(typescript@5.9.0-dev.20250430)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250501))(typescript@5.9.0-dev.20250501)': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250430) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250430) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250501) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250501) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: @@ -13467,16 +13470,16 @@ snapshots: - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250430)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250501)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250430) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250430)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250430))(typescript@5.9.0-dev.20250430) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250501) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250501)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250501))(typescript@5.9.0-dev.20250501) transitivePeerDependencies: - supports-color - typescript @@ -14783,14 +14786,14 @@ snapshots: optionalDependencies: typescript: 5.8.3 - cosmiconfig@8.3.6(typescript@5.9.0-dev.20250430): + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250501): dependencies: import-fresh: 3.3.0 js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 optionalDependencies: - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 create-ecdh@4.0.4: dependencies: @@ -15186,7 +15189,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 dunder-proto@1.0.1: dependencies: @@ -15803,7 +15806,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250430)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250501)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15817,7 +15820,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -16497,16 +16500,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16581,7 +16584,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16607,7 +16610,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16875,12 +16878,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -18312,9 +18315,9 @@ snapshots: dependencies: typescript: 5.8.3 - react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250430): + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250501): dependencies: - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 react-docgen@7.0.3: dependencies: @@ -19272,7 +19275,7 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250430): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250501): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19286,13 +19289,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250430): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19306,7 +19309,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250430 + typescript: 5.9.0-dev.20250501 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19433,7 +19436,7 @@ snapshots: typescript@5.8.3: {} - typescript@5.9.0-dev.20250430: {} + typescript@5.9.0-dev.20250501: {} unbox-primitive@1.0.2: dependencies: From a9a01b75003cecd41ff9133aae9bc152c12aa523 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 2 May 2025 11:22:09 -0400 Subject: [PATCH 118/123] lint --- packages/typography/src/InlineCode/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/typography/src/InlineCode/utils.ts b/packages/typography/src/InlineCode/utils.ts index 1738f05549..a5b340a785 100644 --- a/packages/typography/src/InlineCode/utils.ts +++ b/packages/typography/src/InlineCode/utils.ts @@ -1,6 +1,7 @@ -import { getNodeTextContent } from '@leafygreen-ui/lib'; import { isValidElement } from 'react'; +import { getNodeTextContent } from '@leafygreen-ui/lib'; + export const getChildrenLength = (children: any): number => { if (typeof children === 'string') { return children.match(/./gu)?.length ?? 0; From f7feb3751c057fbdcca9c9f6b07e9c49602e3774 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 9 May 2025 10:57:48 -0400 Subject: [PATCH 119/123] [test] rm exports from sb-addon --- tools/storybook-addon/package.json | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index 677278f4c3..9b44abcb1d 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -6,35 +6,6 @@ "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", - "exports": { - ".": { - "types": "./dist/types/index.d.ts", - "node": "./dist/umd/index.js", - "require": "./dist/umd/index.js", - "import": "./dist/esm/index.js" - }, - "./main": { - "types": "./dist/types/main.d.ts", - "node": "./dist/umd/main.js", - "require": "./dist/umd/main.js", - "import": "./dist/esm/main.js" - }, - "./manager": { - "types": "./dist/types/manager.d.ts", - "node": "./dist/umd/manager.js", - "require": "./dist/umd/manager.js", - "import": "./dist/esm/manager.js" - }, - "./preview": { - "types": "./dist/types/preview.d.ts", - "node": "./dist/umd/preview.js", - "require": "./dist/umd/preview.js", - "import": "./dist/esm/preview.js" - }, - "./preset": "./preset.js", - "./package.json": "./package.json" - }, - "files": ["dist/**/*", "*.js", "*.d.ts", "README.md", "package.json", "preset.js"], "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", From ded636a4e3e9a8503934f2c6abb1e0f4cd9fde26 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 9 May 2025 11:32:01 -0400 Subject: [PATCH 120/123] Revert "[test] rm exports from sb-addon" This reverts commit f7feb3751c057fbdcca9c9f6b07e9c49602e3774. --- tools/storybook-addon/package.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index 9b44abcb1d..677278f4c3 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -6,6 +6,35 @@ "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", + "exports": { + ".": { + "types": "./dist/types/index.d.ts", + "node": "./dist/umd/index.js", + "require": "./dist/umd/index.js", + "import": "./dist/esm/index.js" + }, + "./main": { + "types": "./dist/types/main.d.ts", + "node": "./dist/umd/main.js", + "require": "./dist/umd/main.js", + "import": "./dist/esm/main.js" + }, + "./manager": { + "types": "./dist/types/manager.d.ts", + "node": "./dist/umd/manager.js", + "require": "./dist/umd/manager.js", + "import": "./dist/esm/manager.js" + }, + "./preview": { + "types": "./dist/types/preview.d.ts", + "node": "./dist/umd/preview.js", + "require": "./dist/umd/preview.js", + "import": "./dist/esm/preview.js" + }, + "./preset": "./preset.js", + "./package.json": "./package.json" + }, + "files": ["dist/**/*", "*.js", "*.d.ts", "README.md", "package.json", "preset.js"], "scripts": { "build": "lg-build bundle", "tsc": "lg-build tsc", From 30c0e8fb46694372a21c43bed4cb8bbe0758af20 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Fri, 9 May 2025 13:12:41 -0400 Subject: [PATCH 121/123] wip --- .storybook/main.ts | 1 + .storybook/preview.ts | 2 + pnpm-lock.yaml | 119 +++++++++--------- tools/storybook-addon/src/index.ts | 1 + tools/storybook-addon/src/preview/index.ts | 2 + tools/storybook-addon/tsconfig.json | 29 ++++- .../PropCombinationsDecorator.tsx | 6 +- .../src/decorators/ReactStrictMode.tsx | 5 +- tools/storybook-decorators/tsconfig.json | 23 +++- 9 files changed, 125 insertions(+), 63 deletions(-) diff --git a/.storybook/main.ts b/.storybook/main.ts index 012432fe9f..6ad6adf27a 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -1,3 +1,4 @@ +console.log('🚧🚧🚧🚧🚧 Running Storybook main.ts configuration'); export default { addons: ['@lg-tools/storybook-addon'], framework: { diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 26081634b2..af7c06deb2 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -1,5 +1,6 @@ import { Preview } from '@storybook/react'; +console.log('📍📍📍 Running Local Storybook preview.ts configuration'); const parameters = { options: { storySort: { @@ -22,6 +23,7 @@ const parameters = { const preview: Preview = { parameters, + decorators: [], }; export default preview; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8a0c947062..b1a23cfe43 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1792,7 +1792,7 @@ importers: version: 11.0.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250501) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250509) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -3669,10 +3669,10 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) '@storybook/test': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) @@ -3681,7 +3681,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.9.0-dev.20250501) + version: 8.0.1(typescript@5.9.0-dev.20250509) assert: specifier: ^2.1.0 version: 2.1.0 @@ -3723,7 +3723,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.9.0-dev.20250501) + version: 2.2.2(typescript@5.9.0-dev.20250509) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3766,6 +3766,9 @@ importers: '@leafygreen-ui/emotion': specifier: workspace:^ version: link:../../packages/emotion + '@leafygreen-ui/hooks': + specifier: workspace:^ + version: link:../../packages/hooks '@leafygreen-ui/leafygreen-provider': specifier: workspace:^ version: link:../../packages/leafygreen-provider @@ -3874,7 +3877,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -10562,8 +10565,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.9.0-dev.20250501: - resolution: {integrity: sha512-oVdMnDZTyAKb0Bv9Lx5Uiy2XrHWeN6nHwekRxElXs6OJpQK1oPTd2uaL7xVJUD5CiVTlQGQQeCXJQZFrXmrgQw==} + typescript@5.9.0-dev.20250509: + resolution: {integrity: sha512-PPOIOmDBfpOZKdHB4y3BGEQutgH9iWrwepGl9eWnQnccMzkgplMYSChOWM2i3ViRr2dZu86zSQF8lwuHkXy+sQ==} engines: {node: '>=14.17'} hasBin: true @@ -12440,7 +12443,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12454,7 +12457,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12923,7 +12926,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 @@ -12933,7 +12936,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250501)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250509)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -12951,7 +12954,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 transitivePeerDependencies: - '@swc/core' - esbuild @@ -13069,11 +13072,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250501)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250509)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -13086,7 +13089,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13103,16 +13106,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250501)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250509)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250501) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250509) tslib: 2.6.2 - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -13129,16 +13132,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) optionalDependencies: - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13177,7 +13180,7 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) typescript: 5.8.3 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250501)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 @@ -13190,7 +13193,7 @@ snapshots: storybook: 8.6.12(prettier@3.5.3) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: @@ -13357,12 +13360,12 @@ snapshots: - supports-color - typescript - '@svgr/core@8.0.0(typescript@5.9.0-dev.20250501)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250509)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250501) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250509) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13407,11 +13410,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250501))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250509))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250501) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250509) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: @@ -13442,10 +13445,10 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250501))(typescript@5.9.0-dev.20250501)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250509))(typescript@5.9.0-dev.20250509)': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250501) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250501) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250509) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250509) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: @@ -13476,16 +13479,16 @@ snapshots: - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250501)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250509)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250501) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250501)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250501))(typescript@5.9.0-dev.20250501) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250509) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250509)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250509))(typescript@5.9.0-dev.20250509) transitivePeerDependencies: - supports-color - typescript @@ -14792,14 +14795,14 @@ snapshots: optionalDependencies: typescript: 5.8.3 - cosmiconfig@8.3.6(typescript@5.9.0-dev.20250501): + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250509): dependencies: import-fresh: 3.3.0 js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 optionalDependencies: - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 create-ecdh@4.0.4: dependencies: @@ -15195,7 +15198,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 dunder-proto@1.0.1: dependencies: @@ -15812,7 +15815,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250501)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250509)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15826,7 +15829,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -16506,16 +16509,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16590,7 +16593,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16616,7 +16619,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16884,12 +16887,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -18321,9 +18324,9 @@ snapshots: dependencies: typescript: 5.8.3 - react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250501): + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250509): dependencies: - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 react-docgen@7.0.3: dependencies: @@ -19281,7 +19284,7 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250501): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250509): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19295,13 +19298,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250501): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19315,7 +19318,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250501 + typescript: 5.9.0-dev.20250509 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19442,7 +19445,7 @@ snapshots: typescript@5.8.3: {} - typescript@5.9.0-dev.20250501: {} + typescript@5.9.0-dev.20250509: {} unbox-primitive@1.0.2: dependencies: diff --git a/tools/storybook-addon/src/index.ts b/tools/storybook-addon/src/index.ts index f1e6230043..fc9ca323d0 100644 --- a/tools/storybook-addon/src/index.ts +++ b/tools/storybook-addon/src/index.ts @@ -2,6 +2,7 @@ * We export named properties for the default StorybookConfig */ +console.log('++++++++ LOADING STORYBOOK ADDON'); export { addons, core, diff --git a/tools/storybook-addon/src/preview/index.ts b/tools/storybook-addon/src/preview/index.ts index 58185bfe04..4a7e94d77c 100644 --- a/tools/storybook-addon/src/preview/index.ts +++ b/tools/storybook-addon/src/preview/index.ts @@ -62,4 +62,6 @@ const preview: Preview = { decorators, }; +console.log('🎨🎨🎨 Loading Preview', preview); + export default preview; diff --git a/tools/storybook-addon/tsconfig.json b/tools/storybook-addon/tsconfig.json index 7fb232c247..1dba0eef91 100644 --- a/tools/storybook-addon/tsconfig.json +++ b/tools/storybook-addon/tsconfig.json @@ -4,5 +4,32 @@ "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"] + "exclude": ["**/*.spec.*", "**/*.stories.*"], + "references": [ + { + "path": "../../packages/lib" + }, + { + "path": "../../packages/palette" + }, + { + "path": "../../packages/tokens" + }, + { + "path": "../../packages/typography" + }, + { + "path": "../../tools/build" + }, + { + "path": "../../tools/meta" + }, + { + "path": "../../tools/storybook-decorators" + }, + { + "path": "../../tools/storybook-utils" + }, + + ] } \ No newline at end of file diff --git a/tools/storybook-decorators/src/decorators/PropCombinations/PropCombinationsDecorator.tsx b/tools/storybook-decorators/src/decorators/PropCombinations/PropCombinationsDecorator.tsx index 85cabc985d..6658549a88 100644 --- a/tools/storybook-decorators/src/decorators/PropCombinations/PropCombinationsDecorator.tsx +++ b/tools/storybook-decorators/src/decorators/PropCombinations/PropCombinationsDecorator.tsx @@ -19,6 +19,8 @@ import { Decorator, StoryContext, StoryFn } from '@storybook/react'; import entries from 'lodash/entries'; import isUndefined from 'lodash/isUndefined'; +import { cx } from '@leafygreen-ui/emotion'; + import { Err, PropCombinations } from './components'; import { PARAM_NAME } from './constants'; import { generatedStoryWrapper } from './PropCombinations.styles'; @@ -72,7 +74,7 @@ const PropCombinationsDecorator: Decorator = ( const variables = entries(combineArgs).sort(sortDarkMode); const GeneratedStory: StoryType = () => ( -
+
; + return ; }; export default PropCombinationsDecorator; diff --git a/tools/storybook-decorators/src/decorators/ReactStrictMode.tsx b/tools/storybook-decorators/src/decorators/ReactStrictMode.tsx index 915bd792f5..c1a15884da 100644 --- a/tools/storybook-decorators/src/decorators/ReactStrictMode.tsx +++ b/tools/storybook-decorators/src/decorators/ReactStrictMode.tsx @@ -2,6 +2,9 @@ import React, { StrictMode } from 'react'; import { Decorator } from '@storybook/react'; const ReactStrictMode: Decorator = storyFn => ( - {storyFn()} + + STRICT MODE! + {storyFn()} + ); export default ReactStrictMode; diff --git a/tools/storybook-decorators/tsconfig.json b/tools/storybook-decorators/tsconfig.json index 23b516da23..927b75559b 100644 --- a/tools/storybook-decorators/tsconfig.json +++ b/tools/storybook-decorators/tsconfig.json @@ -4,5 +4,26 @@ "include": [ "src/**/*" ], - "exclude": ["**/*.spec.*", "**/*.stories.*"] + "exclude": ["**/*.spec.*", "**/*.stories.*"], + + "references": [ + { + "path": "../../packages/banner" + }, + { + "path": "../../packages/emotion" + }, + { + "path": "../../packages/palette" + }, + { + "path": "../../packages/tokens" + }, + { + "path": "../../tools/build" + }, + { + "path": "../../tools/storybook-utils" + }, + ], } From 6b3ee0439b0fbca906c65cf1d8186fbcb626189f Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Mon, 12 May 2025 16:13:09 -0400 Subject: [PATCH 122/123] update preset --- .storybook/main.ts | 1 - .storybook/preview.ts | 2 -- pnpm-lock.yaml | 3 --- tools/storybook-addon/preset.js | 7 ------- tools/storybook-addon/src/index.ts | 1 - tools/storybook-addon/src/preview/index.ts | 8 ++------ .../src/decorators/ReactStrictMode.tsx | 5 +---- 7 files changed, 3 insertions(+), 24 deletions(-) diff --git a/.storybook/main.ts b/.storybook/main.ts index 6ad6adf27a..012432fe9f 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -1,4 +1,3 @@ -console.log('🚧🚧🚧🚧🚧 Running Storybook main.ts configuration'); export default { addons: ['@lg-tools/storybook-addon'], framework: { diff --git a/.storybook/preview.ts b/.storybook/preview.ts index af7c06deb2..26081634b2 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -1,6 +1,5 @@ import { Preview } from '@storybook/react'; -console.log('📍📍📍 Running Local Storybook preview.ts configuration'); const parameters = { options: { storySort: { @@ -23,7 +22,6 @@ const parameters = { const preview: Preview = { parameters, - decorators: [], }; export default preview; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b1a23cfe43..4623b32d84 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3766,9 +3766,6 @@ importers: '@leafygreen-ui/emotion': specifier: workspace:^ version: link:../../packages/emotion - '@leafygreen-ui/hooks': - specifier: workspace:^ - version: link:../../packages/hooks '@leafygreen-ui/leafygreen-provider': specifier: workspace:^ version: link:../../packages/leafygreen-provider diff --git a/tools/storybook-addon/preset.js b/tools/storybook-addon/preset.js index 5600f99e4d..b6ffe70bc7 100644 --- a/tools/storybook-addon/preset.js +++ b/tools/storybook-addon/preset.js @@ -1,9 +1,2 @@ // @ts-nocheck module.exports = require('./dist/umd/index.js'); - -/** - * We also export named arrays for any files we want to use for default - * `preview.js` and `manager.js` settings - */ -module.exports.previewAnnotations = [require.resolve('./dist/umd/preview.js')]; -module.exports.managerEntries = [require.resolve('./dist/umd/manager.js')]; diff --git a/tools/storybook-addon/src/index.ts b/tools/storybook-addon/src/index.ts index fc9ca323d0..f1e6230043 100644 --- a/tools/storybook-addon/src/index.ts +++ b/tools/storybook-addon/src/index.ts @@ -2,7 +2,6 @@ * We export named properties for the default StorybookConfig */ -console.log('++++++++ LOADING STORYBOOK ADDON'); export { addons, core, diff --git a/tools/storybook-addon/src/preview/index.ts b/tools/storybook-addon/src/preview/index.ts index 4a7e94d77c..9f546190a1 100644 --- a/tools/storybook-addon/src/preview/index.ts +++ b/tools/storybook-addon/src/preview/index.ts @@ -7,7 +7,7 @@ import { storybookExcludedArgTypes, storybookExcludedControlParams, } from '@lg-tools/storybook-utils'; -import { Preview } from '@storybook/react'; +import type { Preview } from '@storybook/react'; import { Body, @@ -55,13 +55,9 @@ const parameters = { }, }; -const decorators = [PropCombinations, ReactStrictMode, ComponentPreview]; - const preview: Preview = { parameters, - decorators, + decorators: [ReactStrictMode, ComponentPreview, PropCombinations], }; -console.log('🎨🎨🎨 Loading Preview', preview); - export default preview; diff --git a/tools/storybook-decorators/src/decorators/ReactStrictMode.tsx b/tools/storybook-decorators/src/decorators/ReactStrictMode.tsx index c1a15884da..915bd792f5 100644 --- a/tools/storybook-decorators/src/decorators/ReactStrictMode.tsx +++ b/tools/storybook-decorators/src/decorators/ReactStrictMode.tsx @@ -2,9 +2,6 @@ import React, { StrictMode } from 'react'; import { Decorator } from '@storybook/react'; const ReactStrictMode: Decorator = storyFn => ( - - STRICT MODE! - {storyFn()} - + {storyFn()} ); export default ReactStrictMode; From 6c897ef4b6a3dc32d47b2306507149441b19aba4 Mon Sep 17 00:00:00 2001 From: Adam Michael Thompson Date: Wed, 21 May 2025 10:27:11 -0400 Subject: [PATCH 123/123] Squashed commit of the following: commit 561cb2b3243f92ebee91ce27ca76a3b0411097fa Merge: be28a3011 9173c66ff Author: Adam Michael Thompson Date: Wed May 21 10:26:30 2025 -0400 Merge branch 'main' into integration/tooling commit 9173c66ff08b11c21693aaf8eac036c8864d48e7 Author: Stephen Lee Date: Tue May 20 17:29:37 2025 -0700 [LG-5137]: refactor option updates and improve memory usage (#2861) * fix(chart): improve memory usage of option updates * Changeset * refactor: more early returns in effects and consolidate conditionals commit a330b2d83afed430a67cc081eed18202254cdcb0 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue May 20 21:01:07 2025 +0000 Version Packages (#2863) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit 5c80334ed4025618fc109d0aade496d6cf0d1e2e Author: Stephen Lee Date: Tue May 20 12:34:55 2025 -0700 [LG-4972] feat(code): add language support for markdown (#2862) * [LG-4972] feat(code): add markdown language support * chore(code): changeset commit 0e2242d8cb3fa0ec52b6b15b881f1dae3cb972c4 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon May 19 16:02:19 2025 -0700 Version Packages (#2836) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit e14fc7768ed5f1e0921f14426f343cc26e51727d Author: Stephen Lee Date: Mon May 19 14:22:09 2025 -0700 chore(vscode): update Copilot instructions to use prompt-kit paths (#2860) * chore(vscode): update Copilot instructions to use prompt-kit paths * Changeset commit be28a301190b03a6203d6aba56cbdbf1f9054e19 Author: Adam Michael Thompson Date: Mon May 12 18:14:29 2025 -0400 prompt kit commit 5ab7438277fb0656f8419e38c7e963f16ee24023 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon May 12 17:45:53 2025 -0400 Updates build scripts & devDeps (#2856) * rm direct build warning * Update turbo.json * Update .npmrc * update build scripts * Update all-lg-build-dev-dep.md commit 50a887460135457564a817e2279afd59545776c7 Merge: 133082e8d b78b7a945 Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon May 12 17:14:25 2025 -0400 Merge branch 'main' into integration/tooling commit 133082e8d3a0edf9fc2b41edaa408c3017c5603a Author: Adam Thompson <2414030+TheSonOfThomp@users.noreply.github.com> Date: Mon May 12 17:13:48 2025 -0400 rm prebuild (#2855) commit b78b7a945ccf77763e7ca5926a60d5d9c20b01ca Author: Stephen Lee Date: Mon May 12 11:55:08 2025 -0700 feat(prompt-kit): create @lg-tools/prompt-kit and add lg inject-prompts-vscode cli command (#2845) * feat(prompt-kit): create @lg-tools/prompt-kit package with custom instructions for code, test, and commit message generation * feat(prompt-kit): add VS Code settings configuration and merge-editor-settings function * chore: install @lg-tools/prompt-kit * feat(prompt-kit): integrate @lg-tools/prompt-kit into CLI and update tsconfig * docs: update README with usage instructions and steps for injecting prompts into VS Code * refactor(prompt-kit): rename inject-prompts-vscode command to merge-prompts-vscode and update related code commit 92fafc8762e1013520f1d7ce7418e79b871295cb Author: Stephen Lee Date: Fri May 9 09:32:00 2025 -0700 [LG-5015] chore(codemods): bump jscodeshift to 17.3.0 (#2839) * chore(codemods): bump jscodeshift to 17.3.0 * Changeset commit 3a1b7704aeaf42608d4c92c8a02d3a7184f496ae Author: Terrence Keane Date: Thu May 8 14:05:50 2025 -0400 chore(charts): adjust chromatic diffThreshold for charts (#2844) * chore(charts): adjust chromatic diffThreshold for charts * chore(drag-provider): update chromatic diffThreshold for canvas rendering commit 4a34d68dd1deb32f805109b4ec5089043524b335 Author: Stephen Lee Date: Wed May 7 12:23:36 2025 -0700 chore(copilot): introduce custom instructions for code gen, test gen, and commit message gen (#2838) * chore: modify STYLEGUIDE * chore(copilot): add custom instructions for code generation * chore(copilot): add custom instructions for test generation * chore(copilot): add custom instructions for commit message generation commit eca6e3fdcb0a2b0e838969c3ed458489f26cf1a6 Author: Brooke Scarlett Yalof Date: Thu May 1 13:38:19 2025 -0400 Adds streaming icon to glyph set (#2835) --- .changeset/all-lg-build-dev-dep.md | 93 ++ .changeset/all-umd-entry-point.md | 1 - .changeset/charts-oom-fix.md | 5 + .changeset/olive-ways-repeat.md | 5 + .npmrc | 1 - .vscode/settings.json | 21 +- STYLEGUIDE.md | 4 +- charts/chart-card/CHANGELOG.md | 9 + charts/chart-card/package.json | 8 +- charts/colors/package.json | 6 +- charts/core/CHANGELOG.md | 7 + charts/core/package.json | 10 +- charts/core/src/Chart.stories.tsx | 8 + .../Chart/config/getDefaultChartOptions.ts | 4 - charts/core/src/Chart/constants.ts | 3 - .../core/src/Chart/hooks/updateUtils.spec.ts | 50 - charts/core/src/Chart/hooks/updateUtils.ts | 49 - charts/core/src/Chart/hooks/useChart.ts | 173 +- charts/core/src/Chart/index.ts | 1 - charts/core/src/ChartGrid/ChartGrid.tsx | 17 +- charts/core/src/ChartTooltip/ChartTooltip.tsx | 94 +- charts/core/src/Echart/Echart.types.ts | 8 +- charts/core/src/Echart/updateUtils.tsx | 69 + charts/core/src/Echart/useEchart.spec.ts | 78 +- charts/core/src/Echart/useEchart.ts | 317 ++-- charts/core/src/Echart/utils/index.ts | 1 + .../core/src/Echart/utils/updateUtils.spec.ts | 66 + charts/core/src/Echart/utils/updateUtils.ts | 69 + .../BaseEventMarker/BaseEventMarker.tsx | 8 +- .../BaseEventMarker/BaseEventMarker.types.ts | 1 - .../src/EventMarkers/BaseEventMarker/utils.ts | 2 - charts/core/src/Line/Line.tsx | 10 +- .../core/src/ThresholdLine/ThresholdLine.tsx | 15 +- .../src/ThresholdLine/ThresholdLine.types.ts | 1 - charts/core/src/XAxis/XAxis.tsx | 20 +- charts/core/src/YAxis/YAxis.tsx | 20 +- charts/drag-provider/CHANGELOG.md | 7 + charts/drag-provider/package.json | 8 +- .../src/DragProvider.stories.tsx | 11 + charts/legend/CHANGELOG.md | 6 + charts/legend/package.json | 8 +- charts/series-provider/package.json | 6 +- chat/avatar/CHANGELOG.md | 6 + chat/avatar/package.json | 6 +- chat/chat-disclaimer/CHANGELOG.md | 7 + chat/chat-disclaimer/package.json | 8 +- chat/chat-window/CHANGELOG.md | 7 + chat/chat-window/package.json | 6 +- chat/fixed-chat-window/CHANGELOG.md | 10 + chat/fixed-chat-window/package.json | 8 +- chat/input-bar/CHANGELOG.md | 11 + chat/input-bar/package.json | 6 +- chat/leafygreen-chat-provider/package.json | 4 +- chat/lg-markdown/CHANGELOG.md | 14 + chat/lg-markdown/package.json | 6 +- chat/message-feed/CHANGELOG.md | 17 + chat/message-feed/package.json | 6 +- chat/message-feedback/CHANGELOG.md | 11 + chat/message-feedback/package.json | 8 +- chat/message-prompts/CHANGELOG.md | 6 + chat/message-prompts/package.json | 8 +- chat/message-rating/CHANGELOG.md | 8 + chat/message-rating/package.json | 6 +- chat/message/CHANGELOG.md | 15 + chat/message/package.json | 6 +- chat/rich-links/CHANGELOG.md | 8 + chat/rich-links/package.json | 8 +- chat/title-bar/CHANGELOG.md | 10 + chat/title-bar/package.json | 6 +- package.json | 2 +- packages/a11y/package.json | 6 +- packages/avatar/CHANGELOG.md | 7 + packages/avatar/package.json | 8 +- packages/badge/package.json | 6 +- packages/banner/CHANGELOG.md | 9 + packages/banner/package.json | 8 +- packages/box/package.json | 6 +- packages/button/package.json | 6 +- packages/callout/CHANGELOG.md | 8 + packages/callout/package.json | 8 +- packages/card/package.json | 6 +- packages/checkbox/CHANGELOG.md | 6 + packages/checkbox/package.json | 8 +- packages/chip/CHANGELOG.md | 8 + packages/chip/package.json | 8 +- packages/code/CHANGELOG.md | 19 + packages/code/package.json | 8 +- packages/code/src/languages.ts | 3 + packages/combobox/CHANGELOG.md | 13 + packages/combobox/package.json | 8 +- packages/confirmation-modal/CHANGELOG.md | 11 + packages/confirmation-modal/package.json | 8 +- packages/copyable/CHANGELOG.md | 10 + packages/copyable/package.json | 8 +- packages/date-picker/CHANGELOG.md | 11 + packages/date-picker/package.json | 8 +- packages/date-utils/package.json | 6 +- packages/descendants/package.json | 6 +- packages/drawer/CHANGELOG.md | 11 + packages/drawer/package.json | 8 +- packages/emotion/package.json | 6 +- packages/empty-state/CHANGELOG.md | 7 + packages/empty-state/package.json | 8 +- packages/expandable-card/CHANGELOG.md | 9 + packages/expandable-card/package.json | 8 +- packages/form-field/CHANGELOG.md | 8 + packages/form-field/package.json | 8 +- packages/form-footer/CHANGELOG.md | 9 + packages/form-footer/package.json | 8 +- packages/gallery-indicator/package.json | 6 +- packages/guide-cue/CHANGELOG.md | 11 + packages/guide-cue/package.json | 8 +- packages/hooks/package.json | 6 +- packages/icon-button/CHANGELOG.md | 7 + packages/icon-button/package.json | 8 +- packages/icon/CHANGELOG.md | 6 + packages/icon/package.json | 8 +- packages/icon/src/generated/Streaming.tsx | 39 + packages/icon/src/glyphs/Streaming.svg | 8 + packages/icon/src/glyphs/index.ts | 2 + packages/info-sprinkle/CHANGELOG.md | 8 + packages/info-sprinkle/package.json | 8 +- packages/inline-definition/CHANGELOG.md | 6 + packages/inline-definition/package.json | 8 +- packages/input-option/CHANGELOG.md | 6 + packages/input-option/package.json | 8 +- packages/leafygreen-provider/package.json | 6 +- packages/lib/package.json | 6 +- packages/loading-indicator/CHANGELOG.md | 6 + packages/loading-indicator/package.json | 8 +- packages/logo/package.json | 6 +- packages/marketing-modal/CHANGELOG.md | 8 + packages/marketing-modal/package.json | 8 +- packages/menu/CHANGELOG.md | 10 + packages/menu/package.json | 8 +- packages/modal/CHANGELOG.md | 8 + packages/modal/package.json | 8 +- packages/number-input/CHANGELOG.md | 12 + packages/number-input/package.json | 8 +- packages/ordered-list/CHANGELOG.md | 6 + packages/ordered-list/package.json | 8 +- packages/pagination/CHANGELOG.md | 10 + packages/pagination/package.json | 8 +- packages/palette/package.json | 6 +- packages/password-input/CHANGELOG.md | 10 + packages/password-input/package.json | 8 +- packages/pipeline/CHANGELOG.md | 8 + packages/pipeline/package.json | 8 +- packages/polymorphic/package.json | 6 +- packages/popover/package.json | 6 +- packages/portal/package.json | 6 +- packages/radio-box-group/package.json | 6 +- packages/radio-group/CHANGELOG.md | 6 + packages/radio-group/package.json | 8 +- packages/ripple/package.json | 6 +- packages/search-input/CHANGELOG.md | 10 + packages/search-input/package.json | 8 +- packages/segmented-control/CHANGELOG.md | 8 + packages/segmented-control/package.json | 8 +- packages/select/CHANGELOG.md | 11 + packages/select/package.json | 8 +- packages/side-nav/CHANGELOG.md | 9 + packages/side-nav/package.json | 8 +- packages/skeleton-loader/CHANGELOG.md | 8 + packages/skeleton-loader/package.json | 8 +- packages/split-button/CHANGELOG.md | 9 + packages/split-button/package.json | 8 +- packages/stepper/CHANGELOG.md | 9 + packages/stepper/package.json | 8 +- packages/table/CHANGELOG.md | 10 + packages/table/package.json | 8 +- packages/tabs/CHANGELOG.md | 6 + packages/tabs/package.json | 8 +- packages/text-area/CHANGELOG.md | 9 + packages/text-area/package.json | 8 +- packages/text-input/CHANGELOG.md | 7 + packages/text-input/package.json | 8 +- packages/toast/CHANGELOG.md | 9 + packages/toast/package.json | 8 +- packages/toggle/CHANGELOG.md | 7 + packages/toggle/package.json | 8 +- packages/tokens/package.json | 6 +- packages/tooltip/CHANGELOG.md | 8 + packages/tooltip/package.json | 8 +- packages/typography/CHANGELOG.md | 7 + packages/typography/package.json | 8 +- pnpm-lock.yaml | 1389 +++++++++++++++-- tools/build/README.md | 8 +- tools/build/src/rollup/build-package.ts | 10 +- tools/cli/CHANGELOG.md | 9 + tools/cli/package.json | 3 +- tools/cli/src/index.ts | 13 + tools/cli/tsconfig.json | 3 + tools/codemods/CHANGELOG.md | 6 + tools/codemods/package.json | 4 +- .../src/templates/component/package.json.ts | 6 +- tools/install/src/ALL_PACKAGES.ts | 1 + tools/lint/package.json | 2 +- tools/prompt-kit/CHANGELOG.md | 7 + tools/prompt-kit/README.md | 24 + tools/prompt-kit/package.json | 29 + tools/prompt-kit/src/index.ts | 1 + .../prompt-kit/src/prompts/codeGeneration.md | 62 + .../src/prompts/commitMessageGeneration.md | 18 + .../prompt-kit/src/prompts/testGeneration.md | 42 + tools/prompt-kit/src/settings/index.ts | 1 + .../src/settings/mergePromptsVSCode.ts | 81 + .../src/settings/mergePromptsVSCode.types.ts | 4 + .../src/settings/vscode/settings.json | 17 + tools/prompt-kit/tsconfig.json | 19 + tools/storybook-addon/CHANGELOG.md | 7 + tools/storybook-addon/package.json | 2 +- tools/storybook-decorators/CHANGELOG.md | 6 + tools/storybook-decorators/package.json | 2 +- turbo.json | 6 +- 215 files changed, 3226 insertions(+), 1021 deletions(-) create mode 100644 .changeset/all-lg-build-dev-dep.md create mode 100644 .changeset/charts-oom-fix.md create mode 100644 .changeset/olive-ways-repeat.md delete mode 100644 charts/core/src/Chart/constants.ts delete mode 100644 charts/core/src/Chart/hooks/updateUtils.spec.ts delete mode 100644 charts/core/src/Chart/hooks/updateUtils.ts create mode 100644 charts/core/src/Echart/updateUtils.tsx create mode 100644 charts/core/src/Echart/utils/index.ts create mode 100644 charts/core/src/Echart/utils/updateUtils.spec.ts create mode 100644 charts/core/src/Echart/utils/updateUtils.ts create mode 100644 packages/icon/src/generated/Streaming.tsx create mode 100644 packages/icon/src/glyphs/Streaming.svg create mode 100644 tools/prompt-kit/CHANGELOG.md create mode 100644 tools/prompt-kit/README.md create mode 100644 tools/prompt-kit/package.json create mode 100644 tools/prompt-kit/src/index.ts create mode 100644 tools/prompt-kit/src/prompts/codeGeneration.md create mode 100644 tools/prompt-kit/src/prompts/commitMessageGeneration.md create mode 100644 tools/prompt-kit/src/prompts/testGeneration.md create mode 100644 tools/prompt-kit/src/settings/index.ts create mode 100644 tools/prompt-kit/src/settings/mergePromptsVSCode.ts create mode 100644 tools/prompt-kit/src/settings/mergePromptsVSCode.types.ts create mode 100644 tools/prompt-kit/src/settings/vscode/settings.json create mode 100644 tools/prompt-kit/tsconfig.json diff --git a/.changeset/all-lg-build-dev-dep.md b/.changeset/all-lg-build-dev-dep.md new file mode 100644 index 0000000000..90db392222 --- /dev/null +++ b/.changeset/all-lg-build-dev-dep.md @@ -0,0 +1,93 @@ +--- +'@lg-chat/leafygreen-chat-provider': patch +'@leafygreen-ui/leafygreen-provider': patch +'@leafygreen-ui/confirmation-modal': patch +'@leafygreen-ui/gallery-indicator': patch +'@leafygreen-ui/inline-definition': patch +'@leafygreen-ui/loading-indicator': patch +'@leafygreen-ui/segmented-control': patch +'@leafygreen-ui/expandable-card': patch +'@leafygreen-ui/marketing-modal': patch +'@leafygreen-ui/radio-box-group': patch +'@leafygreen-ui/skeleton-loader': patch +'@leafygreen-ui/password-input': patch +'@lg-charts/series-provider': patch +'@lg-chat/fixed-chat-window': patch +'@leafygreen-ui/info-sprinkle': patch +'@lg-chat/message-feedback': patch +'@leafygreen-ui/input-option': patch +'@leafygreen-ui/number-input': patch +'@leafygreen-ui/ordered-list': patch +'@leafygreen-ui/search-input': patch +'@leafygreen-ui/split-button': patch +'@lg-tools/storybook-utils': patch +'@lg-charts/drag-provider': patch +'@lg-chat/chat-disclaimer': patch +'@lg-chat/message-prompts': patch +'@leafygreen-ui/date-picker': patch +'@leafygreen-ui/descendants': patch +'@leafygreen-ui/empty-state': patch +'@leafygreen-ui/form-footer': patch +'@leafygreen-ui/icon-button': patch +'@leafygreen-ui/polymorphic': patch +'@leafygreen-ui/radio-group': patch +'@lg-tools/test-harnesses': patch +'@lg-chat/message-rating': patch +'@leafygreen-ui/date-utils': patch +'@leafygreen-ui/form-field': patch +'@leafygreen-ui/pagination': patch +'@leafygreen-ui/text-input': patch +'@leafygreen-ui/typography': patch +'@leafygreen-ui/guide-cue': patch +'@leafygreen-ui/text-area': patch +'@lg-charts/chart-card': patch +'@lg-chat/message-feed': patch +'@leafygreen-ui/checkbox': patch +'@leafygreen-ui/combobox': patch +'@leafygreen-ui/copyable': patch +'@leafygreen-ui/pipeline': patch +'@leafygreen-ui/side-nav': patch +'@lg-chat/chat-window': patch +'@lg-chat/lg-markdown': patch +'@leafygreen-ui/callout': patch +'@leafygreen-ui/emotion': patch +'@leafygreen-ui/palette': patch +'@leafygreen-ui/popover': patch +'@leafygreen-ui/stepper': patch +'@leafygreen-ui/tooltip': patch +'@lg-chat/rich-links': patch +'@leafygreen-ui/avatar': patch +'@leafygreen-ui/banner': patch +'@leafygreen-ui/button': patch +'@leafygreen-ui/drawer': patch +'@leafygreen-ui/portal': patch +'@leafygreen-ui/ripple': patch +'@leafygreen-ui/select': patch +'@leafygreen-ui/toggle': patch +'@leafygreen-ui/tokens': patch +'@lg-chat/input-bar': patch +'@lg-chat/title-bar': patch +'@leafygreen-ui/badge': patch +'@leafygreen-ui/hooks': patch +'@leafygreen-ui/modal': patch +'@leafygreen-ui/table': patch +'@leafygreen-ui/toast': patch +'@lg-charts/colors': patch +'@lg-charts/legend': patch +'@leafygreen-ui/a11y': patch +'@leafygreen-ui/card': patch +'@leafygreen-ui/chip': patch +'@leafygreen-ui/code': patch +'@leafygreen-ui/icon': patch +'@leafygreen-ui/logo': patch +'@leafygreen-ui/menu': patch +'@leafygreen-ui/tabs': patch +'@lg-chat/message': patch +'@leafygreen-ui/box': patch +'@leafygreen-ui/lib': patch +'@lg-charts/core': patch +'@lg-chat/avatar': patch +--- + +Adds missing `@lg-tools/` devDependencies. +Updates `build`, `tsc` & `docs` scripts to use `lg-build *` cli diff --git a/.changeset/all-umd-entry-point.md b/.changeset/all-umd-entry-point.md index 7cd444830c..a259b739e5 100644 --- a/.changeset/all-umd-entry-point.md +++ b/.changeset/all-umd-entry-point.md @@ -102,7 +102,6 @@ '@lg-tools/meta': patch '@lg-tools/test': patch '@lg-tools/cli': patch -'lg-scripts': patch --- Updates `main` entry point in package.json to `./dist/umd` diff --git a/.changeset/charts-oom-fix.md b/.changeset/charts-oom-fix.md new file mode 100644 index 0000000000..75c163d4a3 --- /dev/null +++ b/.changeset/charts-oom-fix.md @@ -0,0 +1,5 @@ +--- +'@lg-charts/core': minor +--- + +[LG-5137](https://jira.mongodb.org/browse/LG-5137): refactor option updates and improve memory usage diff --git a/.changeset/olive-ways-repeat.md b/.changeset/olive-ways-repeat.md new file mode 100644 index 0000000000..1b8296dc27 --- /dev/null +++ b/.changeset/olive-ways-repeat.md @@ -0,0 +1,5 @@ +--- +'@lg-tools/build': patch +--- + +Removes direct build warning. Using `lg-build` directly is now the preferred approach diff --git a/.npmrc b/.npmrc index a530ad15f2..7fd44c39bc 100644 --- a/.npmrc +++ b/.npmrc @@ -1,6 +1,5 @@ enable-pre-post-scripts=true public-hoist-pattern[]=@leafygreen-ui/testing-lib -public-hoist-pattern[]=@lg-tools/build public-hoist-pattern[]=@lg-tools/storybook-addon public-hoist-pattern[]=@lg-tools/storybook-utils public-hoist-pattern[]=@storybook/react diff --git a/.vscode/settings.json b/.vscode/settings.json index 901dd15b5f..a5ee68ce65 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,6 +12,23 @@ "eslint.lintTask.enable": true, "eslint.format.enable": true, "eslint.runtime": "node", - "eslint.workingDirectories": ["./"], - "typescript.preferences.importModuleSpecifier": "project-relative" + "eslint.workingDirectories": [ + "./" + ], + "typescript.preferences.importModuleSpecifier": "project-relative", + "github.copilot.chat.codeGeneration.instructions": [ + { + "file": "node_modules/@lg-tools/prompt-kit/src/prompts/codeGeneration.md" + } + ], + "github.copilot.chat.commitMessageGeneration.instructions": [ + { + "file": "node_modules/@lg-tools/prompt-kit/src/prompts/commitMessageGeneration.md" + } + ], + "github.copilot.chat.testGeneration.instructions": [ + { + "file": "node_modules/@lg-tools/prompt-kit/src/prompts/testGeneration.md" + } + ] } diff --git a/STYLEGUIDE.md b/STYLEGUIDE.md index dbbaeeb4dc..5ecbe547bc 100644 --- a/STYLEGUIDE.md +++ b/STYLEGUIDE.md @@ -72,7 +72,7 @@ enum someConstant = { --- -### When creating TS entities, place them at the top of the file, above JS +### When creating TS entities, place them at the top of the file above functional code. Use a separate `*.types.ts` file if multiple types are declared. #### Why @@ -261,7 +261,7 @@ The main issue with strict BEM syntax is that it creates a poor user experience --- -## Variable placement +## Variable Placement ### Avoid inline declaration of static variables when they can be moved to top of file or refactored into new file diff --git a/charts/chart-card/CHANGELOG.md b/charts/chart-card/CHANGELOG.md index f3da85b363..73d0a330c3 100644 --- a/charts/chart-card/CHANGELOG.md +++ b/charts/chart-card/CHANGELOG.md @@ -1,5 +1,14 @@ # @lg-charts/chart-card +## 0.2.5 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/typography@20.1.9 + ## 0.2.4 ### Patch Changes diff --git a/charts/chart-card/package.json b/charts/chart-card/package.json index 39acb9a17b..1cb152169c 100644 --- a/charts/chart-card/package.json +++ b/charts/chart-card/package.json @@ -1,15 +1,15 @@ { "name": "@lg-charts/chart-card", - "version": "0.2.4", + "version": "0.2.5", "description": "lg-charts ChartCard", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/charts/colors/package.json b/charts/colors/package.json index cc6c9e38f0..1062800a6b 100644 --- a/charts/colors/package.json +++ b/charts/colors/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/charts/core/CHANGELOG.md b/charts/core/CHANGELOG.md index 167c8f57a9..b7dcf668ec 100644 --- a/charts/core/CHANGELOG.md +++ b/charts/core/CHANGELOG.md @@ -1,5 +1,12 @@ # @lg-charts/core +## 0.17.4 + +### Patch Changes + +- @lg-charts/chart-card@0.2.5 +- @leafygreen-ui/typography@20.1.9 + ## 0.17.3 ### Patch Changes diff --git a/charts/core/package.json b/charts/core/package.json index bdfd03d1f4..a0be7a7976 100644 --- a/charts/core/package.json +++ b/charts/core/package.json @@ -1,15 +1,15 @@ { "name": "@lg-charts/core", - "version": "0.17.3", + "version": "0.17.4", "description": "lg-charts Core Chart Components", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" @@ -27,7 +27,7 @@ "@lg-charts/colors": "workspace:^", "@lg-charts/series-provider": "workspace:^", "echarts": "^5.5.1", - "lodash.debounce": "^4.0.8" + "lodash": "^4.17.21" }, "peerDependencies": { "@leafygreen-ui/leafygreen-provider": "workspace:^" diff --git a/charts/core/src/Chart.stories.tsx b/charts/core/src/Chart.stories.tsx index c5fad7f124..095f43fa0c 100644 --- a/charts/core/src/Chart.stories.tsx +++ b/charts/core/src/Chart.stories.tsx @@ -33,6 +33,14 @@ export default { component: Chart, parameters: { default: 'LiveExample', + chromatic: { + /** + * For some reason diffs keep getting flagged on non-changes to the canvas. + * The default threshold is .063, so bumping it up to 1 to test. We might + * consider lowering this in the future. + */ + diffThreshold: 1, + }, }, argTypes: { diff --git a/charts/core/src/Chart/config/getDefaultChartOptions.ts b/charts/core/src/Chart/config/getDefaultChartOptions.ts index 26c5909df4..94fe754ac8 100644 --- a/charts/core/src/Chart/config/getDefaultChartOptions.ts +++ b/charts/core/src/Chart/config/getDefaultChartOptions.ts @@ -10,7 +10,6 @@ import { } from '@leafygreen-ui/tokens'; import { ChartOptions } from '../Chart.types'; -import { TOOLBOX_ID, X_AXIS_ID, Y_AXIS_ID } from '../constants'; const commonAxisOptions = { /** @@ -67,20 +66,17 @@ export const getDefaultChartOptions = ( }, xAxis: { - id: X_AXIS_ID, type: 'time', ...commonAxisOptions, }, yAxis: { - id: Y_AXIS_ID, type: 'value', ...commonAxisOptions, }, // Sets up zooming toolbox: { - id: TOOLBOX_ID, feature: { dataZoom: { show: true, diff --git a/charts/core/src/Chart/constants.ts b/charts/core/src/Chart/constants.ts deleted file mode 100644 index 6b6a973ac5..0000000000 --- a/charts/core/src/Chart/constants.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const TOOLBOX_ID = 'toolbox'; -export const X_AXIS_ID = 'x-axis'; -export const Y_AXIS_ID = 'y-axis'; diff --git a/charts/core/src/Chart/hooks/updateUtils.spec.ts b/charts/core/src/Chart/hooks/updateUtils.spec.ts deleted file mode 100644 index 49ef2a98b7..0000000000 --- a/charts/core/src/Chart/hooks/updateUtils.spec.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { ChartOptions } from '../Chart.types'; - -import { - getOptionsToUpdateWithAddedSeries, - getOptionsToUpdateWithRemovedSeries, -} from './updateUtils'; - -describe('@lg-charts/core/Chart/hooks/updateUtils', () => { - test('getOptionsToUpdateWithAddedSeries should return options with an added series', () => { - const currentOptions: Partial = { - series: [{ id: 'series-1' }], - }; - const newSeriesId = 'series-2'; - const data = { id: newSeriesId }; - const updatedOptions = getOptionsToUpdateWithAddedSeries( - currentOptions, - data, - ); - expect(updatedOptions.series).toHaveLength(2); - expect(updatedOptions.series?.[1].id).toBe(newSeriesId); - }); - - test('getOptionsToUpdateWithAddedSeries should return options without an added series if a series with the same id exists', () => { - const currentOptions: Partial = { - series: [{ id: 'series-1' }], - }; - const existingSeriesId = 'series-1'; - const data = { id: existingSeriesId }; - const updatedOptions = getOptionsToUpdateWithAddedSeries( - currentOptions, - data, - ); - expect(updatedOptions.series).toHaveLength(1); - expect(updatedOptions.series?.[0].id).toBe(existingSeriesId); - }); - - test('getOptionsToUpdateWithRemovedSeries should return options with a removed series', () => { - const currentOptions: Partial = { - series: [{ id: 'series-1' }, { id: 'series-2' }], - }; - const seriesId1 = 'series-1'; - const seriesId2 = 'series-2'; - const updatedOptions = getOptionsToUpdateWithRemovedSeries( - currentOptions, - seriesId1, - ); - expect(updatedOptions.series).toHaveLength(1); - expect(updatedOptions.series?.[0].id).toBe(seriesId2); - }); -}); diff --git a/charts/core/src/Chart/hooks/updateUtils.ts b/charts/core/src/Chart/hooks/updateUtils.ts deleted file mode 100644 index 2efce37590..0000000000 --- a/charts/core/src/Chart/hooks/updateUtils.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { ECBasicOption } from 'echarts/types/dist/shared'; - -import { ChartOptions, SeriesOption } from '../Chart.types'; - -export function getOptionsToUpdateWithAddedSeries( - currentOptions: ECBasicOption | undefined, - data: SeriesOption, -): Partial { - const prevSeries = - currentOptions && Array.isArray(currentOptions?.series) - ? currentOptions.series - : []; - - const hasSeriesData = prevSeries.some( - series => series.id && series.id === data.id, - ); - - if (hasSeriesData) { - return { - series: prevSeries, - }; - } - - return { - series: [...prevSeries, data], - }; -} - -export function getOptionsToUpdateWithRemovedSeries( - currentOptions: ECBasicOption | undefined, - id: string, -): Partial { - const prevSeries = - currentOptions && - currentOptions.series && - Array.isArray(currentOptions?.series) - ? currentOptions.series - : []; - - const filteredSeries = prevSeries.filter(series => { - if (!series) return true; - - return series.id && series.id !== id; - }); - - return { - series: filteredSeries, - }; -} diff --git a/charts/core/src/Chart/hooks/useChart.ts b/charts/core/src/Chart/hooks/useChart.ts index 466cae6c18..11cb8fb75c 100644 --- a/charts/core/src/Chart/hooks/useChart.ts +++ b/charts/core/src/Chart/hooks/useChart.ts @@ -1,4 +1,4 @@ -import { useCallback, useEffect, useRef, useState } from 'react'; +import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { useEchart } from '../../Echart'; import { EChartEvents } from '../../Echart'; @@ -14,7 +14,7 @@ export function useChart({ theme, state, }: ChartHookProps): ChartInstance { - const initialOptions = getDefaultChartOptions(theme); + const initialOptions = useMemo(() => getDefaultChartOptions(theme), [theme]); /** * It is necessary for `useEchart` to know when the container exists @@ -23,6 +23,7 @@ export function useChart({ * element only gets populated after render. */ const [container, setContainer] = useState(null); + const echart = useEchart({ container, initialOptions, @@ -42,120 +43,130 @@ export function useChart({ } = echart; useEffect(() => { - if (ready) { - onChartReady(); + if (!ready) { + return; } + onChartReady(); }, [ready, onChartReady]); useEffect(() => { - if (ready) { - if (groupId) { - addToGroup(groupId); - } - - return () => { - removeFromGroup(); - }; + if (!ready || !groupId) { + return; } + + addToGroup(groupId); + + return () => { + removeFromGroup(); + }; }, [ready, groupId, addToGroup, removeFromGroup]); // SETUP AND ENABLE ZOOM useEffect(() => { - if (ready) { - setupZoomSelect({ - xAxis: zoomSelect?.xAxis, - yAxis: zoomSelect?.yAxis, - }); - - if (zoomSelect?.xAxis || zoomSelect?.yAxis) { - function enableZoomOnRender() { - enableZoom(); - /** - * Enabling zoom triggers a render, so once we enable it, we want to - * remove the handler or else there will be an infinite loop of - * render -> enable -> render -> etc. - */ - off('rendered', enableZoomOnRender); - } + if (!ready) { + return; + } - on('rendered', enableZoomOnRender); + setupZoomSelect({ + xAxis: zoomSelect?.xAxis, + yAxis: zoomSelect?.yAxis, + }); + + if (zoomSelect?.xAxis || zoomSelect?.yAxis) { + function enableZoomOnRender() { + enableZoom(); + /** + * Enabling zoom triggers a render, so once we enable it, we want to + * remove the handler or else there will be an infinite loop of + * render -> enable -> render -> etc. + */ + off('rendered', enableZoomOnRender); } + + on('rendered', enableZoomOnRender); } }, [enableZoom, off, on, ready, setupZoomSelect, zoomSelect]); useEffect(() => { - if (ready && onZoomSelect) { - on(EChartEvents.ZoomSelect, zoomEventResponse => { - onZoomSelect(zoomEventResponse); - }); + if (!ready || !onZoomSelect) { + return; } + on(EChartEvents.ZoomSelect, zoomEventResponse => { + onZoomSelect(zoomEventResponse); + }); }, [ready, onZoomSelect, on]); // We want to hide the tooltip when it's hovered over any `EventMarkerPoint` useEffect(() => { - if (ready) { - on('mouseover', e => { - if (e.componentType === 'markPoint') { - hideTooltip(); - on('mousemove', hideTooltip); - } - }); - - // Stop hiding once the mouse leaves the `EventMarkerPoint` - on('mouseout', e => { - if (e.componentType === 'markPoint') { - off('mousemove', hideTooltip); - } - }); + if (!ready) { + return; } + + on('mouseover', e => { + if (e.componentType === 'markPoint') { + hideTooltip(); + on('mousemove', hideTooltip); + } + }); + + // Stop hiding once the mouse leaves the `EventMarkerPoint` + on('mouseout', e => { + if (e.componentType === 'markPoint') { + off('mousemove', hideTooltip); + } + }); }, [echart, hideTooltip, off, on, ready]); const initialRenderRef = useRef(true); const handleResize = useCallback(() => { - if (ready) { - // Skip the first resize event, as it's triggered by the initial render - if (initialRenderRef.current) { - initialRenderRef.current = false; - return; - } + if (!ready) { + return; + } - if (zoomSelect && (zoomSelect.xAxis || zoomSelect.yAxis)) { - /** - * If the chart has been resized, the chart appears to reset zoom, which - * disables it. We need to re-enable it after the resize however, doing so - * immediately doesn't work. To work around this, we listen for the `finished` - * event, which is triggered after the chart has been rendered, and then - * execute the re-enable zoom logic after all tasks on the queue have been - * processed. - * - * TODO(LG-4818): Investigate why this is necessary - */ - function reEnableZoom() { - function reEnableZoomCallback() { - enableZoom(); - off('finished', reEnableZoom); - } - setTimeout(reEnableZoomCallback, 0); - } + // Skip the first resize event, as it's triggered by the initial render + if (initialRenderRef.current) { + initialRenderRef.current = false; + return; + } - on('finished', reEnableZoom); + if (zoomSelect && (zoomSelect.xAxis || zoomSelect.yAxis)) { + /** + * If the chart has been resized, the chart appears to reset zoom, which + * disables it. We need to re-enable it after the resize however, doing so + * immediately doesn't work. To work around this, we listen for the `finished` + * event, which is triggered after the chart has been rendered, and then + * execute the re-enable zoom logic after all tasks on the queue have been + * processed. + * + * TODO(LG-4818): Investigate why this is necessary + */ + function reEnableZoom() { + function reEnableZoomCallback() { + enableZoom(); + off('finished', reEnableZoom); + } + setTimeout(reEnableZoomCallback, 0); } - resize(); + on('finished', reEnableZoom); } + + resize(); }, [enableZoom, off, on, ready, resize, zoomSelect]); useEffect(() => { - if (ready && container) { - const resizeObserver = new ResizeObserver(handleResize); - resizeObserver.observe(container); - - return () => { - resizeObserver.disconnect(); - }; + if (!ready || !container) { + return; } - }, [ready, container, handleResize]); + + const resizeObserver = new ResizeObserver(handleResize); + resizeObserver.observe(container); + + return () => { + resizeObserver.disconnect(); + }; + }, [container, ready, handleResize]); return { ...echart, diff --git a/charts/core/src/Chart/index.ts b/charts/core/src/Chart/index.ts index 1dc8163f2d..365c3249cf 100644 --- a/charts/core/src/Chart/index.ts +++ b/charts/core/src/Chart/index.ts @@ -6,4 +6,3 @@ export { type SeriesOption, type ZoomSelectionEvent, } from './Chart.types'; -export { TOOLBOX_ID, X_AXIS_ID, Y_AXIS_ID } from './constants'; diff --git a/charts/core/src/ChartGrid/ChartGrid.tsx b/charts/core/src/ChartGrid/ChartGrid.tsx index ac2b6c47db..bf68f4dd41 100644 --- a/charts/core/src/ChartGrid/ChartGrid.tsx +++ b/charts/core/src/ChartGrid/ChartGrid.tsx @@ -3,7 +3,7 @@ import { useEffect } from 'react'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; import { color, InteractionState, Variant } from '@leafygreen-ui/tokens'; -import { ChartOptions, X_AXIS_ID, Y_AXIS_ID } from '../Chart'; +import { ChartOptions } from '../Chart'; import { useChartContext } from '../ChartContext'; import { ChartGridProps } from './ChartGrid.types'; @@ -37,26 +37,21 @@ export function ChartGrid({ }, }); updatedOptions.xAxis = { - id: X_AXIS_ID, ...getUpdatedLineOptions(!!vertical), }; updatedOptions.yAxis = { - id: Y_AXIS_ID, ...getUpdatedLineOptions(!!horizontal), }; - updateOptions(updatedOptions, ['xAxis', 'yAxis']); + updateOptions(updatedOptions); return () => { /** * Hides the grid lines when the component is unmounted. */ - updateOptions( - { - xAxis: { id: X_AXIS_ID, ...unsetGridOptions }, - yAxis: { id: Y_AXIS_ID, ...unsetGridOptions }, - }, - ['xAxis', 'yAxis'], - ); + updateOptions({ + xAxis: unsetGridOptions, + yAxis: unsetGridOptions, + }); }; }, [horizontal, ready, theme, updateOptions, vertical]); diff --git a/charts/core/src/ChartTooltip/ChartTooltip.tsx b/charts/core/src/ChartTooltip/ChartTooltip.tsx index 18875458f4..803a45f981 100644 --- a/charts/core/src/ChartTooltip/ChartTooltip.tsx +++ b/charts/core/src/ChartTooltip/ChartTooltip.tsx @@ -1,7 +1,6 @@ import React, { useEffect } from 'react'; import { renderToString } from 'react-dom/server'; -import { useIdAllocator } from '@leafygreen-ui/hooks'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; import { color, InteractionState, Variant } from '@leafygreen-ui/tokens'; @@ -23,70 +22,59 @@ export function ChartTooltip({ } = useChartContext(); const { theme } = useDarkMode(); - const id = useIdAllocator({ prefix: 'tooltip' }); - useEffect(() => { if (!ready) return; - updateOptions( - { - tooltip: { - id, - // Still adding background color to prevent peak of color at corners - backgroundColor: - color[theme].background[Variant.InversePrimary][ - InteractionState.Default - ], - borderWidth: 0, - enterable: false, - confine: true, - appendTo: 'body', - showDelay: 0, - hideDelay: 0, - transitionDuration: 0, - padding: 0, - /** - * Since the formatter trigger is set to 'axis', the seriesData will be - * an array of objects. Additionally, it should contain axis related - * data. - * See https://echarts.apache.org/en/option.html#tooltip.formatter - * for more info. - */ - formatter: (seriesData: Array) => { - const seriesDataArr = seriesData; + updateOptions({ + tooltip: { + // Still adding background color to prevent peak of color at corners + backgroundColor: + color[theme].background[Variant.InversePrimary][ + InteractionState.Default + ], + borderWidth: 0, + enterable: false, + confine: true, + appendTo: 'body', + showDelay: 0, + hideDelay: 0, + transitionDuration: 0, + padding: 0, + /** + * Since the formatter trigger is set to 'axis', the seriesData will be + * an array of objects. Additionally, it should contain axis related + * data. + * See https://echarts.apache.org/en/option.html#tooltip.formatter + * for more info. + */ + formatter: (seriesData: Array) => { + const seriesDataArr = seriesData; - return renderToString( - , - ); - }, + return renderToString( + , + ); }, }, - ['tooltip'], - ); + }); return () => { - updateOptions( - { - tooltip: { - id, - axisPointer: { - z: 0, // Prevents dashed emphasis line from being rendered on top of mark lines and labels - }, - show: true, - trigger: 'axis', - formatter: () => '', + updateOptions({ + tooltip: { + axisPointer: { + z: 0, // Prevents dashed emphasis line from being rendered on top of mark lines and labels }, + show: true, + trigger: 'axis', + formatter: () => '', }, - ['tooltip'], - ); + }); }; }, [ - id, ready, seriesNameFormatter, seriesValueFormatter, diff --git a/charts/core/src/Echart/Echart.types.ts b/charts/core/src/Echart/Echart.types.ts index f0ac19ce8a..4b2d9d51bf 100644 --- a/charts/core/src/Echart/Echart.types.ts +++ b/charts/core/src/Echart/Echart.types.ts @@ -108,6 +108,7 @@ interface EChartsEventHandlerType { export interface EChartsInstance { _getEChartsInstance: () => EChartsType | null; + _getOptions: () => Partial; addSeries: (series: EChartSeriesOption) => void; addToGroup: (groupId: string) => void; disableZoom: () => void; @@ -118,13 +119,10 @@ export interface EChartsInstance { on: EChartsEventHandlerType; ready: boolean; removeFromGroup: () => void; - removeSeries: (id: string) => void; + removeSeries: (name: string) => void; resize: () => void; setupZoomSelect: (props: EChartSetupZoomSelectProps) => void; - updateOptions: ( - options: Omit, 'series'>, - replaceMerge?: Array, - ) => void; + updateOptions: (options: Omit, 'series'>) => void; } export interface EChartHookProps { diff --git a/charts/core/src/Echart/updateUtils.tsx b/charts/core/src/Echart/updateUtils.tsx new file mode 100644 index 0000000000..1c7322d9d6 --- /dev/null +++ b/charts/core/src/Echart/updateUtils.tsx @@ -0,0 +1,69 @@ +import { EChartOptions, EChartSeriesOption } from './Echart.types'; + +export function addSeries( + currentOptions: EChartOptions, + data: EChartSeriesOption, +): Partial { + const updatedOptions = { ...currentOptions }; + + if (!updatedOptions.series) { + updatedOptions.series = [data]; + } else { + if (!updatedOptions.series.some(series => series.name === data.name)) { + updatedOptions.series.push(data); + } + } + + return updatedOptions; +} + +export function removeSeries( + currentOptions: EChartOptions, + name: string, +): Partial { + const updatedOptions = { ...currentOptions }; + + if (updatedOptions.series) { + updatedOptions.series = [ + ...updatedOptions.series.filter(series => series.name !== name), + ]; + } + + return updatedOptions; +} + +/** + * Method to recursively merge two objects. It should update keys if they + * already exist and add them if they don't. However, it shouldn't completely + * overwrite a key it's an already existing object. + * + * They goal is to allow for partial updates to the chart options object. + */ +function recursiveMerge( + target: { [key: string]: any }, + source: { [key: string]: any }, +) { + const updatedObj = { ...target }; + + for (const key in source) { + if ( + typeof source[key] === 'object' && + typeof updatedObj[key] === 'object' + ) { + // Recursively update nested objects + updatedObj[key] = recursiveMerge(updatedObj[key], source[key]); + } else { + // Update or add the value for the key + updatedObj[key] = source[key]; + } + } + + return updatedObj; +} + +export function updateOptions( + currentOptions: EChartOptions, + options: Partial, +): Partial { + return recursiveMerge(currentOptions, options); +} diff --git a/charts/core/src/Echart/useEchart.spec.ts b/charts/core/src/Echart/useEchart.spec.ts index 31a8a83605..399876f472 100644 --- a/charts/core/src/Echart/useEchart.spec.ts +++ b/charts/core/src/Echart/useEchart.spec.ts @@ -8,14 +8,16 @@ import { useEchart } from './useEchart'; // Mock echarts instance creation with all required methods const mockEchartsInstance = { - getOption: jest.fn(), - setOption: jest.fn(), - dispose: jest.fn(), - resize: jest.fn(), - on: jest.fn(), - off: jest.fn(), dispatchAction: jest.fn(), + dispose: jest.fn(), + getDom: jest.fn(), + getOption: jest.fn(), group: null, + isDisposed: jest.fn(), + off: jest.fn(), + on: jest.fn(), + resize: jest.fn(), + setOption: jest.fn(), }; // Mock implementations @@ -70,7 +72,6 @@ describe('@lg-echarts/core/hooks/useChart', () => { test('should return a chart instance with the correct properties', async () => { const { result } = await setupHook(); - expect(result.current).toHaveProperty('_getEChartsInstance'); expect(result.current).toHaveProperty('addSeries'); expect(result.current).toHaveProperty('addToGroup'); expect(result.current).toHaveProperty('disableZoom'); @@ -87,11 +88,10 @@ describe('@lg-echarts/core/hooks/useChart', () => { expect(result.current).toHaveProperty('updateOptions'); }); - test('should properly update echarts instance on addSeries call', async () => { + test('should properly update options state on addSeries call', async () => { const { result } = await setupHook(); const newSeries: SeriesOption = { - id: 'series-1', name: 'test-series', data: [[1, 2]], type: 'line', @@ -102,30 +102,15 @@ describe('@lg-echarts/core/hooks/useChart', () => { await Promise.resolve(); }); - const calls = (result.current._getEChartsInstance()?.setOption as jest.Mock) - .mock.calls; - - const calledWithExpectedArgs = calls.some(([option, config]) => { - const series = option?.series; - return ( - Array.isArray(series) && - series.some(item => - expect.objectContaining(newSeries).asymmetricMatch(item), - ) && - expect - .objectContaining({ replaceMerge: ['series'] }) - .asymmetricMatch(config) - ); - }); - - expect(calledWithExpectedArgs).toBe(true); + expect(result.current._getOptions().series).toContainEqual( + expect.objectContaining(newSeries), + ); }); - test('should properly update echarts instance on removeSeries call', async () => { + test('should properly update options state on removeSeries call', async () => { const { result } = await setupHook(); const series: SeriesOption = { - id: 'series-1', name: 'test-series', data: [[1, 2]], type: 'line', @@ -133,30 +118,16 @@ describe('@lg-echarts/core/hooks/useChart', () => { await act(async () => { result.current.addSeries(series); - result.current.removeSeries('series-1'); + result.current.removeSeries('test-series'); await Promise.resolve(); }); - const calls = (result.current._getEChartsInstance()?.setOption as jest.Mock) - .mock.calls; - - const calledWithExpectedArgs = calls.some(([option, config]) => { - const series = option?.series; - return ( - Array.isArray(series) && - series.some(item => - expect.not.objectContaining(series).asymmetricMatch(item), - ) && - expect - .objectContaining({ replaceMerge: ['series'] }) - .asymmetricMatch(config) - ); - }); - - expect(calledWithExpectedArgs).toBe(true); + expect(result.current._getOptions().series).not.toContainEqual( + expect.objectContaining(series), + ); }); - test('should properly update echarts instance on updateOptions call', async () => { + test('should properly update options state on updateOptions call', async () => { const { result } = await setupHook(); const newOptions = { @@ -170,16 +141,9 @@ describe('@lg-echarts/core/hooks/useChart', () => { await Promise.resolve(); }); - const calls = (result.current._getEChartsInstance()?.setOption as jest.Mock) - .mock.calls; - - const calledWithExpectedArgs = calls.some(([option]) => { - return expect - .objectContaining(newOptions.grid) - .asymmetricMatch(option?.grid); - }); - - expect(calledWithExpectedArgs).toBe(true); + expect(result.current._getOptions().grid).toEqual( + expect.objectContaining(newOptions.grid), + ); }); test('should add event handler on call of `on`', async () => { diff --git a/charts/core/src/Echart/useEchart.ts b/charts/core/src/Echart/useEchart.ts index 801dff653f..d7152e11bf 100644 --- a/charts/core/src/Echart/useEchart.ts +++ b/charts/core/src/Echart/useEchart.ts @@ -1,9 +1,9 @@ import { useCallback, useEffect, useRef, useState } from 'react'; import { colors } from '@lg-charts/colors'; import type { EChartsType } from 'echarts/core'; +import isEqual from 'lodash/isEqual'; -import { TOOLBOX_ID } from '../Chart'; -import * as updateUtils from '../Chart/hooks/updateUtils'; +import { usePrevious } from '@leafygreen-ui/hooks'; import { EChartEvents, @@ -13,6 +13,7 @@ import { type EChartZoomSelectionEvent, } from './Echart.types'; import { initializeEcharts } from './initializeEcharts'; +import * as utils from './utils'; /** * Wrapper around the ECharts library. Instantiates an ECharts instance. @@ -26,142 +27,93 @@ export function useEchart({ }: EChartHookProps): EChartsInstance { const echartsCoreRef = useRef(null); const echartsInstanceRef = useRef(null); + const initialOptionsRef = useRef(initialOptions); + const [options, setOptions] = useState( + initialOptionsRef.current || {}, + ); + const previousOptions = usePrevious(options); const [error, setError] = useState(null); const [ready, setReady] = useState(false); // Keep track of active handlers const activeHandlers = useRef(new Map()); - const withInstanceCheck = ) => any>(fn: T) => { - return (...args: Parameters): ReturnType => { - const echartsInstance = getEchartsInstance(); - - if (!echartsInstance) { - console.error('Echart instance not initialized'); - return undefined as ReturnType; - } - - return fn(...args); - }; - }; - - const getEchartsInstance = useCallback(() => { - const echartsInstance = echartsInstanceRef.current; - return echartsInstance; - }, []); - - const getEchartOptions = withInstanceCheck(() => { - const echartsInstance = echartsInstanceRef.current; - - if (!echartsInstance) { - return; - } - - return echartsInstance.getOption(); - }); - - const setEchartOptions = withInstanceCheck( - (options: Partial, replaceMerge?: Array) => { - const echartsInstance = echartsInstanceRef.current; - - if (!echartsInstance) { + const addSeries: EChartsInstance['addSeries'] = useCallback( + data => { + if (!echartsInstanceRef.current) { return; } - /** - * ECharts has a concept of "component main types" which are the properties under the root option tree - * in the configuration item manual: https://echarts.apache.org/en/option.html#title - * - * e.g. 'series', 'xAxis', 'tooltip', etc. - * - * The `replaceMerge` option is used to to achieve targeted adding, updating, and removing of the options - * in a given ECharts instance. - * - * API docs: https://echarts.apache.org/en/api.html#echartsInstance.setOption - * */ - echartsInstance.setOption( - options, - replaceMerge - ? { - replaceMerge, - } - : undefined, - ); + setOptions(prevOptions => { + const updatedOptions = utils.addSeries(prevOptions, data); + return updatedOptions; + }); }, + [setOptions], ); - const addSeries: EChartsInstance['addSeries'] = withInstanceCheck(data => { - const currentOptions = getEchartOptions(); - const newSeriesOptions = updateUtils.getOptionsToUpdateWithAddedSeries( - currentOptions, - data, - ); - setEchartOptions(newSeriesOptions, ['series']); - }); - - const removeSeries: EChartsInstance['removeSeries'] = withInstanceCheck( - id => { - const currentOptions = getEchartOptions(); - const newSeriesOptions = updateUtils.getOptionsToUpdateWithRemovedSeries( - currentOptions, - id, - ); - setEchartOptions(newSeriesOptions, ['series']); - }, - ); + const removeSeries: EChartsInstance['removeSeries'] = useCallback( + name => { + if (!echartsInstanceRef.current) { + return; + } - const updateOptions: EChartsInstance['updateOptions'] = withInstanceCheck( - (options, replaceMerge) => { - const mergeableOptions = { - ...options, - }; - setEchartOptions(mergeableOptions, replaceMerge); + setOptions(prevOptions => { + const updatedOptions = utils.removeSeries(prevOptions, name); + return updatedOptions; + }); }, + [setOptions], ); - const updateDataZoom: EChartsInstance['updateOptions'] = withInstanceCheck( - ({ xAxisIndex, yAxisIndex }) => { - const mergeableOptions = { - toolbox: { - id: TOOLBOX_ID, - feature: { - dataZoom: { - xAxisIndex, - yAxisIndex, - }, - }, - }, - }; - setEchartOptions(mergeableOptions, ['toolbox']); + const updateOptions: EChartsInstance['updateOptions'] = useCallback( + options => { + if (!echartsInstanceRef.current) { + return; + } + + setOptions(prevOptions => { + const updatedOptions = utils.updateOptions(prevOptions, options); + return updatedOptions; + }); }, + [setOptions], ); - const addToGroup: EChartsInstance['addToGroup'] = withInstanceCheck( + const addToGroup: EChartsInstance['addToGroup'] = useCallback( (groupId: string) => { + const echartsInstance = echartsInstanceRef.current; + const isInstanceAlreadyGrouped = echartsInstance?.group === groupId; + // echartsCoreRef.current should exist if instance does, but checking for extra safety - if (!echartsCoreRef.current) { + if ( + !echartsCoreRef.current || + !echartsInstance || + isInstanceAlreadyGrouped + ) { return; } - const echartsInstance = getEchartsInstance(); - - if ((echartsInstance as EChartsType).group !== groupId) { - (echartsInstance as EChartsType).group = groupId; - echartsCoreRef.current.connect(groupId); - } + echartsInstance.group = groupId; + echartsCoreRef.current.connect(groupId); }, + [], ); - const removeFromGroup: EChartsInstance['removeFromGroup'] = withInstanceCheck( - () => { - const echartsInstance = getEchartsInstance(); - (echartsInstance as EChartsType).group = ''; - }, - ); + const removeFromGroup: EChartsInstance['removeFromGroup'] = + useCallback(() => { + const echartsInstance = echartsInstanceRef.current; + + if (!echartsInstance) { + return; + } - const clearDataZoom = withInstanceCheck((params: any) => { - const echartsInstance = getEchartsInstance(); + echartsInstance.group = ''; + }, []); + + const clearDataZoom = useCallback((params: any) => { + const echartsInstance = echartsInstanceRef.current; /** * If start is not 0% or end is not 100%, the 'dataZoom' event was @@ -170,55 +122,62 @@ export function useEchart({ */ const isZoomed = params?.start !== 0 || params?.end !== 100; - if (isZoomed) { - echartsInstance?.dispatchAction({ - type: 'dataZoom', - start: 0, // percentage of starting position - end: 100, // percentage of ending position - }); + if (!isZoomed) { + return; } - }); - const enableZoom = withInstanceCheck(() => { - const echartsInstance = getEchartsInstance(); + echartsInstance?.dispatchAction({ + type: 'dataZoom', + start: 0, // percentage of starting position + end: 100, // percentage of ending position + }); + }, []); + const enableZoom = useCallback(() => { + const echartsInstance = echartsInstanceRef.current; echartsInstance?.dispatchAction({ type: 'takeGlobalCursor', key: 'dataZoomSelect', dataZoomSelectActive: true, }); - }); - - const disableZoom = withInstanceCheck(() => { - const echartsInstance = getEchartsInstance(); + }, []); + const disableZoom = useCallback(() => { + const echartsInstance = echartsInstanceRef.current; echartsInstance?.dispatchAction({ type: 'takeGlobalCursor', key: 'dataZoomSelect', dataZoomSelectActive: false, }); - }); + }, []); - const setupZoomSelect: EChartsInstance['setupZoomSelect'] = withInstanceCheck( + const setupZoomSelect: EChartsInstance['setupZoomSelect'] = useCallback( ({ xAxis, yAxis }) => { - const echartsInstance = getEchartsInstance(); + const echartsInstance = echartsInstanceRef.current; // `0` index enables zoom on that index, `'none'` disables zoom on that index const xAxisIndex: number | string = xAxis ? 0 : 'none'; const yAxisIndex: number | string = yAxis ? 0 : 'none'; - updateDataZoom({ - xAxisIndex, - yAxisIndex, + updateOptions({ + toolbox: { + feature: { + dataZoom: { + xAxisIndex, + yAxisIndex, + }, + }, + }, }); echartsInstance?.off('dataZoom', clearDataZoom); // prevent adding dupes echartsInstance?.on('dataZoom', clearDataZoom); }, + [clearDataZoom, updateOptions], ); - const off: EChartsInstance['off'] = withInstanceCheck((action, callback) => { - const echartsInstance = getEchartsInstance(); + const off: EChartsInstance['off'] = useCallback((action, callback) => { + const echartsInstance = echartsInstanceRef.current; switch (action) { case EChartEvents.ZoomSelect: { @@ -233,10 +192,10 @@ export function useEchart({ activeHandlers.current.delete(`${action}-${callback.toString()}`); } } - }); + }, []); - const on: EChartsInstance['on'] = withInstanceCheck((action, callback) => { - const echartsInstance = getEchartsInstance(); + const on: EChartsInstance['on'] = useCallback((action, callback) => { + const echartsInstance = echartsInstanceRef.current; // Create a unique key for this handler const handlerKey = `${action}-${callback.toString()}`; @@ -287,22 +246,22 @@ export function useEchart({ default: { activeHandlers.current.set(handlerKey, callback); - echartsInstance?.on(action, callback); + echartsInstance?.on(action, callback as (...args: any) => void); } } - }); + }, []); - const hideTooltip = withInstanceCheck(() => { - const echartsInstance = getEchartsInstance(); + const hideTooltip = useCallback(() => { + const echartsInstance = echartsInstanceRef.current; echartsInstance?.dispatchAction({ type: 'hideTip', }); - }); + }, []); - const resize = withInstanceCheck(() => { - const echartsInstance = getEchartsInstance(); + const resize = useCallback(() => { + const echartsInstance = echartsInstanceRef.current; echartsInstance?.resize(); - }); + }, []); /** * CHART INITIALIZATION --------------------- @@ -311,20 +270,25 @@ export function useEchart({ */ useEffect(() => { const activeHandlersMap = activeHandlers.current; - const echartsInstance = getEchartsInstance(); setError(null); - if (!container || !!echartsInstance) return; + const echartsInstance = echartsInstanceRef.current; + const doesInstanceMatchContainer = echartsInstance + ? echartsInstance.getDom() === container + : false; + const isInstanceDisposed = echartsInstance + ? echartsInstance.isDisposed() + : false; + + if (!container || (doesInstanceMatchContainer && !isInstanceDisposed)) { + return; + } initializeEcharts() .then(echartsCore => { echartsCoreRef.current = echartsCore; - if (echartsInstance) { - return; - } - // Init an echart instance const newChart = echartsCoreRef.current.init(container, null, { devicePixelRatio: window.devicePixelRatio || 1, @@ -332,7 +296,7 @@ export function useEchart({ }); // Set the initial options on the instance - newChart.setOption(initialOptions || {}); + newChart.setOption(initialOptionsRef.current || {}); // Set the echarts instance ref echartsInstanceRef.current = newChart; @@ -350,13 +314,19 @@ export function useEchart({ }); return () => { - activeHandlersMap.clear(); - - if (echartsInstance) { - (echartsInstance as EChartsType).dispose(); + if ( + !echartsInstance || + isInstanceDisposed || + !doesInstanceMatchContainer + ) { + return; } + + activeHandlersMap.clear(); + echartsInstance.dispose(); + echartsInstanceRef.current = null; }; - }, [container, getEchartsInstance, initialOptions]); + }, [container]); /** * SETTING THEME --------------------- @@ -366,18 +336,47 @@ export function useEchart({ * for updating the theme if the theme changes. */ useEffect(() => { - const echartsInstance = getEchartsInstance(); + if (!ready) { + return; + } + + const echartsInstance = echartsInstanceRef.current; + + if (!echartsInstance) { + return; + } - if (echartsInstance) { - const mergeableOptions = { + setOptions(prevOptions => { + const updatedOptions = { + ...prevOptions, color: colors[theme], }; - setEchartOptions(mergeableOptions); + return updatedOptions; + }); + }, [ready, theme]); + + /** + * + */ + useEffect(() => { + const echartsInstance = echartsInstanceRef.current; + + if (!echartsInstance) { + return; } - }, [getEchartsInstance, setEchartOptions, theme]); + + if (isEqual(options, previousOptions)) { + return; + } + + echartsInstance.setOption(options, { + notMerge: true, + }); + }, [options, previousOptions]); return { - _getEChartsInstance: getEchartsInstance, + _getEChartsInstance: () => echartsInstanceRef.current, + _getOptions: () => options, addSeries, addToGroup, disableZoom, diff --git a/charts/core/src/Echart/utils/index.ts b/charts/core/src/Echart/utils/index.ts new file mode 100644 index 0000000000..274c13b96c --- /dev/null +++ b/charts/core/src/Echart/utils/index.ts @@ -0,0 +1 @@ +export * from './updateUtils'; diff --git a/charts/core/src/Echart/utils/updateUtils.spec.ts b/charts/core/src/Echart/utils/updateUtils.spec.ts new file mode 100644 index 0000000000..b5594ad06e --- /dev/null +++ b/charts/core/src/Echart/utils/updateUtils.spec.ts @@ -0,0 +1,66 @@ +import { EChartOptions } from '../Echart.types'; + +import { addSeries, removeSeries, updateOptions } from './updateUtils'; + +describe('@lg-charts/core/Chart/hooks/updateUtils', () => { + test('addSeries should add a series to the chart options', () => { + const currentOptions: Partial = { + series: [{ name: 'series1' }], + }; + const newSeriesName = 'series2'; + const data = { name: newSeriesName }; + const updatedOptions = addSeries(currentOptions, data); + expect(updatedOptions.series).toHaveLength(2); + expect(updatedOptions.series?.[1].name).toBe(newSeriesName); + }); + + test('addSeries should not add a series if a chart with the same name exists', () => { + const currentOptions: Partial = { + series: [{ name: 'series1' }], + }; + const newSeriesName = 'series1'; + const data = { name: newSeriesName }; + const updatedOptions = addSeries(currentOptions, data); + expect(updatedOptions.series).toHaveLength(1); + expect(updatedOptions.series?.[0].name).toBe(newSeriesName); + }); + + test('removeSeries should remove a series from the chart options', () => { + const currentOptions: Partial = { + series: [{ name: 'series1' }, { name: 'series2' }], + }; + const seriesName1 = 'series1'; + const seriesName2 = 'series2'; + const updatedOptions = removeSeries(currentOptions, seriesName1); + expect(updatedOptions.series).toHaveLength(1); + expect(updatedOptions.series?.[0].name).toBe(seriesName2); + }); + + /** + * Tests that option updates don't overwrite the entire chart options object. + */ + test('updateOptions should merge chart options non-destructively', () => { + const currentOptions: Partial = { + xAxis: { + show: true, + splitLine: { + show: true, + }, + }, + }; + const updatedOptions = updateOptions(currentOptions, { + xAxis: { + show: false, // This should only update the show property and not other properties + }, + grid: { + show: true, + }, + }); + // @ts-ignore: Property 'show' does not exist on type 'Arrayable'. + expect(updatedOptions?.xAxis?.show).toBe(false); + // @ts-ignore: Property 'show' does not exist on type 'Arrayable'. + expect(updatedOptions?.xAxis?.splitLine?.show).toBe(true); + // @ts-ignore: Property 'show' does not exist on type 'Arrayable'. + expect(updatedOptions?.grid?.show).toBe(true); + }); +}); diff --git a/charts/core/src/Echart/utils/updateUtils.ts b/charts/core/src/Echart/utils/updateUtils.ts new file mode 100644 index 0000000000..0f0917ed0c --- /dev/null +++ b/charts/core/src/Echart/utils/updateUtils.ts @@ -0,0 +1,69 @@ +import { EChartOptions, EChartSeriesOption } from '../Echart.types'; + +export function addSeries( + currentOptions: EChartOptions, + data: EChartSeriesOption, +): Partial { + const updatedOptions = { ...currentOptions }; + + if (!updatedOptions.series) { + updatedOptions.series = [data]; + } else { + if (!updatedOptions.series.some(series => series.name === data.name)) { + updatedOptions.series.push(data); + } + } + + return updatedOptions; +} + +export function removeSeries( + currentOptions: EChartOptions, + name: string, +): Partial { + const updatedOptions = { ...currentOptions }; + + if (updatedOptions.series) { + updatedOptions.series = [ + ...updatedOptions.series.filter(series => series.name !== name), + ]; + } + + return updatedOptions; +} + +/** + * Method to recursively merge two objects. It should update keys if they + * already exist and add them if they don't. However, it shouldn't completely + * overwrite a key it's an already existing object. + * + * They goal is to allow for partial updates to the chart options object. + */ +function recursiveMerge( + target: { [key: string]: any }, + source: { [key: string]: any }, +) { + const updatedObj = { ...target }; + + for (const key in source) { + if ( + typeof source[key] === 'object' && + typeof updatedObj[key] === 'object' + ) { + // Recursively update nested objects + updatedObj[key] = recursiveMerge(updatedObj[key], source[key]); + } else { + // Update or add the value for the key + updatedObj[key] = source[key]; + } + } + + return updatedObj; +} + +export function updateOptions( + currentOptions: EChartOptions, + options: Partial, +): Partial { + return recursiveMerge(currentOptions, options); +} diff --git a/charts/core/src/EventMarkers/BaseEventMarker/BaseEventMarker.tsx b/charts/core/src/EventMarkers/BaseEventMarker/BaseEventMarker.tsx index 7b9d694414..84b4a4bc6a 100644 --- a/charts/core/src/EventMarkers/BaseEventMarker/BaseEventMarker.tsx +++ b/charts/core/src/EventMarkers/BaseEventMarker/BaseEventMarker.tsx @@ -1,6 +1,5 @@ import { useEffect } from 'react'; -import { useIdAllocator } from '@leafygreen-ui/hooks'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; import { useChartContext } from '../../ChartContext'; @@ -24,8 +23,6 @@ export function BaseEventMarker({ } = useChartContext(); const { theme } = useDarkMode(); - const id = useIdAllocator({ prefix: 'event-marker' }); - const name = type === 'line' ? `event-marker-${position}` @@ -41,15 +38,14 @@ export function BaseEventMarker({ * series in something like a ChartTooltip. */ addSeries( - getMarkConfig({ id, name, theme, label, message, level, position, type }), + getMarkConfig({ name, theme, label, message, level, position, type }), ); return () => { - removeSeries(id); + removeSeries(name); }; }, [ addSeries, - id, label, level, message, diff --git a/charts/core/src/EventMarkers/BaseEventMarker/BaseEventMarker.types.ts b/charts/core/src/EventMarkers/BaseEventMarker/BaseEventMarker.types.ts index 16ee5b787f..e315fa5424 100644 --- a/charts/core/src/EventMarkers/BaseEventMarker/BaseEventMarker.types.ts +++ b/charts/core/src/EventMarkers/BaseEventMarker/BaseEventMarker.types.ts @@ -25,7 +25,6 @@ export interface BaseEventMarkerPointProps extends BaseEventMarkerProps { } export interface GetMarkConfigProps extends BaseEventMarkerProps { - id: string; name: string; theme: Theme; } diff --git a/charts/core/src/EventMarkers/BaseEventMarker/utils.ts b/charts/core/src/EventMarkers/BaseEventMarker/utils.ts index 0cbdcfda07..cafd1c2b2c 100644 --- a/charts/core/src/EventMarkers/BaseEventMarker/utils.ts +++ b/charts/core/src/EventMarkers/BaseEventMarker/utils.ts @@ -14,7 +14,6 @@ import { infoIcon, warningIcon } from '../iconsSvgPaths'; import { EventLevel, GetMarkConfigProps } from './BaseEventMarker.types'; export function getMarkConfig({ - id, name, theme, label, @@ -52,7 +51,6 @@ export function getMarkConfig({ const commonConfig = { animation: false, - id, name, type: 'line', // Requires a type even though it's not an actual series }; diff --git a/charts/core/src/Line/Line.tsx b/charts/core/src/Line/Line.tsx index f5a9d51016..0e87e919fe 100644 --- a/charts/core/src/Line/Line.tsx +++ b/charts/core/src/Line/Line.tsx @@ -2,7 +2,6 @@ import { useEffect } from 'react'; import { colors } from '@lg-charts/colors'; import { useSeriesContext } from '@lg-charts/series-provider'; -import { useIdAllocator } from '@leafygreen-ui/hooks'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; import { useChartContext } from '../ChartContext'; @@ -17,8 +16,6 @@ export function Line({ name, data }: LineProps) { } = useChartContext(); const { getSeriesIndex, isChecked } = useSeriesContext(); - const id = useIdAllocator({ prefix: 'line' }); - const themedColors = colors[theme]; const colorIndex = getSeriesIndex(name) % themedColors.length; // loop through colors if more lines than available colors const color = themedColors[colorIndex]; @@ -31,7 +28,6 @@ export function Line({ name, data }: LineProps) { if (isVisible) { addSeries({ ...defaultLineOptions, - id, name, data, lineStyle: { @@ -44,7 +40,7 @@ export function Line({ name, data }: LineProps) { }, }); } else { - removeSeries(id); + removeSeries(name); } return () => { @@ -52,9 +48,9 @@ export function Line({ name, data }: LineProps) { * Remove the series when the component unmounts to make sure the series * is removed when a `Line` is hidden. */ - removeSeries(id); + removeSeries(name); }; - }, [addSeries, color, data, id, isVisible, name, ready, removeSeries, theme]); + }, [addSeries, color, data, isVisible, name, ready, removeSeries, theme]); return null; } diff --git a/charts/core/src/ThresholdLine/ThresholdLine.tsx b/charts/core/src/ThresholdLine/ThresholdLine.tsx index 180a5c5439..7e34b499fe 100644 --- a/charts/core/src/ThresholdLine/ThresholdLine.tsx +++ b/charts/core/src/ThresholdLine/ThresholdLine.tsx @@ -1,6 +1,5 @@ import { useEffect } from 'react'; -import { useIdAllocator } from '@leafygreen-ui/hooks'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; import { borderRadius, @@ -22,7 +21,6 @@ import { } from './ThresholdLine.types'; function getThresholdLineConfig({ - id, name, position, theme, @@ -30,7 +28,6 @@ function getThresholdLineConfig({ value, }: GetThresholdLineConfig): SeriesOption { return { - id, name, type: 'line', // Requires a type even though it's not an actual series markLine: { @@ -100,10 +97,6 @@ export function ThresholdLine({ position, label, value }: ThresholdLineProps) { } = useChartContext(); const { theme } = useDarkMode(); - const id = useIdAllocator({ - prefix: 'threshold-line', - }); - const name = `threshold-${position}`; useEffect(() => { @@ -115,14 +108,12 @@ export function ThresholdLine({ position, label, value }: ThresholdLineProps) { * a dummy series with no data, and a mark line. This does not show up as a * series in something like a ChartTooltip. */ - addSeries( - getThresholdLineConfig({ id, name, position, theme, label, value }), - ); + addSeries(getThresholdLineConfig({ name, position, theme, label, value })); return () => { - removeSeries(id); + removeSeries(name); }; - }, [addSeries, id, label, name, position, ready, removeSeries, theme, value]); + }, [addSeries, label, name, position, ready, removeSeries, theme, value]); return null; } diff --git a/charts/core/src/ThresholdLine/ThresholdLine.types.ts b/charts/core/src/ThresholdLine/ThresholdLine.types.ts index 16477a0330..fa24cca4a2 100644 --- a/charts/core/src/ThresholdLine/ThresholdLine.types.ts +++ b/charts/core/src/ThresholdLine/ThresholdLine.types.ts @@ -7,7 +7,6 @@ export interface ThresholdLineProps { } export interface GetThresholdLineConfig extends ThresholdLineProps { - id: string; name: string; theme: Theme; } diff --git a/charts/core/src/XAxis/XAxis.tsx b/charts/core/src/XAxis/XAxis.tsx index da2b613a5b..2e86483c26 100644 --- a/charts/core/src/XAxis/XAxis.tsx +++ b/charts/core/src/XAxis/XAxis.tsx @@ -11,21 +11,19 @@ import { Variant, } from '@leafygreen-ui/tokens'; -import { type ChartOptions, X_AXIS_ID } from '../Chart'; +import { type ChartOptions } from '../Chart'; import { useChartContext } from '../ChartContext'; import { XAxisProps } from './XAxis.types'; const getOptions = ({ - id, theme, type, label, formatter, -}: XAxisProps & { id: string; theme: Theme }): Partial => { +}: XAxisProps & { theme: Theme }): Partial => { const options: Partial = { xAxis: { - id, type: type, axisLine: { show: true, @@ -109,21 +107,15 @@ export function XAxis({ type, label, formatter }: XAxisProps) { useEffect(() => { if (!ready) return; - updateOptions( - getOptions({ id: X_AXIS_ID, type, label, formatter, theme }), - ['xAxis'], - ); + updateOptions(getOptions({ type, label, formatter, theme })); return () => { /** * Hides the axis when the component is unmounted. */ - updateOptions( - { - xAxis: { id: X_AXIS_ID, ...unsetAxisOptions }, - }, - ['xAxis'], - ); + updateOptions({ + xAxis: { ...unsetAxisOptions }, + }); }; }, [formatter, label, ready, theme, type, updateOptions]); diff --git a/charts/core/src/YAxis/YAxis.tsx b/charts/core/src/YAxis/YAxis.tsx index b16885a83a..9c9c6479a7 100644 --- a/charts/core/src/YAxis/YAxis.tsx +++ b/charts/core/src/YAxis/YAxis.tsx @@ -11,21 +11,19 @@ import { Variant, } from '@leafygreen-ui/tokens'; -import { type ChartOptions, Y_AXIS_ID } from '../Chart'; +import { type ChartOptions } from '../Chart'; import { useChartContext } from '../ChartContext'; import { YAxisProps } from './YAxis.types'; const getOptions = ({ - id, theme, type, label, formatter, -}: YAxisProps & { id: string; theme: Theme }): Partial => { +}: YAxisProps & { theme: Theme }): Partial => { const options: Partial = { yAxis: { - id, type: type, axisLine: { show: true, @@ -108,21 +106,15 @@ export function YAxis({ type, label, formatter }: YAxisProps) { useEffect(() => { if (!ready) return; - updateOptions( - getOptions({ id: Y_AXIS_ID, type, label, formatter, theme }), - ['yAxis'], - ); + updateOptions(getOptions({ type, label, formatter, theme })); return () => { /** * Hides the axis when the component is unmounted. */ - updateOptions( - { - yAxis: { id: Y_AXIS_ID, ...unsetAxisOptions }, - }, - ['yAxis'], - ); + updateOptions({ + yAxis: { ...unsetAxisOptions }, + }); }; }, [formatter, label, ready, theme, type, updateOptions]); diff --git a/charts/drag-provider/CHANGELOG.md b/charts/drag-provider/CHANGELOG.md index 85c03080e9..f6d3667bff 100644 --- a/charts/drag-provider/CHANGELOG.md +++ b/charts/drag-provider/CHANGELOG.md @@ -1,5 +1,12 @@ # @lg-charts/drag-provider +## 0.2.7 + +### Patch Changes + +- @lg-charts/chart-card@0.2.5 +- @lg-charts/core@0.17.4 + ## 0.2.6 ### Patch Changes diff --git a/charts/drag-provider/package.json b/charts/drag-provider/package.json index 8370eff8d1..d856797d8f 100644 --- a/charts/drag-provider/package.json +++ b/charts/drag-provider/package.json @@ -1,15 +1,15 @@ { "name": "@lg-charts/drag-provider", - "version": "0.2.6", + "version": "0.2.7", "description": "lg-charts DragProvider Component", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/charts/drag-provider/src/DragProvider.stories.tsx b/charts/drag-provider/src/DragProvider.stories.tsx index faacb1f1ee..47230bd061 100644 --- a/charts/drag-provider/src/DragProvider.stories.tsx +++ b/charts/drag-provider/src/DragProvider.stories.tsx @@ -175,6 +175,17 @@ export default { onDragStart: fn(), onDragEnd: fn(), }, + parameters: { + default: 'LiveExample', + chromatic: { + /** + * For some reason diffs keep getting flagged on non-changes to the canvas. + * The default threshold is .063, so bumping it up to 1 to test. We might + * consider lowering this in the future. + */ + diffThreshold: 1, + }, + }, }; export const LiveExample: StoryObj<{}> = { diff --git a/charts/legend/CHANGELOG.md b/charts/legend/CHANGELOG.md index 946e0f94bf..87a37556ee 100644 --- a/charts/legend/CHANGELOG.md +++ b/charts/legend/CHANGELOG.md @@ -1,5 +1,11 @@ # @lg-charts/legend +## 0.2.5 + +### Patch Changes + +- @leafygreen-ui/checkbox@16.0.1 + ## 0.2.4 ### Patch Changes diff --git a/charts/legend/package.json b/charts/legend/package.json index a1dc225ab7..216a5edd65 100644 --- a/charts/legend/package.json +++ b/charts/legend/package.json @@ -1,15 +1,15 @@ { "name": "@lg-charts/legend", - "version": "0.2.4", + "version": "0.2.5", "description": "lg-charts Legend", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/charts/series-provider/package.json b/charts/series-provider/package.json index 31aa5c40bc..b6b1c68831 100644 --- a/charts/series-provider/package.json +++ b/charts/series-provider/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/chat/avatar/CHANGELOG.md b/chat/avatar/CHANGELOG.md index 7ec2fd9bb9..0e00d1a167 100644 --- a/chat/avatar/CHANGELOG.md +++ b/chat/avatar/CHANGELOG.md @@ -1,5 +1,11 @@ # @lg-chat/avatar +## 4.0.11 + +### Patch Changes + +- @leafygreen-ui/avatar@2.0.10 + ## 4.0.10 ### Patch Changes diff --git a/chat/avatar/package.json b/chat/avatar/package.json index 728a64b1f4..8f563740b6 100644 --- a/chat/avatar/package.json +++ b/chat/avatar/package.json @@ -1,14 +1,14 @@ { "name": "@lg-chat/avatar", - "version": "4.0.10", + "version": "4.0.11", "description": "lg-chat Avatar", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "license": "Apache-2.0", "publishConfig": { diff --git a/chat/chat-disclaimer/CHANGELOG.md b/chat/chat-disclaimer/CHANGELOG.md index 3eac096399..7b5e63d9c5 100644 --- a/chat/chat-disclaimer/CHANGELOG.md +++ b/chat/chat-disclaimer/CHANGELOG.md @@ -1,5 +1,12 @@ # @lg-chat/chat-disclaimer +## 3.0.18 + +### Patch Changes + +- @leafygreen-ui/typography@20.1.9 +- @leafygreen-ui/marketing-modal@5.0.15 + ## 3.0.17 ### Patch Changes diff --git a/chat/chat-disclaimer/package.json b/chat/chat-disclaimer/package.json index 54a1778ca8..6f3368b2f7 100644 --- a/chat/chat-disclaimer/package.json +++ b/chat/chat-disclaimer/package.json @@ -1,15 +1,15 @@ { "name": "@lg-chat/chat-disclaimer", - "version": "3.0.17", + "version": "3.0.18", "description": "LeafyGreen UI Kit Chat Disclaimer", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/chat/chat-window/CHANGELOG.md b/chat/chat-window/CHANGELOG.md index e3ac1394f7..bf526d3965 100644 --- a/chat/chat-window/CHANGELOG.md +++ b/chat/chat-window/CHANGELOG.md @@ -1,5 +1,12 @@ # @lg-chat/chat-window +## 3.0.15 + +### Patch Changes + +- @lg-chat/title-bar@3.0.15 +- @lg-chat/avatar@4.0.11 + ## 3.0.14 ### Patch Changes diff --git a/chat/chat-window/package.json b/chat/chat-window/package.json index 34ccd631c8..3de945ee9c 100644 --- a/chat/chat-window/package.json +++ b/chat/chat-window/package.json @@ -1,14 +1,14 @@ { "name": "@lg-chat/chat-window", - "version": "3.0.14", + "version": "3.0.15", "description": "lg-chat Chat Window", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "license": "Apache-2.0", "publishConfig": { diff --git a/chat/fixed-chat-window/CHANGELOG.md b/chat/fixed-chat-window/CHANGELOG.md index ee710e44f9..894e7ebd05 100644 --- a/chat/fixed-chat-window/CHANGELOG.md +++ b/chat/fixed-chat-window/CHANGELOG.md @@ -1,5 +1,15 @@ # @lg-chat/fixed-chat-window +## 3.0.17 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @lg-chat/title-bar@3.0.15 + - @leafygreen-ui/typography@20.1.9 + - @lg-chat/chat-window@3.0.15 + ## 3.0.16 ### Patch Changes diff --git a/chat/fixed-chat-window/package.json b/chat/fixed-chat-window/package.json index e4e88a0d12..f747bc3868 100644 --- a/chat/fixed-chat-window/package.json +++ b/chat/fixed-chat-window/package.json @@ -1,15 +1,15 @@ { "name": "@lg-chat/fixed-chat-window", - "version": "3.0.16", + "version": "3.0.17", "description": "LeafyGreen UI Kit Fixed Chat Window", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/chat/input-bar/CHANGELOG.md b/chat/input-bar/CHANGELOG.md index 4a3d96deaa..94a88229ef 100644 --- a/chat/input-bar/CHANGELOG.md +++ b/chat/input-bar/CHANGELOG.md @@ -1,5 +1,16 @@ # @lg-chat/input-bar +## 7.0.16 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/button@23.1.6 + - @leafygreen-ui/input-option@3.0.12 + - @leafygreen-ui/search-input@5.0.14 + - @leafygreen-ui/typography@20.1.9 + ## 7.0.15 ### Patch Changes diff --git a/chat/input-bar/package.json b/chat/input-bar/package.json index 5274406567..7d917c7d29 100644 --- a/chat/input-bar/package.json +++ b/chat/input-bar/package.json @@ -1,14 +1,14 @@ { "name": "@lg-chat/input-bar", - "version": "7.0.15", + "version": "7.0.16", "description": "lg-chat Input Bar", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "license": "Apache-2.0", "publishConfig": { diff --git a/chat/leafygreen-chat-provider/package.json b/chat/leafygreen-chat-provider/package.json index a28181505f..0ebabbfa7e 100644 --- a/chat/leafygreen-chat-provider/package.json +++ b/chat/leafygreen-chat-provider/package.json @@ -7,8 +7,8 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "license": "Apache-2.0", "publishConfig": { diff --git a/chat/lg-markdown/CHANGELOG.md b/chat/lg-markdown/CHANGELOG.md index f4ef9a25f6..f2a852d8f7 100644 --- a/chat/lg-markdown/CHANGELOG.md +++ b/chat/lg-markdown/CHANGELOG.md @@ -1,5 +1,19 @@ # @lg-chat/lg-markdown +## 3.0.17 + +### Patch Changes + +- Updated dependencies [5c80334ed] + - @leafygreen-ui/code@18.1.0 + +## 3.0.16 + +### Patch Changes + +- @leafygreen-ui/code@18.0.5 +- @leafygreen-ui/typography@20.1.9 + ## 3.0.15 ### Patch Changes diff --git a/chat/lg-markdown/package.json b/chat/lg-markdown/package.json index e9d8949e18..6ca3b35537 100644 --- a/chat/lg-markdown/package.json +++ b/chat/lg-markdown/package.json @@ -1,14 +1,14 @@ { "name": "@lg-chat/lg-markdown", - "version": "3.0.15", + "version": "3.0.17", "description": "lg-chat LGMarkdown", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "license": "Apache-2.0", "publishConfig": { diff --git a/chat/message-feed/CHANGELOG.md b/chat/message-feed/CHANGELOG.md index c7bfaf6833..34c370e0b0 100644 --- a/chat/message-feed/CHANGELOG.md +++ b/chat/message-feed/CHANGELOG.md @@ -1,5 +1,22 @@ # @lg-chat/message-feed +## 4.1.15 + +### Patch Changes + +- @lg-chat/message@5.0.17 + +## 4.1.14 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @lg-chat/message-rating@3.0.12 + - @leafygreen-ui/button@23.1.6 + - @lg-chat/message@5.0.16 + - @lg-chat/avatar@4.0.11 + ## 4.1.13 ### Patch Changes diff --git a/chat/message-feed/package.json b/chat/message-feed/package.json index 5745d89086..1b060b419c 100644 --- a/chat/message-feed/package.json +++ b/chat/message-feed/package.json @@ -1,14 +1,14 @@ { "name": "@lg-chat/message-feed", - "version": "4.1.13", + "version": "4.1.15", "description": "lg-chat Message Feed", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "license": "Apache-2.0", "publishConfig": { diff --git a/chat/message-feedback/CHANGELOG.md b/chat/message-feedback/CHANGELOG.md index e3f9c278b7..6f8eabb409 100644 --- a/chat/message-feedback/CHANGELOG.md +++ b/chat/message-feedback/CHANGELOG.md @@ -1,5 +1,16 @@ # @lg-chat/message-feedback +## 4.0.10 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/button@23.1.6 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/text-area@10.0.12 + - @leafygreen-ui/typography@20.1.9 + ## 4.0.9 ### Patch Changes diff --git a/chat/message-feedback/package.json b/chat/message-feedback/package.json index f878b29ab9..dadc92493b 100644 --- a/chat/message-feedback/package.json +++ b/chat/message-feedback/package.json @@ -1,6 +1,6 @@ { "name": "@lg-chat/message-feedback", - "version": "4.0.9", + "version": "4.0.10", "description": "LeafyGreen UI Kit Message Feedback", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", @@ -8,9 +8,9 @@ "typesVersions": {}, "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/chat/message-prompts/CHANGELOG.md b/chat/message-prompts/CHANGELOG.md index 71af470055..652e9dc4a2 100644 --- a/chat/message-prompts/CHANGELOG.md +++ b/chat/message-prompts/CHANGELOG.md @@ -1,5 +1,11 @@ # @lg-chat/message-prompts +## 3.0.12 + +### Patch Changes + +- @leafygreen-ui/typography@20.1.9 + ## 3.0.11 ### Patch Changes diff --git a/chat/message-prompts/package.json b/chat/message-prompts/package.json index 4c9d0ada9e..7b012d1dd6 100644 --- a/chat/message-prompts/package.json +++ b/chat/message-prompts/package.json @@ -1,15 +1,15 @@ { "name": "@lg-chat/message-prompts", - "version": "3.0.11", + "version": "3.0.12", "description": "LeafyGreen UI Kit Message Prompts", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/chat/message-rating/CHANGELOG.md b/chat/message-rating/CHANGELOG.md index 7aa6ecbce1..0d8dff66ae 100644 --- a/chat/message-rating/CHANGELOG.md +++ b/chat/message-rating/CHANGELOG.md @@ -1,5 +1,13 @@ # @lg-chat/message-rating +## 3.0.12 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/typography@20.1.9 + ## 3.0.11 ### Patch Changes diff --git a/chat/message-rating/package.json b/chat/message-rating/package.json index 7cceef2483..7df5b4ef41 100644 --- a/chat/message-rating/package.json +++ b/chat/message-rating/package.json @@ -1,14 +1,14 @@ { "name": "@lg-chat/message-rating", - "version": "3.0.11", + "version": "3.0.12", "description": "lg-chat Message Rating", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "license": "Apache-2.0", "publishConfig": { diff --git a/chat/message/CHANGELOG.md b/chat/message/CHANGELOG.md index 362f35ac33..fe0ecc592c 100644 --- a/chat/message/CHANGELOG.md +++ b/chat/message/CHANGELOG.md @@ -1,5 +1,20 @@ # @lg-chat/message +## 5.0.17 + +### Patch Changes + +- @lg-chat/lg-markdown@3.0.17 + +## 5.0.16 + +### Patch Changes + +- @lg-chat/rich-links@2.0.12 +- @leafygreen-ui/banner@9.0.13 +- @leafygreen-ui/typography@20.1.9 +- @lg-chat/lg-markdown@3.0.16 + ## 5.0.15 ### Patch Changes diff --git a/chat/message/package.json b/chat/message/package.json index a31dfa5a44..e2a05ac918 100644 --- a/chat/message/package.json +++ b/chat/message/package.json @@ -1,14 +1,14 @@ { "name": "@lg-chat/message", - "version": "5.0.15", + "version": "5.0.17", "description": "lg-chat Message", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "license": "Apache-2.0", "publishConfig": { diff --git a/chat/rich-links/CHANGELOG.md b/chat/rich-links/CHANGELOG.md index 4499310cd1..dc32273b88 100644 --- a/chat/rich-links/CHANGELOG.md +++ b/chat/rich-links/CHANGELOG.md @@ -1,5 +1,13 @@ # @lg-chat/rich-links +## 2.0.12 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/typography@20.1.9 + ## 2.0.11 ### Patch Changes diff --git a/chat/rich-links/package.json b/chat/rich-links/package.json index 73ec71c956..343af5a5aa 100644 --- a/chat/rich-links/package.json +++ b/chat/rich-links/package.json @@ -1,15 +1,15 @@ { "name": "@lg-chat/rich-links", - "version": "2.0.11", + "version": "2.0.12", "description": "lg-chat Rich Links", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/chat/title-bar/CHANGELOG.md b/chat/title-bar/CHANGELOG.md index 7127bf2fe6..8530d609f1 100644 --- a/chat/title-bar/CHANGELOG.md +++ b/chat/title-bar/CHANGELOG.md @@ -1,5 +1,15 @@ # @lg-chat/title-bar +## 3.0.15 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/typography@20.1.9 + - @lg-chat/avatar@4.0.11 + ## 3.0.14 ### Patch Changes diff --git a/chat/title-bar/package.json b/chat/title-bar/package.json index 7ebfe06aa4..1eab7a23e5 100644 --- a/chat/title-bar/package.json +++ b/chat/title-bar/package.json @@ -1,14 +1,14 @@ { "name": "@lg-chat/title-bar", - "version": "3.0.14", + "version": "3.0.15", "description": "lg-chat Title Bar", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts" + "build": "lg-build bundle", + "tsc": "lg-build tsc" }, "license": "Apache-2.0", "publishConfig": { diff --git a/package.json b/package.json index 3b21bb35a2..3bbbea2924 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "init": "pnpm install && pnpm build", "init17": "pnpm install && pnpm build:cli && npx ts-node tools/test/scripts/install-react17.ts && pnpm build", "create-package": "lg create", - "prebuild": "pnpm build:cli", "build": "turbo run build tsc", "build:cli": "turbo run build tsc --filter=@lg-tools/cli", "build:docs": "turbo run docs", @@ -47,6 +46,7 @@ "@lg-tools/cli": "workspace:^", "@lg-tools/lint": "workspace:^", "@lg-tools/meta": "workspace:^", + "@lg-tools/prompt-kit": "workspace:^", "@lg-tools/storybook-addon": "workspace:^", "@lg-tools/storybook-utils": "workspace:^", "@lg-tools/test": "workspace:^", diff --git a/packages/a11y/package.json b/packages/a11y/package.json index d52a8bbb92..679384d696 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/avatar/CHANGELOG.md b/packages/avatar/CHANGELOG.md index 6d9b5bf094..3b32553b31 100644 --- a/packages/avatar/CHANGELOG.md +++ b/packages/avatar/CHANGELOG.md @@ -1,5 +1,12 @@ # @leafygreen-ui/avatar +## 2.0.10 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + ## 2.0.9 ### Patch Changes diff --git a/packages/avatar/package.json b/packages/avatar/package.json index b4fe78542c..d123161db8 100644 --- a/packages/avatar/package.json +++ b/packages/avatar/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/avatar", - "version": "2.0.9", + "version": "2.0.10", "description": "LeafyGreen UI Avatar", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/badge/package.json b/packages/badge/package.json index 675a54c717..056c8c83f6 100644 --- a/packages/badge/package.json +++ b/packages/badge/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/banner/CHANGELOG.md b/packages/banner/CHANGELOG.md index 6381d7efdf..f31a172515 100644 --- a/packages/banner/CHANGELOG.md +++ b/packages/banner/CHANGELOG.md @@ -1,5 +1,14 @@ # @leafygreen-ui/banner +## 9.0.13 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/typography@20.1.9 + ## 9.0.12 ### Patch Changes diff --git a/packages/banner/package.json b/packages/banner/package.json index 9b7932f456..538f0058c2 100644 --- a/packages/banner/package.json +++ b/packages/banner/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/banner", - "version": "9.0.12", + "version": "9.0.13", "description": "leafyGreen UI Kit Banner", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/box/package.json b/packages/box/package.json index 7f6ae8e27b..3ce9b090d8 100644 --- a/packages/box/package.json +++ b/packages/box/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/button/package.json b/packages/button/package.json index 198f6acdf8..ce2fceba96 100644 --- a/packages/button/package.json +++ b/packages/button/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/callout/CHANGELOG.md b/packages/callout/CHANGELOG.md index 8c5ca2a13e..39063a2d9d 100644 --- a/packages/callout/CHANGELOG.md +++ b/packages/callout/CHANGELOG.md @@ -1,5 +1,13 @@ # @leafygreen-ui/callout +## 11.0.12 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/typography@20.1.9 + ## 11.0.11 ### Patch Changes diff --git a/packages/callout/package.json b/packages/callout/package.json index b8476424ef..fd238f17a6 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/callout", - "version": "11.0.11", + "version": "11.0.12", "description": "leafyGreen UI Kit Callout", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/card/package.json b/packages/card/package.json index 4bcc56ea12..270b7293a1 100644 --- a/packages/card/package.json +++ b/packages/card/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/checkbox/CHANGELOG.md b/packages/checkbox/CHANGELOG.md index 5712867311..7367c947e0 100644 --- a/packages/checkbox/CHANGELOG.md +++ b/packages/checkbox/CHANGELOG.md @@ -1,5 +1,11 @@ # @leafygreen-ui/checkbox +## 16.0.1 + +### Patch Changes + +- @leafygreen-ui/typography@20.1.9 + ## 16.0.0 ### Major Changes diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json index ffaabe4953..461d0736a5 100644 --- a/packages/checkbox/package.json +++ b/packages/checkbox/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/checkbox", - "version": "16.0.0", + "version": "16.0.1", "description": "LeafyGreen UI Kit Checkbox", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/chip/CHANGELOG.md b/packages/chip/CHANGELOG.md index 35923e8207..819569e24d 100644 --- a/packages/chip/CHANGELOG.md +++ b/packages/chip/CHANGELOG.md @@ -1,5 +1,13 @@ # @leafygreen-ui/chip +## 3.0.13 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/inline-definition@8.0.13 + ## 3.0.12 ### Patch Changes diff --git a/packages/chip/package.json b/packages/chip/package.json index 18b4f47330..7a42c0f359 100644 --- a/packages/chip/package.json +++ b/packages/chip/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/chip", - "version": "3.0.12", + "version": "3.0.13", "description": "LeafyGreen UI Kit Chip", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/packages/code/CHANGELOG.md b/packages/code/CHANGELOG.md index 3932212013..9f27ff1355 100644 --- a/packages/code/CHANGELOG.md +++ b/packages/code/CHANGELOG.md @@ -1,5 +1,24 @@ # @leafygreen-ui/code +## 18.1.0 + +### Minor Changes + +- 5c80334ed: [LG-4972](https://jira.mongodb.org/browse/LG-4972): add language support for `markdown` + +## 18.0.5 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/button@23.1.6 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/select@14.1.8 + - @leafygreen-ui/skeleton-loader@2.0.12 + - @leafygreen-ui/tooltip@13.0.13 + - @leafygreen-ui/typography@20.1.9 + ## 18.0.4 ### Patch Changes diff --git a/packages/code/package.json b/packages/code/package.json index 52e57ab3ce..43b4179480 100644 --- a/packages/code/package.json +++ b/packages/code/package.json @@ -1,6 +1,6 @@ { "name": "@leafygreen-ui/code", - "version": "18.0.4", + "version": "18.1.0", "description": "leafyGreen UI Kit Code Blocks", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", @@ -19,9 +19,9 @@ } }, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc", + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs", "postinstall": "npx ts-node scripts/postinstall.ts" }, "keywords": [], diff --git a/packages/code/src/languages.ts b/packages/code/src/languages.ts index ca47c697b4..c80ad9c472 100644 --- a/packages/code/src/languages.ts +++ b/packages/code/src/languages.ts @@ -11,6 +11,7 @@ import java from 'highlight.js/lib/languages/java'; import javascript from 'highlight.js/lib/languages/javascript'; import json from 'highlight.js/lib/languages/json'; import kotlin from 'highlight.js/lib/languages/kotlin'; +import markdown from 'highlight.js/lib/languages/markdown'; import objectivec from 'highlight.js/lib/languages/objectivec'; import perl from 'highlight.js/lib/languages/perl'; import php from 'highlight.js/lib/languages/php'; @@ -54,6 +55,7 @@ export const languageParsers = { json, diff, xml, + markdown, } as const; export const SupportedLanguages = { @@ -89,6 +91,7 @@ export const SupportedLanguages = { Graphql: 'graphql', Diff: 'diff', Xml: 'xml', + Markdown: 'markdown', } as const; export type SupportedLanguages = diff --git a/packages/combobox/CHANGELOG.md b/packages/combobox/CHANGELOG.md index 319ae63acf..ccc316262f 100644 --- a/packages/combobox/CHANGELOG.md +++ b/packages/combobox/CHANGELOG.md @@ -1,5 +1,18 @@ # @leafygreen-ui/combobox +## 11.0.19 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/chip@3.0.13 + - @leafygreen-ui/form-field@2.0.12 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/input-option@3.0.12 + - @leafygreen-ui/typography@20.1.9 + - @leafygreen-ui/checkbox@16.0.1 + ## 11.0.18 ### Patch Changes diff --git a/packages/combobox/package.json b/packages/combobox/package.json index 0cd192c2e1..c202f86de6 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/combobox", - "version": "11.0.18", + "version": "11.0.19", "description": "leafyGreen UI Kit Combobox", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/confirmation-modal/CHANGELOG.md b/packages/confirmation-modal/CHANGELOG.md index c80d100bb2..2ae7710e2a 100644 --- a/packages/confirmation-modal/CHANGELOG.md +++ b/packages/confirmation-modal/CHANGELOG.md @@ -1,5 +1,16 @@ # @leafygreen-ui/confirmation-modal +## 7.0.11 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/button@23.1.6 + - @leafygreen-ui/modal@17.1.7 + - @leafygreen-ui/typography@20.1.9 + - @leafygreen-ui/text-input@14.0.13 + ## 7.0.10 ### Patch Changes diff --git a/packages/confirmation-modal/package.json b/packages/confirmation-modal/package.json index 7407eea95f..3e3daf29ba 100644 --- a/packages/confirmation-modal/package.json +++ b/packages/confirmation-modal/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/confirmation-modal", - "version": "7.0.10", + "version": "7.0.11", "description": "leafyGreen UI Kit Confirmation Modal", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/copyable/CHANGELOG.md b/packages/copyable/CHANGELOG.md index c16b06d1c2..9387cc4fdb 100644 --- a/packages/copyable/CHANGELOG.md +++ b/packages/copyable/CHANGELOG.md @@ -1,5 +1,15 @@ # @leafygreen-ui/copyable +## 10.0.14 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/button@23.1.6 + - @leafygreen-ui/tooltip@13.0.13 + - @leafygreen-ui/typography@20.1.9 + ## 10.0.13 ### Patch Changes diff --git a/packages/copyable/package.json b/packages/copyable/package.json index de0f48a9cc..96a02ea6fc 100644 --- a/packages/copyable/package.json +++ b/packages/copyable/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/copyable", - "version": "10.0.13", + "version": "10.0.14", "description": "leafyGreen UI Kit Copyable", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/date-picker/CHANGELOG.md b/packages/date-picker/CHANGELOG.md index 25ee9acb47..30aea6a3e8 100644 --- a/packages/date-picker/CHANGELOG.md +++ b/packages/date-picker/CHANGELOG.md @@ -1,5 +1,16 @@ # @leafygreen-ui/date-picker +## 3.0.16 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/form-field@2.0.12 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/select@14.1.8 + - @leafygreen-ui/typography@20.1.9 + ## 3.0.15 ### Patch Changes diff --git a/packages/date-picker/package.json b/packages/date-picker/package.json index 8c2179559c..34825dc65e 100644 --- a/packages/date-picker/package.json +++ b/packages/date-picker/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/date-picker", - "version": "3.0.15", + "version": "3.0.16", "description": "LeafyGreen UI Kit Date Picker", "license": "Apache-2.0", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/packages/date-utils/package.json b/packages/date-utils/package.json index 2e0efc8136..bdd88110ac 100644 --- a/packages/date-utils/package.json +++ b/packages/date-utils/package.json @@ -20,9 +20,9 @@ } }, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/packages/descendants/package.json b/packages/descendants/package.json index 168dd2c288..7812ad3bf6 100644 --- a/packages/descendants/package.json +++ b/packages/descendants/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/packages/drawer/CHANGELOG.md b/packages/drawer/CHANGELOG.md index 0f24245529..165bae3dde 100644 --- a/packages/drawer/CHANGELOG.md +++ b/packages/drawer/CHANGELOG.md @@ -1,5 +1,16 @@ # @leafygreen-ui/drawer +## 2.0.5 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/button@23.1.6 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/tabs@14.2.5 + - @leafygreen-ui/typography@20.1.9 + ## 2.0.4 ### Patch Changes diff --git a/packages/drawer/package.json b/packages/drawer/package.json index ebf7f25d50..af9613fc5b 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/drawer", - "version": "2.0.4", + "version": "2.0.5", "description": "LeafyGreen UI Kit Drawer", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/packages/emotion/package.json b/packages/emotion/package.json index efb6a33a95..39797bb110 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -8,9 +8,9 @@ "typesVersions": {}, "scripts": { "prebuild": "ts-node scripts/prebuild.ts", - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "keywords": [], "license": "Apache-2.0", diff --git a/packages/empty-state/CHANGELOG.md b/packages/empty-state/CHANGELOG.md index 417c714cfe..73d7db6262 100644 --- a/packages/empty-state/CHANGELOG.md +++ b/packages/empty-state/CHANGELOG.md @@ -1,5 +1,12 @@ # @leafygreen-ui/empty-state +## 2.0.15 + +### Patch Changes + +- @leafygreen-ui/button@23.1.6 +- @leafygreen-ui/typography@20.1.9 + ## 2.0.14 ### Patch Changes diff --git a/packages/empty-state/package.json b/packages/empty-state/package.json index 33bece8f44..15fb868d1c 100644 --- a/packages/empty-state/package.json +++ b/packages/empty-state/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/empty-state", - "version": "2.0.14", + "version": "2.0.15", "description": "leafyGreen UI Kit Empty State", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/empty-state", diff --git a/packages/expandable-card/CHANGELOG.md b/packages/expandable-card/CHANGELOG.md index 80389b607d..d80035a383 100644 --- a/packages/expandable-card/CHANGELOG.md +++ b/packages/expandable-card/CHANGELOG.md @@ -1,5 +1,14 @@ # @leafygreen-ui/expandable-card +## 4.0.13 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/typography@20.1.9 + ## 4.0.12 ### Patch Changes diff --git a/packages/expandable-card/package.json b/packages/expandable-card/package.json index 0c2fd434a7..1c658a692e 100644 --- a/packages/expandable-card/package.json +++ b/packages/expandable-card/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/expandable-card", - "version": "4.0.12", + "version": "4.0.13", "description": "leafyGreen UI Kit Expandable Card", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/form-field/CHANGELOG.md b/packages/form-field/CHANGELOG.md index 0641734238..cdb3e7620b 100644 --- a/packages/form-field/CHANGELOG.md +++ b/packages/form-field/CHANGELOG.md @@ -1,5 +1,13 @@ # @leafygreen-ui/form-field +## 2.0.12 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/typography@20.1.9 + ## 2.0.11 ### Patch Changes diff --git a/packages/form-field/package.json b/packages/form-field/package.json index 1d304950ea..b3a01d2649 100644 --- a/packages/form-field/package.json +++ b/packages/form-field/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/form-field", - "version": "2.0.11", + "version": "2.0.12", "description": "LeafyGreen UI Kit Form Field", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/packages/form-footer/CHANGELOG.md b/packages/form-footer/CHANGELOG.md index 16c1bfb916..56a40dc773 100644 --- a/packages/form-footer/CHANGELOG.md +++ b/packages/form-footer/CHANGELOG.md @@ -1,5 +1,14 @@ # @leafygreen-ui/form-footer +## 6.0.9 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/banner@9.0.13 + - @leafygreen-ui/button@23.1.6 + ## 6.0.8 ### Patch Changes diff --git a/packages/form-footer/package.json b/packages/form-footer/package.json index e40500ffc1..3035785bd6 100644 --- a/packages/form-footer/package.json +++ b/packages/form-footer/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/form-footer", - "version": "6.0.8", + "version": "6.0.9", "description": "leafyGreen UI Kit Form Footer", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/gallery-indicator/package.json b/packages/gallery-indicator/package.json index b15da9abc9..72abf45ca4 100644 --- a/packages/gallery-indicator/package.json +++ b/packages/gallery-indicator/package.json @@ -20,9 +20,9 @@ }, "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/packages/guide-cue/CHANGELOG.md b/packages/guide-cue/CHANGELOG.md index 673a25c9c5..5b583b6b05 100644 --- a/packages/guide-cue/CHANGELOG.md +++ b/packages/guide-cue/CHANGELOG.md @@ -1,5 +1,16 @@ # @leafygreen-ui/guide-cue +## 7.0.15 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/button@23.1.6 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/tooltip@13.0.13 + - @leafygreen-ui/typography@20.1.9 + ## 7.0.14 ### Patch Changes diff --git a/packages/guide-cue/package.json b/packages/guide-cue/package.json index 1785b1d79b..1c2d0a52fa 100644 --- a/packages/guide-cue/package.json +++ b/packages/guide-cue/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/guide-cue", - "version": "7.0.14", + "version": "7.0.15", "description": "leafyGreen UI Kit GuideCue", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/guide-cue", diff --git a/packages/hooks/package.json b/packages/hooks/package.json index f7bb17c17a..000055d045 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/icon-button/CHANGELOG.md b/packages/icon-button/CHANGELOG.md index f5e2a9e7b0..5354996863 100644 --- a/packages/icon-button/CHANGELOG.md +++ b/packages/icon-button/CHANGELOG.md @@ -1,5 +1,12 @@ # @leafygreen-ui/icon-button +## 16.0.12 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + ## 16.0.11 ### Patch Changes diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json index a6f7330bda..776c21c69a 100644 --- a/packages/icon-button/package.json +++ b/packages/icon-button/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/icon-button", - "version": "16.0.11", + "version": "16.0.12", "description": "LeafyGreen UI Kit Icon Buttons", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/icon/CHANGELOG.md b/packages/icon/CHANGELOG.md index c1e92e5796..ff62a03be4 100644 --- a/packages/icon/CHANGELOG.md +++ b/packages/icon/CHANGELOG.md @@ -1,5 +1,11 @@ # @leafygreen-ui/icon +## 13.4.0 + +### Minor Changes + +- eca6e3fdc: Adds `'Streaming'` glyph to the set + ## 13.3.0 ### Minor Changes diff --git a/packages/icon/package.json b/packages/icon/package.json index be3df0dc9b..bd1a79b1d3 100644 --- a/packages/icon/package.json +++ b/packages/icon/package.json @@ -1,6 +1,6 @@ { "name": "@leafygreen-ui/icon", - "version": "13.3.0", + "version": "13.4.0", "description": "LeafyGreen UI Kit Icons", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", @@ -8,9 +8,9 @@ "typesVersions": {}, "scripts": { "prebuild": "ts-node ./scripts/prebuild.ts", - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/icon/src/generated/Streaming.tsx b/packages/icon/src/generated/Streaming.tsx new file mode 100644 index 0000000000..33198f6a45 --- /dev/null +++ b/packages/icon/src/generated/Streaming.tsx @@ -0,0 +1,39 @@ +/** +* This is a generated file. Do not modify it manually. +* +* @script packages/icon/scripts/prebuild.ts +* @checksum fdb92a04a433e7421ad8fb5eec448f39 +*/ +import * as React from "react"; +import { css, cx } from '@leafygreen-ui/emotion'; +import { generateAccessibleProps, sizeMap } from '../glyphCommon'; +import { LGGlyph } from '../types'; +export interface StreamingProps extends LGGlyph.ComponentProps {} +const Streaming = ({ + className, + size = 16, + title, + ['aria-label']: ariaLabel, + ['aria-labelledby']: ariaLabelledby, + fill, + role = 'img', + ...props +}: StreamingProps) => { + const fillStyle = css` + color: ${fill}; + `; + const noFlexShrink = css` + flex-shrink: 0; + `; + const accessibleProps = generateAccessibleProps(role, 'Streaming', { + title, + ['aria-label']: ariaLabel, + ['aria-labelledby']: ariaLabelledby + }); + return ; +}; +Streaming.displayName = 'Streaming'; +Streaming.isGlyph = true; +export default Streaming; \ No newline at end of file diff --git a/packages/icon/src/glyphs/Streaming.svg b/packages/icon/src/glyphs/Streaming.svg new file mode 100644 index 0000000000..77fd8c0b1e --- /dev/null +++ b/packages/icon/src/glyphs/Streaming.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/packages/icon/src/glyphs/index.ts b/packages/icon/src/glyphs/index.ts index 3b9c339aad..260093e1ef 100644 --- a/packages/icon/src/glyphs/index.ts +++ b/packages/icon/src/glyphs/index.ts @@ -151,6 +151,7 @@ import SplitHorizontal from './SplitHorizontal.svg'; import SplitVertical from './SplitVertical.svg'; import Stitch from './Stitch.svg'; import Stop from './Stop.svg'; +import Streaming from './Streaming.svg'; import String from './String.svg'; import Sun from './Sun.svg'; import Support from './Support.svg'; @@ -330,6 +331,7 @@ const _glyphs = { SplitVertical, Stitch, Stop, + Streaming, String, Sun, Support, diff --git a/packages/info-sprinkle/CHANGELOG.md b/packages/info-sprinkle/CHANGELOG.md index 20e8c96328..d90d6b2de7 100644 --- a/packages/info-sprinkle/CHANGELOG.md +++ b/packages/info-sprinkle/CHANGELOG.md @@ -1,5 +1,13 @@ # @leafygreen-ui/info-sprinkle +## 4.0.14 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/tooltip@13.0.13 + ## 4.0.13 ### Patch Changes diff --git a/packages/info-sprinkle/package.json b/packages/info-sprinkle/package.json index b09050999d..25d23ba81b 100644 --- a/packages/info-sprinkle/package.json +++ b/packages/info-sprinkle/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/info-sprinkle", - "version": "4.0.13", + "version": "4.0.14", "description": "LeafyGreen UI Kit Info Sprinkle", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/packages/inline-definition/CHANGELOG.md b/packages/inline-definition/CHANGELOG.md index f850149a6f..71e39a2e60 100644 --- a/packages/inline-definition/CHANGELOG.md +++ b/packages/inline-definition/CHANGELOG.md @@ -1,5 +1,11 @@ # @leafygreen-ui/inline-definition +## 8.0.13 + +### Patch Changes + +- @leafygreen-ui/tooltip@13.0.13 + ## 8.0.12 ### Patch Changes diff --git a/packages/inline-definition/package.json b/packages/inline-definition/package.json index d8fd4aeedd..5662ee7950 100644 --- a/packages/inline-definition/package.json +++ b/packages/inline-definition/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/inline-definition", - "version": "8.0.12", + "version": "8.0.13", "description": "leafyGreen UI Kit Inline Definition", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/input-option/CHANGELOG.md b/packages/input-option/CHANGELOG.md index 9c730470c5..82e1818007 100644 --- a/packages/input-option/CHANGELOG.md +++ b/packages/input-option/CHANGELOG.md @@ -1,5 +1,11 @@ # @leafygreen-ui/input-option +## 3.0.12 + +### Patch Changes + +- @leafygreen-ui/typography@20.1.9 + ## 3.0.11 ### Patch Changes diff --git a/packages/input-option/package.json b/packages/input-option/package.json index 2c5fd58550..7272a35e90 100644 --- a/packages/input-option/package.json +++ b/packages/input-option/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/input-option", - "version": "3.0.11", + "version": "3.0.12", "description": "leafyGreen UI Kit Internal Input Option", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/input-option", diff --git a/packages/leafygreen-provider/package.json b/packages/leafygreen-provider/package.json index d890879026..0d92a299af 100644 --- a/packages/leafygreen-provider/package.json +++ b/packages/leafygreen-provider/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/lib/package.json b/packages/lib/package.json index 32baadcc97..10bbfa9a80 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "keywords": [], "license": "Apache-2.0", diff --git a/packages/loading-indicator/CHANGELOG.md b/packages/loading-indicator/CHANGELOG.md index c10eb3e3da..65ce4822fa 100644 --- a/packages/loading-indicator/CHANGELOG.md +++ b/packages/loading-indicator/CHANGELOG.md @@ -1,5 +1,11 @@ # @leafygreen-ui/loading-indicator +## 3.0.12 + +### Patch Changes + +- @leafygreen-ui/typography@20.1.9 + ## 3.0.11 ### Patch Changes diff --git a/packages/loading-indicator/package.json b/packages/loading-indicator/package.json index 9442494db7..cb20b7bbf1 100644 --- a/packages/loading-indicator/package.json +++ b/packages/loading-indicator/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/loading-indicator", - "version": "3.0.11", + "version": "3.0.12", "description": "leafyGreen UI Kit Loading Indicator", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/loading-indicator", diff --git a/packages/logo/package.json b/packages/logo/package.json index fec7e30398..037f50b7d2 100644 --- a/packages/logo/package.json +++ b/packages/logo/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/marketing-modal/CHANGELOG.md b/packages/marketing-modal/CHANGELOG.md index 1eddfd339c..182d99221c 100644 --- a/packages/marketing-modal/CHANGELOG.md +++ b/packages/marketing-modal/CHANGELOG.md @@ -1,5 +1,13 @@ # @leafygreen-ui/marketing-modal +## 5.0.15 + +### Patch Changes + +- @leafygreen-ui/button@23.1.6 +- @leafygreen-ui/modal@17.1.7 +- @leafygreen-ui/typography@20.1.9 + ## 5.0.14 ### Patch Changes diff --git a/packages/marketing-modal/package.json b/packages/marketing-modal/package.json index b9b57be554..ec1fb7ece5 100644 --- a/packages/marketing-modal/package.json +++ b/packages/marketing-modal/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/marketing-modal", - "version": "5.0.14", + "version": "5.0.15", "description": "leafyGreen UI Kit Marketing Modal", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/menu/CHANGELOG.md b/packages/menu/CHANGELOG.md index 2b2ec898c5..d894efa973 100644 --- a/packages/menu/CHANGELOG.md +++ b/packages/menu/CHANGELOG.md @@ -1,5 +1,15 @@ # @leafygreen-ui/menu +## 29.0.5 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/input-option@3.0.12 + - @leafygreen-ui/typography@20.1.9 + ## 29.0.4 ### Patch Changes diff --git a/packages/menu/package.json b/packages/menu/package.json index 8b747e5da8..f6cf9cc2b6 100644 --- a/packages/menu/package.json +++ b/packages/menu/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/menu", - "version": "29.0.4", + "version": "29.0.5", "description": "LeafyGreen UI Kit Menu", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/modal/CHANGELOG.md b/packages/modal/CHANGELOG.md index e2d1c59d4e..b3390dc0e4 100644 --- a/packages/modal/CHANGELOG.md +++ b/packages/modal/CHANGELOG.md @@ -1,5 +1,13 @@ # @leafygreen-ui/modal +## 17.1.7 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/icon-button@16.0.12 + ## 17.1.6 ### Patch Changes diff --git a/packages/modal/package.json b/packages/modal/package.json index 16770bd715..ff05f5cef2 100644 --- a/packages/modal/package.json +++ b/packages/modal/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/modal", - "version": "17.1.6", + "version": "17.1.7", "description": "LeafyGreen UI Kit Modal", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/number-input/CHANGELOG.md b/packages/number-input/CHANGELOG.md index 548f7a5527..05f6237c5a 100644 --- a/packages/number-input/CHANGELOG.md +++ b/packages/number-input/CHANGELOG.md @@ -1,5 +1,17 @@ # @leafygreen-ui/number-input +## 4.1.7 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/button@23.1.6 + - @leafygreen-ui/form-field@2.0.12 + - @leafygreen-ui/select@14.1.8 + - @leafygreen-ui/tooltip@13.0.13 + - @leafygreen-ui/typography@20.1.9 + ## 4.1.6 ### Patch Changes diff --git a/packages/number-input/package.json b/packages/number-input/package.json index cf2521edb2..a7a1ba3a37 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/number-input", - "version": "4.1.6", + "version": "4.1.7", "description": "leafyGreen UI Kit Number Input", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/number-input", diff --git a/packages/ordered-list/CHANGELOG.md b/packages/ordered-list/CHANGELOG.md index 5cb01f4b63..f3d02b7fed 100644 --- a/packages/ordered-list/CHANGELOG.md +++ b/packages/ordered-list/CHANGELOG.md @@ -1,5 +1,11 @@ # @leafygreen-ui/ordered-list +## 2.0.13 + +### Patch Changes + +- @leafygreen-ui/typography@20.1.9 + ## 2.0.12 ### Patch Changes diff --git a/packages/ordered-list/package.json b/packages/ordered-list/package.json index 4ebc34cc82..faf4e66f6e 100644 --- a/packages/ordered-list/package.json +++ b/packages/ordered-list/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/ordered-list", - "version": "2.0.12", + "version": "2.0.13", "description": "LeafyGreen UI Kit Ordered List", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/packages/pagination/CHANGELOG.md b/packages/pagination/CHANGELOG.md index a8951ebdc3..b113ff98af 100644 --- a/packages/pagination/CHANGELOG.md +++ b/packages/pagination/CHANGELOG.md @@ -1,5 +1,15 @@ # @leafygreen-ui/pagination +## 3.0.15 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/select@14.1.8 + - @leafygreen-ui/typography@20.1.9 + ## 3.0.14 ### Patch Changes diff --git a/packages/pagination/package.json b/packages/pagination/package.json index 11ad0029a9..cd1cacbc7b 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/pagination", - "version": "3.0.14", + "version": "3.0.15", "description": "leafyGreen UI Kit Pagination", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/pagination", diff --git a/packages/palette/package.json b/packages/palette/package.json index 516213ccd7..9bc60ea159 100644 --- a/packages/palette/package.json +++ b/packages/palette/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/password-input/CHANGELOG.md b/packages/password-input/CHANGELOG.md index a6c89cbafb..15e2b03e53 100644 --- a/packages/password-input/CHANGELOG.md +++ b/packages/password-input/CHANGELOG.md @@ -1,5 +1,15 @@ # @leafygreen-ui/password-input +## 3.0.13 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/form-field@2.0.12 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/typography@20.1.9 + ## 3.0.12 ### Patch Changes diff --git a/packages/password-input/package.json b/packages/password-input/package.json index f6e1f6ca21..a850c0b85a 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/password-input", - "version": "3.0.12", + "version": "3.0.13", "description": "leafyGreen UI Kit Password Input", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/password-input", diff --git a/packages/pipeline/CHANGELOG.md b/packages/pipeline/CHANGELOG.md index 711265a81f..25c8e4f934 100644 --- a/packages/pipeline/CHANGELOG.md +++ b/packages/pipeline/CHANGELOG.md @@ -1,5 +1,13 @@ # @leafygreen-ui/pipeline +## 7.0.14 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/tooltip@13.0.13 + ## 7.0.13 ### Patch Changes diff --git a/packages/pipeline/package.json b/packages/pipeline/package.json index 059db17dc6..3da75cd106 100644 --- a/packages/pipeline/package.json +++ b/packages/pipeline/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/pipeline", - "version": "7.0.13", + "version": "7.0.14", "description": "LeafyGreen UI Kit Pipeline", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/polymorphic/package.json b/packages/polymorphic/package.json index 37529411c8..1b91b546bf 100644 --- a/packages/polymorphic/package.json +++ b/packages/polymorphic/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/polymorphic", diff --git a/packages/popover/package.json b/packages/popover/package.json index 131db175ef..5ea97edecf 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/portal/package.json b/packages/portal/package.json index 0b3e7766fb..a593edbe75 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/radio-box-group/package.json b/packages/radio-box-group/package.json index de3fa16889..cfaa5d51b8 100644 --- a/packages/radio-box-group/package.json +++ b/packages/radio-box-group/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/radio-group/CHANGELOG.md b/packages/radio-group/CHANGELOG.md index e6e94edf94..7c77ecb971 100644 --- a/packages/radio-group/CHANGELOG.md +++ b/packages/radio-group/CHANGELOG.md @@ -1,5 +1,11 @@ # @leafygreen-ui/radio-group +## 12.0.12 + +### Patch Changes + +- @leafygreen-ui/typography@20.1.9 + ## 12.0.11 ### Patch Changes diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index 0ba6474ed5..35b1971eec 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/radio-group", - "version": "12.0.11", + "version": "12.0.12", "description": "leafyGreen UI Kit RadioGroup", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/ripple/package.json b/packages/ripple/package.json index e11a074c5b..894f1b57b8 100644 --- a/packages/ripple/package.json +++ b/packages/ripple/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/search-input/CHANGELOG.md b/packages/search-input/CHANGELOG.md index 2c1818e0b7..3727842f7e 100644 --- a/packages/search-input/CHANGELOG.md +++ b/packages/search-input/CHANGELOG.md @@ -1,5 +1,15 @@ # @leafygreen-ui/search-input +## 5.0.14 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/input-option@3.0.12 + - @leafygreen-ui/typography@20.1.9 + ## 5.0.13 ### Patch Changes diff --git a/packages/search-input/package.json b/packages/search-input/package.json index 308cea04ee..e964c97187 100644 --- a/packages/search-input/package.json +++ b/packages/search-input/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/search-input", - "version": "5.0.13", + "version": "5.0.14", "description": "leafyGreen UI Kit Search Input", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/search-input", diff --git a/packages/segmented-control/CHANGELOG.md b/packages/segmented-control/CHANGELOG.md index 5e4e2fb759..eff216fd03 100644 --- a/packages/segmented-control/CHANGELOG.md +++ b/packages/segmented-control/CHANGELOG.md @@ -1,5 +1,13 @@ # @leafygreen-ui/segmented-control +## 10.0.13 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/typography@20.1.9 + ## 10.0.12 ### Patch Changes diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index cd2b885980..48aad87208 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/segmented-control", - "version": "10.0.12", + "version": "10.0.13", "description": "leafyGreen UI Kit Segmented Control", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/select/CHANGELOG.md b/packages/select/CHANGELOG.md index bb4504cf87..f593e653b3 100644 --- a/packages/select/CHANGELOG.md +++ b/packages/select/CHANGELOG.md @@ -1,5 +1,16 @@ # @leafygreen-ui/select +## 14.1.8 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/button@23.1.6 + - @leafygreen-ui/form-field@2.0.12 + - @leafygreen-ui/input-option@3.0.12 + - @leafygreen-ui/typography@20.1.9 + ## 14.1.7 ### Patch Changes diff --git a/packages/select/package.json b/packages/select/package.json index a9743256e9..63bf3f2af3 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -1,6 +1,6 @@ { "name": "@leafygreen-ui/select", - "version": "14.1.7", + "version": "14.1.8", "description": "leafyGreen UI Kit Select", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", @@ -19,9 +19,9 @@ } }, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/side-nav/CHANGELOG.md b/packages/side-nav/CHANGELOG.md index dfb97d6930..8c79382e0f 100644 --- a/packages/side-nav/CHANGELOG.md +++ b/packages/side-nav/CHANGELOG.md @@ -1,5 +1,14 @@ # @leafygreen-ui/side-nav +## 16.0.14 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/tooltip@13.0.13 + - @leafygreen-ui/typography@20.1.9 + ## 16.0.13 ### Patch Changes diff --git a/packages/side-nav/package.json b/packages/side-nav/package.json index f7cf4ad206..6552b342b4 100644 --- a/packages/side-nav/package.json +++ b/packages/side-nav/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/side-nav", - "version": "16.0.13", + "version": "16.0.14", "description": "leafyGreen UI Kit Side Nav", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/skeleton-loader/CHANGELOG.md b/packages/skeleton-loader/CHANGELOG.md index dcc57d8d09..f567c8b545 100644 --- a/packages/skeleton-loader/CHANGELOG.md +++ b/packages/skeleton-loader/CHANGELOG.md @@ -1,5 +1,13 @@ # @leafygreen-ui/skeleton-loader +## 2.0.12 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/typography@20.1.9 + ## 2.0.11 ### Patch Changes diff --git a/packages/skeleton-loader/package.json b/packages/skeleton-loader/package.json index 120377fc03..1ac317af29 100644 --- a/packages/skeleton-loader/package.json +++ b/packages/skeleton-loader/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/skeleton-loader", - "version": "2.0.11", + "version": "2.0.12", "description": "leafyGreen UI Kit Skeleton Loader", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/skeleton-loader", diff --git a/packages/split-button/CHANGELOG.md b/packages/split-button/CHANGELOG.md index 6b9ceb34c6..ac6fc811f1 100644 --- a/packages/split-button/CHANGELOG.md +++ b/packages/split-button/CHANGELOG.md @@ -1,5 +1,14 @@ # @leafygreen-ui/split-button +## 4.1.15 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/button@23.1.6 + - @leafygreen-ui/menu@29.0.5 + ## 4.1.14 ### Patch Changes diff --git a/packages/split-button/package.json b/packages/split-button/package.json index 620f78e074..10d54188c3 100644 --- a/packages/split-button/package.json +++ b/packages/split-button/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/split-button", - "version": "4.1.14", + "version": "4.1.15", "description": "leafyGreen UI Kit Split Button", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/split-button", diff --git a/packages/stepper/CHANGELOG.md b/packages/stepper/CHANGELOG.md index 308528dd80..b3f3a6c124 100644 --- a/packages/stepper/CHANGELOG.md +++ b/packages/stepper/CHANGELOG.md @@ -1,5 +1,14 @@ # @leafygreen-ui/stepper +## 5.0.13 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/tooltip@13.0.13 + - @leafygreen-ui/typography@20.1.9 + ## 5.0.12 ### Patch Changes diff --git a/packages/stepper/package.json b/packages/stepper/package.json index 895706dc58..da1c85a543 100644 --- a/packages/stepper/package.json +++ b/packages/stepper/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/stepper", - "version": "5.0.12", + "version": "5.0.13", "description": "leafyGreen UI Kit Stepper", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/table/CHANGELOG.md b/packages/table/CHANGELOG.md index 0d1d0d3a32..b18d96a0bf 100644 --- a/packages/table/CHANGELOG.md +++ b/packages/table/CHANGELOG.md @@ -1,5 +1,15 @@ # @leafygreen-ui/table +## 13.1.10 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/typography@20.1.9 + - @leafygreen-ui/checkbox@16.0.1 + ## 13.1.9 ### Patch Changes diff --git a/packages/table/package.json b/packages/table/package.json index 165f59d986..9529f0081a 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -1,6 +1,6 @@ { "name": "@leafygreen-ui/table", - "version": "13.1.9", + "version": "13.1.10", "description": "leafyGreen UI Kit Table", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", @@ -19,9 +19,9 @@ } }, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/tabs/CHANGELOG.md b/packages/tabs/CHANGELOG.md index 6d1aff3b9e..e1008a2243 100644 --- a/packages/tabs/CHANGELOG.md +++ b/packages/tabs/CHANGELOG.md @@ -1,5 +1,11 @@ # @leafygreen-ui/tabs +## 14.2.5 + +### Patch Changes + +- @leafygreen-ui/typography@20.1.9 + ## 14.2.4 ### Patch Changes diff --git a/packages/tabs/package.json b/packages/tabs/package.json index 7621635c1e..33421b9266 100644 --- a/packages/tabs/package.json +++ b/packages/tabs/package.json @@ -1,6 +1,6 @@ { "name": "@leafygreen-ui/tabs", - "version": "14.2.4", + "version": "14.2.5", "description": "leafyGreen UI Kit Tabs", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", @@ -19,9 +19,9 @@ } }, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/text-area/CHANGELOG.md b/packages/text-area/CHANGELOG.md index dce80886cc..b3243c5750 100644 --- a/packages/text-area/CHANGELOG.md +++ b/packages/text-area/CHANGELOG.md @@ -1,5 +1,14 @@ # @leafygreen-ui/text-area +## 10.0.12 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/form-field@2.0.12 + - @leafygreen-ui/typography@20.1.9 + ## 10.0.11 ### Patch Changes diff --git a/packages/text-area/package.json b/packages/text-area/package.json index 2014836aa8..ff1aa423f2 100644 --- a/packages/text-area/package.json +++ b/packages/text-area/package.json @@ -1,6 +1,6 @@ { "name": "@leafygreen-ui/text-area", - "version": "10.0.11", + "version": "10.0.12", "description": "leafyGreen UI Kit Text Area", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", @@ -19,9 +19,9 @@ } }, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/text-input/CHANGELOG.md b/packages/text-input/CHANGELOG.md index 48ac75a62f..0de17314a0 100644 --- a/packages/text-input/CHANGELOG.md +++ b/packages/text-input/CHANGELOG.md @@ -1,5 +1,12 @@ # @leafygreen-ui/text-input +## 14.0.13 + +### Patch Changes + +- @leafygreen-ui/form-field@2.0.12 +- @leafygreen-ui/typography@20.1.9 + ## 14.0.12 ### Patch Changes diff --git a/packages/text-input/package.json b/packages/text-input/package.json index 63554ebc84..58d26c6112 100644 --- a/packages/text-input/package.json +++ b/packages/text-input/package.json @@ -1,6 +1,6 @@ { "name": "@leafygreen-ui/text-input", - "version": "14.0.12", + "version": "14.0.13", "description": "leafyGreen UI Kit Text Input", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", @@ -19,9 +19,9 @@ } }, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/toast/CHANGELOG.md b/packages/toast/CHANGELOG.md index b1392a961a..4977b4ea96 100644 --- a/packages/toast/CHANGELOG.md +++ b/packages/toast/CHANGELOG.md @@ -1,5 +1,14 @@ # @leafygreen-ui/toast +## 7.0.14 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/icon-button@16.0.12 + - @leafygreen-ui/typography@20.1.9 + ## 7.0.13 ### Patch Changes diff --git a/packages/toast/package.json b/packages/toast/package.json index 1d653332f1..4b9d921c84 100644 --- a/packages/toast/package.json +++ b/packages/toast/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/toast", - "version": "7.0.13", + "version": "7.0.14", "description": "leafyGreen UI Kit Toast", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/toggle/CHANGELOG.md b/packages/toggle/CHANGELOG.md index b1de50071d..b8853a4cf0 100644 --- a/packages/toggle/CHANGELOG.md +++ b/packages/toggle/CHANGELOG.md @@ -1,5 +1,12 @@ # @leafygreen-ui/toggle +## 11.0.10 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + ## 11.0.9 ### Patch Changes diff --git a/packages/toggle/package.json b/packages/toggle/package.json index 0580840066..40a1316d8b 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -1,6 +1,6 @@ { "name": "@leafygreen-ui/toggle", - "version": "11.0.9", + "version": "11.0.10", "description": "LeafyGreen UI Kit Toggle", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", @@ -19,9 +19,9 @@ } }, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/tokens/package.json b/packages/tokens/package.json index cb3ff3fee4..6014f21e75 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -7,9 +7,9 @@ "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/tooltip/CHANGELOG.md b/packages/tooltip/CHANGELOG.md index d5506e2639..d78e03c5c8 100644 --- a/packages/tooltip/CHANGELOG.md +++ b/packages/tooltip/CHANGELOG.md @@ -1,5 +1,13 @@ # @leafygreen-ui/tooltip +## 13.0.13 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + - @leafygreen-ui/typography@20.1.9 + ## 13.0.12 ### Patch Changes diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json index bdcd5999f5..400a24aebd 100644 --- a/packages/tooltip/package.json +++ b/packages/tooltip/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/tooltip", - "version": "13.0.12", + "version": "13.0.13", "description": "LeafyGreen UI Kit Tooltip", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/packages/typography/CHANGELOG.md b/packages/typography/CHANGELOG.md index 7004b51604..0da5c77b3f 100644 --- a/packages/typography/CHANGELOG.md +++ b/packages/typography/CHANGELOG.md @@ -1,5 +1,12 @@ # @leafygreen-ui/typography +## 20.1.9 + +### Patch Changes + +- Updated dependencies [eca6e3fdc] + - @leafygreen-ui/icon@13.4.0 + ## 20.1.8 ### Patch Changes diff --git a/packages/typography/package.json b/packages/typography/package.json index f4f96087b8..8a87eab294 100644 --- a/packages/typography/package.json +++ b/packages/typography/package.json @@ -1,15 +1,15 @@ { "name": "@leafygreen-ui/typography", - "version": "20.1.8", + "version": "20.1.9", "description": "leafyGreen UI Kit Typography", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "typesVersions": {}, "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "license": "Apache-2.0", "publishConfig": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4623b32d84..f216121eec 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,6 +38,9 @@ importers: '@lg-tools/meta': specifier: workspace:^ version: link:tools/meta + '@lg-tools/prompt-kit': + specifier: workspace:^ + version: link:tools/prompt-kit '@lg-tools/storybook-addon': specifier: workspace:^ version: link:tools/storybook-addon @@ -211,9 +214,9 @@ importers: echarts: specifier: ^5.5.1 version: 5.5.1 - lodash.debounce: - specifier: ^4.0.8 - version: 4.0.8 + lodash: + specifier: ^4.17.21 + version: 4.17.21 devDependencies: '@faker-js/faker': specifier: 8.0.2 @@ -1792,7 +1795,7 @@ importers: version: 11.0.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250509) + version: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250521) xml2json: specifier: ^0.12.0 version: 0.12.0 @@ -3336,6 +3339,9 @@ importers: '@lg-tools/lint': specifier: workspace:^ version: link:../lint + '@lg-tools/prompt-kit': + specifier: workspace:^ + version: link:../prompt-kit '@lg-tools/slackbot': specifier: workspace:^ version: link:../slackbot @@ -3373,8 +3379,8 @@ importers: specifier: 1.1.0 version: 1.1.0 jscodeshift: - specifier: 0.15.2 - version: 0.15.2(@babel/preset-env@7.24.3(@babel/core@7.24.3)) + specifier: 17.3.0 + version: 17.3.0(@babel/preset-env@7.24.3(@babel/core@7.27.1)) prettier: specifier: 2.8.8 version: 2.8.8 @@ -3583,6 +3589,21 @@ importers: specifier: 4.17.21 version: 4.17.21 + tools/prompt-kit: + dependencies: + '@lg-tools/build': + specifier: workspace:^ + version: link:../build + '@types/fs-extra': + specifier: 11.0.1 + version: 11.0.1 + chalk: + specifier: 4.1.2 + version: 4.1.2 + fs-extra: + specifier: 11.1.1 + version: 11.1.1 + tools/slackbot: dependencies: '@lg-tools/build': @@ -3669,10 +3690,10 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/react': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) '@storybook/react-webpack5': specifier: 8.6.12 - version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) + version: 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) '@storybook/test': specifier: 8.6.12 version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) @@ -3681,7 +3702,7 @@ importers: version: 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@svgr/webpack': specifier: 8.0.1 - version: 8.0.1(typescript@5.9.0-dev.20250509) + version: 8.0.1(typescript@5.9.0-dev.20250521) assert: specifier: ^2.1.0 version: 2.1.0 @@ -3723,7 +3744,7 @@ importers: version: 18.2.0 react-docgen-typescript: specifier: 2.2.2 - version: 2.2.2(typescript@5.9.0-dev.20250509) + version: 2.2.2(typescript@5.9.0-dev.20250521) react-dom: specifier: ^17.0.0 || ^18.0.0 version: 18.2.0(react@18.2.0) @@ -3874,7 +3895,7 @@ importers: version: 11.1.1 jest: specifier: 29.6.2 - version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) + version: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) jest-axe: specifier: 8.0.0 version: 8.0.0 @@ -3981,10 +4002,18 @@ packages: resolution: {integrity: sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==} engines: {node: '>=6.9.0'} + '@babel/code-frame@7.27.1': + resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} + engines: {node: '>=6.9.0'} + '@babel/compat-data@7.24.1': resolution: {integrity: sha512-Pc65opHDliVpRHuKfzI+gSA4zcgr65O4cl64fFJIWEEh8JoHIHh0Oez1Eo8Arz8zq/JhgKodQaxEwUPRtZylVA==} engines: {node: '>=6.9.0'} + '@babel/compat-data@7.27.1': + resolution: {integrity: sha512-Q+E+rd/yBzNQhXkG+zQnF58e4zoZfBedaxwzPmicKsiK3nt8iJYrSrDbjwFFDGC4f+rPafqRaPH6TsDoSvMf7A==} + engines: {node: '>=6.9.0'} + '@babel/core@7.23.2': resolution: {integrity: sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==} engines: {node: '>=6.9.0'} @@ -3993,6 +4022,10 @@ packages: resolution: {integrity: sha512-5FcvN1JHw2sHJChotgx8Ek0lyuh4kCKelgMTTqhYJJtloNvUfpAFMeNQUtdlIaktwrSV9LtCdqwk48wL2wBacQ==} engines: {node: '>=6.9.0'} + '@babel/core@7.27.1': + resolution: {integrity: sha512-IaaGWsQqfsQWVLqMn9OB92MNN7zukfVA4s7KKAI0KfrrDsZ0yhi5uV4baBuLuN7n3vsZpwP8asPPcVwApxvjBQ==} + engines: {node: '>=6.9.0'} + '@babel/eslint-parser@7.25.9': resolution: {integrity: sha512-5UXfgpK0j0Xr/xIdgdLEhOFxaDZ0bRPWJJchRpqOSur/3rZoPbqqki5mm0p4NE2cs28krBEiSM2MB7//afRSQQ==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} @@ -4004,10 +4037,18 @@ packages: resolution: {integrity: sha512-DfCRfZsBcrPEHUfuBMgbJ1Ut01Y/itOs+hY2nFLgqsqXd52/iSiVq5TITtUasIUgm+IIKdY2/1I7auiQOEeC9A==} engines: {node: '>=6.9.0'} + '@babel/generator@7.27.1': + resolution: {integrity: sha512-UnJfnIpc/+JO0/+KRVQNGU+y5taA5vCbwN8+azkX6beii/ZF+enZJSOKo11ZSzGJjlNfJHfQtmQT8H+9TXPG2w==} + engines: {node: '>=6.9.0'} + '@babel/helper-annotate-as-pure@7.22.5': resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==} engines: {node: '>=6.9.0'} + '@babel/helper-annotate-as-pure@7.27.1': + resolution: {integrity: sha512-WnuuDILl9oOBbKnb4L+DyODx7iC47XfzmNCpTttFsSp6hTG7XZxu60+4IO+2/hPfcGOoKbFiwoI/+zwARbNQow==} + engines: {node: '>=6.9.0'} + '@babel/helper-builder-binary-assignment-operator-visitor@7.22.15': resolution: {integrity: sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==} engines: {node: '>=6.9.0'} @@ -4016,12 +4057,22 @@ packages: resolution: {integrity: sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==} engines: {node: '>=6.9.0'} + '@babel/helper-compilation-targets@7.27.1': + resolution: {integrity: sha512-2YaDd/Rd9E598B5+WIc8wJPmWETiiJXFYVE60oX8FDohv7rAUU3CQj+A1MgeEmcsk2+dQuEjIe/GDvig0SqL4g==} + engines: {node: '>=6.9.0'} + '@babel/helper-create-class-features-plugin@7.24.1': resolution: {integrity: sha512-1yJa9dX9g//V6fDebXoEfEsxkZHk3Hcbm+zLhyu6qVgYFLvmTALTeV+jNU9e5RnYtioBrGEOdoI2joMSNQ/+aA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 + '@babel/helper-create-class-features-plugin@7.27.1': + resolution: {integrity: sha512-QwGAmuvM17btKU5VqXfb+Giw4JcN0hjuufz3DYnpeVDvZLAObloM77bhMXiqry3Iio+Ai4phVRDwl6WU10+r5A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + '@babel/helper-create-regexp-features-plugin@7.22.15': resolution: {integrity: sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==} engines: {node: '>=6.9.0'} @@ -4049,24 +4100,46 @@ packages: resolution: {integrity: sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==} engines: {node: '>=6.9.0'} + '@babel/helper-member-expression-to-functions@7.27.1': + resolution: {integrity: sha512-E5chM8eWjTp/aNoVpcbfM7mLxu9XGLWYise2eBKGQomAk/Mb4XoxyqXTZbuTohbsl8EKqdlMhnDI2CCLfcs9wA==} + engines: {node: '>=6.9.0'} + '@babel/helper-module-imports@7.24.3': resolution: {integrity: sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==} engines: {node: '>=6.9.0'} + '@babel/helper-module-imports@7.27.1': + resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==} + engines: {node: '>=6.9.0'} + '@babel/helper-module-transforms@7.23.3': resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 + '@babel/helper-module-transforms@7.27.1': + resolution: {integrity: sha512-9yHn519/8KvTU5BjTVEEeIM3w9/2yXNKoD82JifINImhpKkARMJKPP59kLo+BafpdN5zgNeIcS4jsGDmd3l58g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + '@babel/helper-optimise-call-expression@7.22.5': resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==} engines: {node: '>=6.9.0'} + '@babel/helper-optimise-call-expression@7.27.1': + resolution: {integrity: sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==} + engines: {node: '>=6.9.0'} + '@babel/helper-plugin-utils@7.24.0': resolution: {integrity: sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==} engines: {node: '>=6.9.0'} + '@babel/helper-plugin-utils@7.27.1': + resolution: {integrity: sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==} + engines: {node: '>=6.9.0'} + '@babel/helper-remap-async-to-generator@7.22.20': resolution: {integrity: sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==} engines: {node: '>=6.9.0'} @@ -4079,6 +4152,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0 + '@babel/helper-replace-supers@7.27.1': + resolution: {integrity: sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + '@babel/helper-simple-access@7.22.5': resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} engines: {node: '>=6.9.0'} @@ -4087,6 +4166,10 @@ packages: resolution: {integrity: sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==} engines: {node: '>=6.9.0'} + '@babel/helper-skip-transparent-expression-wrappers@7.27.1': + resolution: {integrity: sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==} + engines: {node: '>=6.9.0'} + '@babel/helper-split-export-declaration@7.22.6': resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} engines: {node: '>=6.9.0'} @@ -4095,14 +4178,26 @@ packages: resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} engines: {node: '>=6.9.0'} + '@babel/helper-string-parser@7.27.1': + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} + engines: {node: '>=6.9.0'} + '@babel/helper-validator-identifier@7.22.20': resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} engines: {node: '>=6.9.0'} + '@babel/helper-validator-identifier@7.27.1': + resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==} + engines: {node: '>=6.9.0'} + '@babel/helper-validator-option@7.23.5': resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==} engines: {node: '>=6.9.0'} + '@babel/helper-validator-option@7.27.1': + resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} + engines: {node: '>=6.9.0'} + '@babel/helper-wrap-function@7.22.20': resolution: {integrity: sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==} engines: {node: '>=6.9.0'} @@ -4111,6 +4206,10 @@ packages: resolution: {integrity: sha512-BpU09QqEe6ZCHuIHFphEFgvNSrubve1FtyMton26ekZ85gRGi6LrTF7zArARp2YvyFxloeiRmtSCq5sjh1WqIg==} engines: {node: '>=6.9.0'} + '@babel/helpers@7.27.1': + resolution: {integrity: sha512-FCvFTm0sWV8Fxhpp2McP5/W53GPllQ9QeQ7SiqGWjMf/LVG07lFa5+pgK05IRhVwtvafT22KF+ZSnM9I545CvQ==} + engines: {node: '>=6.9.0'} + '@babel/highlight@7.24.2': resolution: {integrity: sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==} engines: {node: '>=6.9.0'} @@ -4125,6 +4224,11 @@ packages: engines: {node: '>=6.0.0'} hasBin: true + '@babel/parser@7.27.1': + resolution: {integrity: sha512-I0dZ3ZpCrJ1c04OqlNsQcKiZlsrXf/kkE4FXzID9rIOYICsAbA8mMDzhW/luRNAHdCNt7os/u8wenklZDlUVUQ==} + engines: {node: '>=6.0.0'} + hasBin: true + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.24.1': resolution: {integrity: sha512-y4HqEnkelJIOQGd+3g1bTeKsA5c6qM7eOn7VggGVbBc0y8MLSKHacwcIE2PplNlQSj0PqS9rrXL/nkPVK+kUNg==} engines: {node: '>=6.9.0'} @@ -4192,8 +4296,8 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 - '@babel/plugin-syntax-flow@7.23.3': - resolution: {integrity: sha512-YZiAIpkJAwQXBJLIQbRFayR5c+gJ35Vcz3bg954k7cd73zqjvhacJuL9RbrzPz8qPmZdgqP6EUKwy0PCNhaaPA==} + '@babel/plugin-syntax-flow@7.27.1': + resolution: {integrity: sha512-p9OkPbZ5G7UT1MofwYFigGebnrzGJacoBSQM0/6bi/PUMVE+qlWDD/OalvQKbwgQzU6dl0xAv6r4X7Jme0RYxA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -4226,6 +4330,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-syntax-jsx@7.27.1': + resolution: {integrity: sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-syntax-logical-assignment-operators@7.10.4': resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} peerDependencies: @@ -4274,6 +4384,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-syntax-typescript@7.27.1': + resolution: {integrity: sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-syntax-unicode-sets-regex@7.18.6': resolution: {integrity: sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==} engines: {node: '>=6.9.0'} @@ -4316,6 +4432,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-class-properties@7.27.1': + resolution: {integrity: sha512-D0VcalChDMtuRvJIu3U/fwWjf8ZMykz5iZsg77Nuj821vCKI3zCyRLwRdWbsuJ/uRwZhZ002QtCqIkwC/ZkvbA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-class-static-block@7.24.1': resolution: {integrity: sha512-FUHlKCn6J3ERiu8Dv+4eoz7w8+kFLSyeVG4vDAikwADGjUCoHw/JHokyGtr8OR4UjpwPVivyF+h8Q5iv/JmrtA==} engines: {node: '>=6.9.0'} @@ -4370,8 +4492,8 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 - '@babel/plugin-transform-flow-strip-types@7.23.3': - resolution: {integrity: sha512-26/pQTf9nQSNVJCrLB1IkHUKyPxR+lMrH2QDPG89+Znu9rAMbtrybdbWeE9bb7gzjmE5iXHEY+e0HUwM6Co93Q==} + '@babel/plugin-transform-flow-strip-types@7.27.1': + resolution: {integrity: sha512-G5eDKsu50udECw7DL2AcsysXiQyB7Nfg521t2OAJ4tbfTJ27doHLeF/vlI1NZGlLdbb/v+ibvtL1YBQqYOwJGg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -4424,6 +4546,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-modules-commonjs@7.27.1': + resolution: {integrity: sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-modules-systemjs@7.24.1': resolution: {integrity: sha512-mqQ3Zh9vFO1Tpmlt8QPnbwGHzNz3lpNEMxQb1kAemn/erstyqw1r9KeOlOfo3y6xAnFEcOv2tSyrXfmMk+/YZA==} engines: {node: '>=6.9.0'} @@ -4454,6 +4582,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-nullish-coalescing-operator@7.27.1': + resolution: {integrity: sha512-aGZh6xMo6q9vq1JGcw58lZ1Z0+i0xB2x0XaauNIUXd6O1xXc3RwoWEBlsTQrY4KQ9Jf0s5rgD6SiNkaUdJegTA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-numeric-separator@7.24.1': resolution: {integrity: sha512-7GAsGlK4cNL2OExJH1DzmDeKnRv/LXq0eLUSvudrehVA5Rgg4bIrqEUW29FbKMBRT0ztSqisv7kjP+XIC4ZMNw==} engines: {node: '>=6.9.0'} @@ -4484,6 +4618,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-optional-chaining@7.27.1': + resolution: {integrity: sha512-BQmKPPIuc8EkZgNKsv0X4bPmOoayeu4F1YCwx2/CfmDSXDbp7GnzlUH+/ul5VGfRg1AoFPsrIThlEBj2xb4CAg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-parameters@7.24.1': resolution: {integrity: sha512-8Jl6V24g+Uw5OGPeWNKrKqXPDw2YDjLc53ojwfMcKwlEoETKU9rU0mHUtcg9JntWI/QYzGAXNWEcVHZ+fR+XXg==} engines: {node: '>=6.9.0'} @@ -4496,6 +4636,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-private-methods@7.27.1': + resolution: {integrity: sha512-10FVt+X55AjRAYI9BrdISN9/AQWHqldOeZDUoLyif1Kn05a56xVBXb8ZouL8pZ9jem8QpXaOt8TS7RHUIS+GPA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-private-property-in-object@7.24.1': resolution: {integrity: sha512-pTHxDVa0BpUbvAgX3Gat+7cSciXqUcY9j2VZKTbSB6+VQGpNgNO9ailxTGHSXlqOnX1Hcx1Enme2+yv7VqP9bg==} engines: {node: '>=6.9.0'} @@ -4586,6 +4732,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-typescript@7.27.1': + resolution: {integrity: sha512-Q5sT5+O4QUebHdbwKedFBEwRLb02zJ7r4A5Gg2hUoLuU3FjdMcyqcywqUrLCaDsFCxzokf7u9kuy7qz51YUuAg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-unicode-escapes@7.24.1': resolution: {integrity: sha512-RlkVIcWT4TLI96zM660S877E7beKlQw7Ig+wqkKBiWfj0zH5Q4h50q6er4wzZKRNSYpfo6ILJ+hrJAGSX2qcNw==} engines: {node: '>=6.9.0'} @@ -4616,8 +4768,8 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 - '@babel/preset-flow@7.24.0': - resolution: {integrity: sha512-cum/nSi82cDaSJ21I4PgLTVlj0OXovFk6GRguJYe/IKg6y6JHLTbJhybtX4k35WT9wdeJfEVjycTixMhBHd0Dg==} + '@babel/preset-flow@7.27.1': + resolution: {integrity: sha512-ez3a2it5Fn6P54W8QkbfIyyIbxlXvcxyWHHvno1Wg0Ej5eiJY5hBb8ExttoIOJJk7V2dZE6prP7iby5q2aQ0Lg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -4639,12 +4791,24 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/preset-typescript@7.27.1': + resolution: {integrity: sha512-l7WfQfX0WK4M0v2RudjuQK4u99BS6yLHYEmdtVPP7lKV013zr9DygFuWNlnbvQ9LR+LS0Egz/XAvGx5U9MX0fQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/register@7.23.7': resolution: {integrity: sha512-EjJeB6+kvpk+Y5DAkEAmbOBEFkh9OASx0huoEkqYTFxAZHzOAX2Oh5uwAUuL2rUddqfM0SA+KPXV2TbzoZ2kvQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/register@7.27.1': + resolution: {integrity: sha512-K13lQpoV54LATKkzBpBAEu1GGSIRzxR9f4IN4V8DCDgiUMo2UDGagEZr3lPeVNJPLkWUi5JE4hCHKneVTwQlYQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/regjsgen@0.8.0': resolution: {integrity: sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==} @@ -4656,14 +4820,26 @@ packages: resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==} engines: {node: '>=6.9.0'} + '@babel/template@7.27.1': + resolution: {integrity: sha512-Fyo3ghWMqkHHpHQCoBs2VnYjR4iWFFjguTDEqA5WgZDOrFesVjMhMM2FSqTKSoUSDO1VQtavj8NFpdRBEvJTtg==} + engines: {node: '>=6.9.0'} + '@babel/traverse@7.24.1': resolution: {integrity: sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==} engines: {node: '>=6.9.0'} + '@babel/traverse@7.27.1': + resolution: {integrity: sha512-ZCYtZciz1IWJB4U61UPu4KEaqyfj+r5T1Q5mqPo+IBpcG9kHv30Z0aD8LXPgC1trYa6rK0orRyAhqUgk4MjmEg==} + engines: {node: '>=6.9.0'} + '@babel/types@7.24.0': resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==} engines: {node: '>=6.9.0'} + '@babel/types@7.27.1': + resolution: {integrity: sha512-+EzkxvLNfiUeKMgy/3luqfsCWFRXLb7U6wNQTk60tovuckwB15B191tJWvpp4HjiQWdJkCxO3Wbvc6jlk3Xb2Q==} + engines: {node: '>=6.9.0'} + '@bcoe/v8-coverage@0.2.3': resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} @@ -6590,11 +6766,6 @@ packages: resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} engines: {node: '>= 0.4'} - babel-core@7.0.0-bridge.0: - resolution: {integrity: sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==} - peerDependencies: - '@babel/core': ^7.0.0-0 - babel-jest@29.7.0: resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -6692,6 +6863,10 @@ packages: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + breakword@1.0.6: resolution: {integrity: sha512-yjxDAYyK/pBvws9H4xKYpLDpYKEH6CzrBPAuXq3x18I+c/2MkVtT3qAr7Oloi6Dss9qNhPVueAAVU1CSeNDIXw==} @@ -6729,6 +6904,11 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true + browserslist@4.24.5: + resolution: {integrity: sha512-FDToo4Wo82hIdgc1CQ+NQD0hEhmpPjrZ3hiUgwgOG6IuTdlpr8jdjyG24P6cNP1yJpTLzS5OcGgSw0xmDU1/Tw==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + bser@2.1.1: resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} @@ -7321,6 +7501,9 @@ packages: electron-to-chromium@1.4.686: resolution: {integrity: sha512-3avY1B+vUzNxEgkBDpKOP8WarvUAEwpRaiCL0He5OKWEFxzaOFiq4WoZEZe7qh0ReS7DiWoHMnYoQCKxNZNzSg==} + electron-to-chromium@1.5.150: + resolution: {integrity: sha512-rOOkP2ZUMx1yL4fCxXQKDHQ8ZXwisb2OycOQVKHgvB3ZI4CvehOd4y2tfnnLDieJ3Zs1RL1Dlp3cMkyIn7nnXA==} + elliptic@6.6.1: resolution: {integrity: sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==} @@ -7424,6 +7607,10 @@ packages: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} engines: {node: '>=6'} + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + escape-string-regexp@1.0.5: resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} engines: {node: '>=0.8.0'} @@ -7681,6 +7868,10 @@ packages: resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} engines: {node: '>=8'} + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + find-cache-dir@2.1.0: resolution: {integrity: sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==} engines: {node: '>=6'} @@ -8548,8 +8739,9 @@ packages: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true - jscodeshift@0.15.2: - resolution: {integrity: sha512-FquR7Okgmc4Sd0aEDwqho3rEiKR3BdvuG9jfdHjLJ6JQoWSMpavug3AoIfnfWhxFlf+5pzQh8qjqz0DWFrNQzA==} + jscodeshift@17.3.0: + resolution: {integrity: sha512-LjFrGOIORqXBU+jwfC9nbkjmQfFldtMIoS6d9z2LG/lkmyNXsJAySPT+2SWXJEoE68/bCWcxKpXH37npftgmow==} + engines: {node: '>=16'} hasBin: true peerDependencies: '@babel/preset-env': ^7.1.6 @@ -8579,6 +8771,11 @@ packages: engines: {node: '>=4'} hasBin: true + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} @@ -9015,6 +9212,10 @@ packages: resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} engines: {node: '>=8.6'} + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + miller-rabin@4.0.1: resolution: {integrity: sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==} hasBin: true @@ -9144,10 +9345,6 @@ packages: node-abort-controller@3.1.1: resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==} - node-dir@0.1.17: - resolution: {integrity: sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==} - engines: {node: '>= 0.10.5'} - node-expat@2.4.0: resolution: {integrity: sha512-X8Y/Zk/izfNgfayeOeUGqze7KlaOwVJ9SDTjHUMKd0hu0aFTRpLlLCBwmx79cTPiQWD24I1YOafF+U+rTvEMfQ==} @@ -9172,6 +9369,9 @@ packages: node-releases@2.0.14: resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} + node-releases@2.0.19: + resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==} + node-stdlib-browser@1.3.1: resolution: {integrity: sha512-X75ZN8DCLftGM5iKwoYLA3rjnrAEs97MkzvSd4q2746Tgpg8b8XWiBGiBG4ZpgcAqBgtgPHTiAc8ZMCvZuikDw==} engines: {node: '>=10'} @@ -9753,8 +9953,8 @@ packages: resolution: {integrity: sha512-E5qICoPoNL4yU0H0NoBDntNB0Q5oMSNh9usFctYniLBluTthi3RsQVBXIJNbApOlvSwW/RGxIuokPcAc59J5fQ==} engines: {node: '>= 4'} - recast@0.23.4: - resolution: {integrity: sha512-qtEDqIZGVcSZCHniWwZWbRy79Dc6Wp3kT/UmDA2RJKBPg7+7k51aQBZirHmUGn5uvHf2rg8DkjizrN26k61ATw==} + recast@0.23.11: + resolution: {integrity: sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==} engines: {node: '>= 4'} recast@0.23.9: @@ -9877,11 +10077,6 @@ packages: rfdc@1.3.0: resolution: {integrity: sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==} - rimraf@2.6.3: - resolution: {integrity: sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==} - deprecated: Rimraf versions prior to v4 are no longer supported - hasBin: true - rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} deprecated: Rimraf versions prior to v4 are no longer supported @@ -10309,10 +10504,6 @@ packages: resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} engines: {node: '>=6'} - temp@0.8.4: - resolution: {integrity: sha512-s0ZZzd0BzYv5tLSptZooSjK8oj6C+c19p7Vqta9+6NPOf7r+fxq0cJe6/oN4LTC79sy5NY8ucOJNgwsKCSbfqg==} - engines: {node: '>=6.0.0'} - term-size@2.2.1: resolution: {integrity: sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==} engines: {node: '>=8'} @@ -10373,6 +10564,10 @@ packages: resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} engines: {node: '>=0.6.0'} + tmp@0.2.3: + resolution: {integrity: sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==} + engines: {node: '>=14.14'} + tmpl@1.0.5: resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} @@ -10562,8 +10757,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.9.0-dev.20250509: - resolution: {integrity: sha512-PPOIOmDBfpOZKdHB4y3BGEQutgH9iWrwepGl9eWnQnccMzkgplMYSChOWM2i3ViRr2dZu86zSQF8lwuHkXy+sQ==} + typescript@5.9.0-dev.20250521: + resolution: {integrity: sha512-wxrj9XlTy2D5iqAPWHWKgnXGkHVTgouDmMPhGrxqcX1z5STJKqDCXnebUFKM7xXahfEPtWFIyN7ouyg2G56e7g==} engines: {node: '>=14.17'} hasBin: true @@ -10650,6 +10845,12 @@ packages: peerDependencies: browserslist: '>= 4.21.0' + update-browserslist-db@1.1.3: + resolution: {integrity: sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} @@ -10867,13 +11068,14 @@ packages: wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - write-file-atomic@2.4.3: - resolution: {integrity: sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==} - write-file-atomic@4.0.2: resolution: {integrity: sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} + write-file-atomic@5.0.1: + resolution: {integrity: sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + ws@8.16.0: resolution: {integrity: sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==} engines: {node: '>=10.0.0'} @@ -10994,8 +11196,16 @@ snapshots: '@babel/highlight': 7.24.2 picocolors: 1.0.0 + '@babel/code-frame@7.27.1': + dependencies: + '@babel/helper-validator-identifier': 7.27.1 + js-tokens: 4.0.0 + picocolors: 1.1.1 + '@babel/compat-data@7.24.1': {} + '@babel/compat-data@7.27.1': {} + '@babel/core@7.23.2': dependencies: '@ampproject/remapping': 2.2.1 @@ -11036,6 +11246,26 @@ snapshots: transitivePeerDependencies: - supports-color + '@babel/core@7.27.1': + dependencies: + '@ampproject/remapping': 2.2.1 + '@babel/code-frame': 7.27.1 + '@babel/generator': 7.27.1 + '@babel/helper-compilation-targets': 7.27.1 + '@babel/helper-module-transforms': 7.27.1(@babel/core@7.27.1) + '@babel/helpers': 7.27.1 + '@babel/parser': 7.27.1 + '@babel/template': 7.27.1 + '@babel/traverse': 7.27.1 + '@babel/types': 7.27.1 + convert-source-map: 2.0.0 + debug: 4.4.0 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + '@babel/eslint-parser@7.25.9(@babel/core@7.23.2)(eslint@9.16.0)': dependencies: '@babel/core': 7.23.2 @@ -11051,10 +11281,22 @@ snapshots: '@jridgewell/trace-mapping': 0.3.25 jsesc: 2.5.2 + '@babel/generator@7.27.1': + dependencies: + '@babel/parser': 7.27.1 + '@babel/types': 7.27.1 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 + jsesc: 3.1.0 + '@babel/helper-annotate-as-pure@7.22.5': dependencies: '@babel/types': 7.24.0 + '@babel/helper-annotate-as-pure@7.27.1': + dependencies: + '@babel/types': 7.27.1 + '@babel/helper-builder-binary-assignment-operator-visitor@7.22.15': dependencies: '@babel/types': 7.24.0 @@ -11067,6 +11309,14 @@ snapshots: lru-cache: 5.1.1 semver: 6.3.1 + '@babel/helper-compilation-targets@7.27.1': + dependencies: + '@babel/compat-data': 7.27.1 + '@babel/helper-validator-option': 7.27.1 + browserslist: 4.24.5 + lru-cache: 5.1.1 + semver: 6.3.1 + '@babel/helper-create-class-features-plugin@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11080,6 +11330,33 @@ snapshots: '@babel/helper-split-export-declaration': 7.22.6 semver: 6.3.1 + '@babel/helper-create-class-features-plugin@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + '@babel/helper-replace-supers': 7.24.1(@babel/core@7.27.1) + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + semver: 6.3.1 + optional: true + + '@babel/helper-create-class-features-plugin@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-annotate-as-pure': 7.27.1 + '@babel/helper-member-expression-to-functions': 7.27.1 + '@babel/helper-optimise-call-expression': 7.27.1 + '@babel/helper-replace-supers': 7.27.1(@babel/core@7.27.1) + '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 + '@babel/traverse': 7.27.1 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + '@babel/helper-create-regexp-features-plugin@7.22.15(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11087,6 +11364,14 @@ snapshots: regexpu-core: 5.3.2 semver: 6.3.1 + '@babel/helper-create-regexp-features-plugin@7.22.15(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-annotate-as-pure': 7.22.5 + regexpu-core: 5.3.2 + semver: 6.3.1 + optional: true + '@babel/helper-define-polyfill-provider@0.6.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11098,6 +11383,18 @@ snapshots: transitivePeerDependencies: - supports-color + '@babel/helper-define-polyfill-provider@0.6.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-plugin-utils': 7.24.0 + debug: 4.3.4 + lodash.debounce: 4.0.8 + resolve: 1.22.4 + transitivePeerDependencies: + - supports-color + optional: true + '@babel/helper-environment-visitor@7.22.20': {} '@babel/helper-function-name@7.23.0': @@ -11113,10 +11410,24 @@ snapshots: dependencies: '@babel/types': 7.24.0 + '@babel/helper-member-expression-to-functions@7.27.1': + dependencies: + '@babel/traverse': 7.27.1 + '@babel/types': 7.27.1 + transitivePeerDependencies: + - supports-color + '@babel/helper-module-imports@7.24.3': dependencies: '@babel/types': 7.24.0 + '@babel/helper-module-imports@7.27.1': + dependencies: + '@babel/traverse': 7.27.1 + '@babel/types': 7.27.1 + transitivePeerDependencies: + - supports-color + '@babel/helper-module-transforms@7.23.3(@babel/core@7.23.2)': dependencies: '@babel/core': 7.23.2 @@ -11135,12 +11446,37 @@ snapshots: '@babel/helper-split-export-declaration': 7.22.6 '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-module-transforms@7.23.3(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.24.3 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + optional: true + + '@babel/helper-module-transforms@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-module-imports': 7.27.1 + '@babel/helper-validator-identifier': 7.27.1 + '@babel/traverse': 7.27.1 + transitivePeerDependencies: + - supports-color + '@babel/helper-optimise-call-expression@7.22.5': dependencies: '@babel/types': 7.24.0 + '@babel/helper-optimise-call-expression@7.27.1': + dependencies: + '@babel/types': 7.27.1 + '@babel/helper-plugin-utils@7.24.0': {} + '@babel/helper-plugin-utils@7.27.1': {} + '@babel/helper-remap-async-to-generator@7.22.20(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11148,6 +11484,14 @@ snapshots: '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-wrap-function': 7.22.20 + '@babel/helper-remap-async-to-generator@7.22.20(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-wrap-function': 7.22.20 + optional: true + '@babel/helper-replace-supers@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11155,6 +11499,23 @@ snapshots: '@babel/helper-member-expression-to-functions': 7.23.0 '@babel/helper-optimise-call-expression': 7.22.5 + '@babel/helper-replace-supers@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-member-expression-to-functions': 7.23.0 + '@babel/helper-optimise-call-expression': 7.22.5 + optional: true + + '@babel/helper-replace-supers@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-member-expression-to-functions': 7.27.1 + '@babel/helper-optimise-call-expression': 7.27.1 + '@babel/traverse': 7.27.1 + transitivePeerDependencies: + - supports-color + '@babel/helper-simple-access@7.22.5': dependencies: '@babel/types': 7.24.0 @@ -11163,16 +11524,29 @@ snapshots: dependencies: '@babel/types': 7.24.0 + '@babel/helper-skip-transparent-expression-wrappers@7.27.1': + dependencies: + '@babel/traverse': 7.27.1 + '@babel/types': 7.27.1 + transitivePeerDependencies: + - supports-color + '@babel/helper-split-export-declaration@7.22.6': dependencies: '@babel/types': 7.24.0 '@babel/helper-string-parser@7.23.4': {} + '@babel/helper-string-parser@7.27.1': {} + '@babel/helper-validator-identifier@7.22.20': {} + '@babel/helper-validator-identifier@7.27.1': {} + '@babel/helper-validator-option@7.23.5': {} + '@babel/helper-validator-option@7.27.1': {} + '@babel/helper-wrap-function@7.22.20': dependencies: '@babel/helper-function-name': 7.23.0 @@ -11187,6 +11561,11 @@ snapshots: transitivePeerDependencies: - supports-color + '@babel/helpers@7.27.1': + dependencies: + '@babel/template': 7.27.1 + '@babel/types': 7.27.1 + '@babel/highlight@7.24.2': dependencies: '@babel/helper-validator-identifier': 7.22.20 @@ -11202,11 +11581,21 @@ snapshots: dependencies: '@babel/types': 7.24.0 + '@babel/parser@7.27.1': + dependencies: + '@babel/types': 7.27.1 + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11214,12 +11603,27 @@ snapshots: '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 '@babel/plugin-transform-optional-chaining': 7.24.1(@babel/core@7.24.3) + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/plugin-transform-optional-chaining': 7.24.1(@babel/core@7.27.1) + optional: true + '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-proposal-export-default-from@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11230,11 +11634,22 @@ 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.27.1)': + dependencies: + '@babel/core': 7.27.1 + 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.24.0 + '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11245,16 +11660,34 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-syntax-export-default-from@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11265,92 +11698,193 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 - '@babel/plugin-syntax-flow@7.23.3(@babel/core@7.24.3)': + '@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.27.1)': dependencies: - '@babel/core': 7.24.3 + '@babel/core': 7.27.1 '@babel/helper-plugin-utils': 7.24.0 + optional: true + + '@babel/plugin-syntax-flow@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 '@babel/plugin-syntax-import-assertions@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-import-assertions@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-syntax-import-attributes@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-import-attributes@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-syntax-jsx@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-jsx@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + 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.24.0 + '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-syntax-typescript@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-typescript@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-arrow-functions@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-arrow-functions@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-async-generator-functions@7.24.3(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11359,6 +11893,15 @@ snapshots: '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.24.3) '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.24.3) + '@babel/plugin-transform-async-generator-functions@7.24.3(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.27.1) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-async-to-generator@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11366,22 +11909,57 @@ snapshots: '@babel/helper-plugin-utils': 7.24.0 '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.24.3) + '@babel/plugin-transform-async-to-generator@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-module-imports': 7.24.3 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-block-scoped-functions@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-block-scoped-functions@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-block-scoping@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-block-scoping@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-class-properties@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-class-features-plugin': 7.24.1(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-class-properties@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-class-features-plugin': 7.24.1(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + optional: true + + '@babel/plugin-transform-class-properties@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + '@babel/plugin-transform-class-static-block@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11389,6 +11967,14 @@ snapshots: '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.24.3) + '@babel/plugin-transform-class-static-block@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-class-features-plugin': 7.24.1(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-classes@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11401,51 +11987,111 @@ snapshots: '@babel/helper-split-export-declaration': 7.22.6 globals: 11.12.0 + '@babel/plugin-transform-classes@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-replace-supers': 7.24.1(@babel/core@7.27.1) + '@babel/helper-split-export-declaration': 7.22.6 + globals: 11.12.0 + optional: true + '@babel/plugin-transform-computed-properties@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 '@babel/template': 7.24.0 + '@babel/plugin-transform-computed-properties@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/template': 7.24.0 + optional: true + '@babel/plugin-transform-destructuring@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-destructuring@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-dotall-regex@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-dotall-regex@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-duplicate-keys@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-duplicate-keys@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-dynamic-import@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.24.3) + '@babel/plugin-transform-dynamic-import@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-exponentiation-operator@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.15 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-exponentiation-operator@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.15 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-export-namespace-from@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.24.3) - '@babel/plugin-transform-flow-strip-types@7.23.3(@babel/core@7.24.3)': + '@babel/plugin-transform-export-namespace-from@7.24.1(@babel/core@7.27.1)': dependencies: - '@babel/core': 7.24.3 + '@babel/core': 7.27.1 '@babel/helper-plugin-utils': 7.24.0 - '@babel/plugin-syntax-flow': 7.23.3(@babel/core@7.24.3) + '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.27.1) + optional: true + + '@babel/plugin-transform-flow-strip-types@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/plugin-syntax-flow': 7.27.1(@babel/core@7.27.1) '@babel/plugin-transform-for-of@7.24.1(@babel/core@7.24.3)': dependencies: @@ -11453,6 +12099,13 @@ snapshots: '@babel/helper-plugin-utils': 7.24.0 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/plugin-transform-for-of@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + optional: true + '@babel/plugin-transform-function-name@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11460,34 +12113,75 @@ snapshots: '@babel/helper-function-name': 7.23.0 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-function-name@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-json-strings@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.24.3) + '@babel/plugin-transform-json-strings@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-literals@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-literals@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-logical-assignment-operators@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.24.3) + '@babel/plugin-transform-logical-assignment-operators@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-member-expression-literals@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-member-expression-literals@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-modules-amd@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-modules-amd@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-modules-commonjs@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11495,6 +12189,22 @@ snapshots: '@babel/helper-plugin-utils': 7.24.0 '@babel/helper-simple-access': 7.22.5 + '@babel/plugin-transform-modules-commonjs@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-simple-access': 7.22.5 + optional: true + + '@babel/plugin-transform-modules-commonjs@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-module-transforms': 7.27.1(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + '@babel/plugin-transform-modules-systemjs@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11503,35 +12213,83 @@ snapshots: '@babel/helper-plugin-utils': 7.24.0 '@babel/helper-validator-identifier': 7.22.20 + '@babel/plugin-transform-modules-systemjs@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-hoist-variables': 7.22.5 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-validator-identifier': 7.22.20 + optional: true + '@babel/plugin-transform-modules-umd@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-modules-umd@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-named-capturing-groups-regex@7.22.5(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-named-capturing-groups-regex@7.22.5(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-new-target@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-new-target@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-nullish-coalescing-operator@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.3) + '@babel/plugin-transform-nullish-coalescing-operator@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.27.1) + optional: true + + '@babel/plugin-transform-nullish-coalescing-operator@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/plugin-transform-numeric-separator@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.24.3) + '@babel/plugin-transform-numeric-separator@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-object-rest-spread@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11540,18 +12298,41 @@ snapshots: '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.24.3) '@babel/plugin-transform-parameters': 7.24.1(@babel/core@7.24.3) + '@babel/plugin-transform-object-rest-spread@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.27.1) + '@babel/plugin-transform-parameters': 7.24.1(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-object-super@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 '@babel/helper-replace-supers': 7.24.1(@babel/core@7.24.3) + '@babel/plugin-transform-object-super@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-replace-supers': 7.24.1(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-optional-catch-binding@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.24.3) + '@babel/plugin-transform-optional-catch-binding@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-optional-chaining@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11559,17 +12340,54 @@ snapshots: '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.3) + '@babel/plugin-transform-optional-chaining@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.27.1) + optional: true + + '@babel/plugin-transform-optional-chaining@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 + transitivePeerDependencies: + - supports-color + '@babel/plugin-transform-parameters@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-parameters@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-private-methods@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-class-features-plugin': 7.24.1(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-private-methods@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-class-features-plugin': 7.24.1(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + optional: true + + '@babel/plugin-transform-private-methods@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.27.1 + transitivePeerDependencies: + - supports-color + '@babel/plugin-transform-private-property-in-object@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11578,11 +12396,26 @@ snapshots: '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.24.3) + '@babel/plugin-transform-private-property-in-object@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-create-class-features-plugin': 7.24.1(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.27.1) + optional: true + '@babel/plugin-transform-property-literals@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-property-literals@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-react-constant-elements@7.22.5(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11619,37 +12452,81 @@ snapshots: '@babel/helper-plugin-utils': 7.24.0 regenerator-transform: 0.15.2 + '@babel/plugin-transform-regenerator@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + regenerator-transform: 0.15.2 + optional: true + '@babel/plugin-transform-reserved-words@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-reserved-words@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-shorthand-properties@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-shorthand-properties@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-spread@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + '@babel/plugin-transform-spread@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 + optional: true + '@babel/plugin-transform-sticky-regex@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-sticky-regex@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-template-literals@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-template-literals@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-typeof-symbol@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-typeof-symbol@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-typescript@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11658,29 +12535,67 @@ snapshots: '@babel/helper-plugin-utils': 7.24.0 '@babel/plugin-syntax-typescript': 7.24.1(@babel/core@7.24.3) + '@babel/plugin-transform-typescript@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-annotate-as-pure': 7.27.1 + '@babel/helper-create-class-features-plugin': 7.27.1(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-skip-transparent-expression-wrappers': 7.27.1 + '@babel/plugin-syntax-typescript': 7.27.1(@babel/core@7.27.1) + transitivePeerDependencies: + - supports-color + '@babel/plugin-transform-unicode-escapes@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-unicode-escapes@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-unicode-property-regex@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-unicode-property-regex@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-unicode-regex@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-unicode-regex@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/plugin-transform-unicode-sets-regex@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.24.3) '@babel/helper-plugin-utils': 7.24.0 + '@babel/plugin-transform-unicode-sets-regex@7.24.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.27.1) + '@babel/helper-plugin-utils': 7.24.0 + optional: true + '@babel/preset-env@7.24.3(@babel/core@7.24.3)': dependencies: '@babel/compat-data': 7.24.1 @@ -11767,12 +12682,99 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/preset-flow@7.24.0(@babel/core@7.24.3)': + '@babel/preset-env@7.24.3(@babel/core@7.27.1)': dependencies: - '@babel/core': 7.24.3 + '@babel/compat-data': 7.24.1 + '@babel/core': 7.27.1 + '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-plugin-utils': 7.24.0 '@babel/helper-validator-option': 7.23.5 - '@babel/plugin-transform-flow-strip-types': 7.23.3(@babel/core@7.24.3) + '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-proposal-private-property-in-object': 7.21.0-placeholder-for-preset-env.2(@babel/core@7.27.1) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.27.1) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.27.1) + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.27.1) + '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.27.1) + '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.27.1) + '@babel/plugin-syntax-import-assertions': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-syntax-import-attributes': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.27.1) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.27.1) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.27.1) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.27.1) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.27.1) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.27.1) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.27.1) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.27.1) + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.27.1) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.27.1) + '@babel/plugin-syntax-unicode-sets-regex': 7.18.6(@babel/core@7.27.1) + '@babel/plugin-transform-arrow-functions': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-async-generator-functions': 7.24.3(@babel/core@7.27.1) + '@babel/plugin-transform-async-to-generator': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-block-scoped-functions': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-block-scoping': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-class-properties': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-class-static-block': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-classes': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-computed-properties': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-destructuring': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-dotall-regex': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-duplicate-keys': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-dynamic-import': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-exponentiation-operator': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-export-namespace-from': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-for-of': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-function-name': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-json-strings': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-literals': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-logical-assignment-operators': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-member-expression-literals': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-modules-amd': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-modules-commonjs': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-modules-systemjs': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-modules-umd': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/core@7.27.1) + '@babel/plugin-transform-new-target': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-nullish-coalescing-operator': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-numeric-separator': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-object-rest-spread': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-object-super': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-optional-catch-binding': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-optional-chaining': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-parameters': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-private-methods': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-private-property-in-object': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-property-literals': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-regenerator': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-reserved-words': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-shorthand-properties': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-spread': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-sticky-regex': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-template-literals': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-typeof-symbol': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-unicode-escapes': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-unicode-property-regex': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-unicode-regex': 7.24.1(@babel/core@7.27.1) + '@babel/plugin-transform-unicode-sets-regex': 7.24.1(@babel/core@7.27.1) + '@babel/preset-modules': 0.1.6-no-external-plugins(@babel/core@7.27.1) + babel-plugin-polyfill-corejs2: 0.4.10(@babel/core@7.27.1) + babel-plugin-polyfill-corejs3: 0.10.4(@babel/core@7.27.1) + babel-plugin-polyfill-regenerator: 0.6.1(@babel/core@7.27.1) + core-js-compat: 3.36.1 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + optional: true + + '@babel/preset-flow@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-validator-option': 7.27.1 + '@babel/plugin-transform-flow-strip-types': 7.27.1(@babel/core@7.27.1) '@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.24.3)': dependencies: @@ -11781,6 +12783,14 @@ snapshots: '@babel/types': 7.24.0 esutils: 2.0.3 + '@babel/preset-modules@0.1.6-no-external-plugins(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.24.0 + '@babel/types': 7.24.0 + esutils: 2.0.3 + optional: true + '@babel/preset-react@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11800,6 +12810,17 @@ snapshots: '@babel/plugin-transform-modules-commonjs': 7.24.1(@babel/core@7.24.3) '@babel/plugin-transform-typescript': 7.24.1(@babel/core@7.24.3) + '@babel/preset-typescript@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/helper-validator-option': 7.27.1 + '@babel/plugin-syntax-jsx': 7.27.1(@babel/core@7.27.1) + '@babel/plugin-transform-modules-commonjs': 7.27.1(@babel/core@7.27.1) + '@babel/plugin-transform-typescript': 7.27.1(@babel/core@7.27.1) + transitivePeerDependencies: + - supports-color + '@babel/register@7.23.7(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 @@ -11809,6 +12830,15 @@ snapshots: pirates: 4.0.6 source-map-support: 0.5.21 + '@babel/register@7.27.1(@babel/core@7.27.1)': + dependencies: + '@babel/core': 7.27.1 + clone-deep: 4.0.1 + find-cache-dir: 2.1.0 + make-dir: 2.1.0 + pirates: 4.0.6 + source-map-support: 0.5.21 + '@babel/regjsgen@0.8.0': {} '@babel/runtime@7.24.1': @@ -11821,6 +12851,12 @@ snapshots: '@babel/parser': 7.24.1 '@babel/types': 7.24.0 + '@babel/template@7.27.1': + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/parser': 7.27.1 + '@babel/types': 7.27.1 + '@babel/traverse@7.24.1': dependencies: '@babel/code-frame': 7.24.2 @@ -11836,12 +12872,29 @@ snapshots: transitivePeerDependencies: - supports-color + '@babel/traverse@7.27.1': + dependencies: + '@babel/code-frame': 7.27.1 + '@babel/generator': 7.27.1 + '@babel/parser': 7.27.1 + '@babel/template': 7.27.1 + '@babel/types': 7.27.1 + debug: 4.4.0 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + '@babel/types@7.24.0': dependencies: '@babel/helper-string-parser': 7.23.4 '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 + '@babel/types@7.27.1': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.27.1 + '@bcoe/v8-coverage@0.2.3': {} '@bundle-stats/cli-utils@4.18.2(core-js@3.40.0)': @@ -12440,7 +13493,7 @@ snapshots: - ts-node optional: true - '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509))': + '@jest/core@29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521))': dependencies: '@jest/console': 29.6.2 '@jest/reporters': 29.6.2 @@ -12454,7 +13507,7 @@ snapshots: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.5.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -12923,7 +13976,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509)': + '@storybook/builder-webpack5@8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@types/semver': 7.5.0 @@ -12933,7 +13986,7 @@ snapshots: constants-browserify: 1.0.0 css-loader: 6.8.1(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) es-module-lexer: 1.6.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250509)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.0-dev.20250521)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) html-webpack-plugin: 5.5.3(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) magic-string: 0.30.17 path-browserify: 1.0.1 @@ -12951,7 +14004,7 @@ snapshots: webpack-hot-middleware: 2.25.4 webpack-virtual-modules: 0.6.2 optionalDependencies: - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 transitivePeerDependencies: - '@swc/core' - esbuild @@ -13069,11 +14122,11 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509)': + '@storybook/preset-react-webpack@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521)': dependencies: '@storybook/core-webpack': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250509)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250521)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)) '@types/semver': 7.5.0 find-up: 5.0.0 magic-string: 0.30.17 @@ -13086,7 +14139,7 @@ snapshots: tsconfig-paths: 4.2.0 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) optionalDependencies: - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13103,16 +14156,16 @@ snapshots: dependencies: storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250509)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': + '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.0-dev.20250521)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2))': dependencies: debug: 4.4.0 endent: 2.1.0 find-cache-dir: 3.3.2 flat-cache: 3.0.4 micromatch: 4.0.5 - react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250509) + react-docgen-typescript: 2.2.2(typescript@5.9.0-dev.20250521) tslib: 2.6.2 - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) transitivePeerDependencies: - supports-color @@ -13129,16 +14182,16 @@ snapshots: react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) - '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509)': + '@storybook/react-webpack5@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521)': dependencies: - '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) - '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) - '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509) + '@storybook/builder-webpack5': 8.6.12(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) + '@storybook/preset-react-webpack': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) + '@storybook/react': 8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) storybook: 8.6.12(prettier@3.5.3) optionalDependencies: - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 transitivePeerDependencies: - '@storybook/test' - '@swc/core' @@ -13177,7 +14230,7 @@ snapshots: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) typescript: 5.8.3 - '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250509)': + '@storybook/react@8.6.12(@storybook/test@8.6.12(storybook@8.6.12(prettier@3.5.3)))(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(storybook@8.6.12(prettier@3.5.3))(typescript@5.9.0-dev.20250521)': dependencies: '@storybook/components': 8.6.12(storybook@8.6.12(prettier@3.5.3)) '@storybook/global': 5.0.0 @@ -13190,7 +14243,7 @@ snapshots: storybook: 8.6.12(prettier@3.5.3) optionalDependencies: '@storybook/test': 8.6.12(storybook@8.6.12(prettier@3.5.3)) - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 '@storybook/test@8.5.3(storybook@8.6.12(prettier@3.5.3))': dependencies: @@ -13357,12 +14410,12 @@ snapshots: - supports-color - typescript - '@svgr/core@8.0.0(typescript@5.9.0-dev.20250509)': + '@svgr/core@8.0.0(typescript@5.9.0-dev.20250521)': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) camelcase: 6.3.0 - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250509) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250521) snake-case: 3.0.4 transitivePeerDependencies: - supports-color @@ -13407,11 +14460,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250509))': + '@svgr/plugin-jsx@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250521))': dependencies: '@babel/core': 7.24.3 '@svgr/babel-preset': 8.0.0(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250509) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250521) '@svgr/hast-util-to-babel-ast': 8.0.0 svg-parser: 2.0.4 transitivePeerDependencies: @@ -13442,10 +14495,10 @@ snapshots: transitivePeerDependencies: - typescript - '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250509))(typescript@5.9.0-dev.20250509)': + '@svgr/plugin-svgo@8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250521))(typescript@5.9.0-dev.20250521)': dependencies: - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250509) - cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250509) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250521) + cosmiconfig: 8.3.6(typescript@5.9.0-dev.20250521) deepmerge: 4.3.1 svgo: 3.0.2 transitivePeerDependencies: @@ -13476,16 +14529,16 @@ snapshots: - supports-color - typescript - '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250509)': + '@svgr/webpack@8.0.1(typescript@5.9.0-dev.20250521)': dependencies: '@babel/core': 7.24.3 '@babel/plugin-transform-react-constant-elements': 7.22.5(@babel/core@7.24.3) '@babel/preset-env': 7.24.3(@babel/core@7.24.3) '@babel/preset-react': 7.24.1(@babel/core@7.24.3) '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250509) - '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250509)) - '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250509))(typescript@5.9.0-dev.20250509) + '@svgr/core': 8.0.0(typescript@5.9.0-dev.20250521) + '@svgr/plugin-jsx': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250521)) + '@svgr/plugin-svgo': 8.0.1(@svgr/core@8.0.0(typescript@5.9.0-dev.20250521))(typescript@5.9.0-dev.20250521) transitivePeerDependencies: - supports-color - typescript @@ -13689,7 +14742,7 @@ snapshots: '@types/fs-extra@11.0.1': dependencies: '@types/jsonfile': 6.1.1 - '@types/node': 20.4.8 + '@types/node': 20.17.12 '@types/graceful-fs@4.1.6': dependencies: @@ -13757,7 +14810,7 @@ snapshots: '@types/jsonfile@6.1.1': dependencies: - '@types/node': 20.4.8 + '@types/node': 20.17.12 '@types/lodash.debounce@4.0.9': dependencies: @@ -14361,10 +15414,6 @@ snapshots: axobject-query@4.1.0: {} - babel-core@7.0.0-bridge.0(@babel/core@7.24.3): - dependencies: - '@babel/core': 7.24.3 - babel-jest@29.7.0(@babel/core@7.24.3): dependencies: '@babel/core': 7.24.3 @@ -14417,6 +15466,16 @@ snapshots: transitivePeerDependencies: - supports-color + babel-plugin-polyfill-corejs2@0.4.10(@babel/core@7.27.1): + dependencies: + '@babel/compat-data': 7.24.1 + '@babel/core': 7.27.1 + '@babel/helper-define-polyfill-provider': 0.6.1(@babel/core@7.27.1) + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + optional: true + babel-plugin-polyfill-corejs3@0.10.4(@babel/core@7.24.3): dependencies: '@babel/core': 7.24.3 @@ -14425,6 +15484,15 @@ snapshots: transitivePeerDependencies: - supports-color + babel-plugin-polyfill-corejs3@0.10.4(@babel/core@7.27.1): + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-define-polyfill-provider': 0.6.1(@babel/core@7.27.1) + core-js-compat: 3.36.1 + transitivePeerDependencies: + - supports-color + optional: true + babel-plugin-polyfill-regenerator@0.6.1(@babel/core@7.24.3): dependencies: '@babel/core': 7.24.3 @@ -14432,6 +15500,14 @@ snapshots: transitivePeerDependencies: - supports-color + babel-plugin-polyfill-regenerator@0.6.1(@babel/core@7.27.1): + dependencies: + '@babel/core': 7.27.1 + '@babel/helper-define-polyfill-provider': 0.6.1(@babel/core@7.27.1) + transitivePeerDependencies: + - supports-color + optional: true + babel-preset-current-node-syntax@1.0.1(@babel/core@7.24.3): dependencies: '@babel/core': 7.24.3 @@ -14495,6 +15571,10 @@ snapshots: dependencies: fill-range: 7.0.1 + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + breakword@1.0.6: dependencies: wcwidth: 1.0.1 @@ -14559,6 +15639,13 @@ snapshots: node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.23.0) + browserslist@4.24.5: + dependencies: + caniuse-lite: 1.0.30001686 + electron-to-chromium: 1.5.150 + node-releases: 2.0.19 + update-browserslist-db: 1.1.3(browserslist@4.24.5) + bser@2.1.1: dependencies: node-int64: 0.4.0 @@ -14792,14 +15879,14 @@ snapshots: optionalDependencies: typescript: 5.8.3 - cosmiconfig@8.3.6(typescript@5.9.0-dev.20250509): + cosmiconfig@8.3.6(typescript@5.9.0-dev.20250521): dependencies: import-fresh: 3.3.0 js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 optionalDependencies: - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 create-ecdh@4.0.4: dependencies: @@ -15195,7 +16282,7 @@ snapshots: dependencies: semver: 7.6.3 shelljs: 0.8.5 - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 dunder-proto@1.0.1: dependencies: @@ -15214,6 +16301,8 @@ snapshots: electron-to-chromium@1.4.686: {} + electron-to-chromium@1.5.150: {} + elliptic@6.6.1: dependencies: bn.js: 4.12.2 @@ -15410,6 +16499,8 @@ snapshots: escalade@3.1.1: {} + escalade@3.2.0: {} + escape-string-regexp@1.0.5: {} escape-string-regexp@2.0.0: {} @@ -15732,6 +16823,10 @@ snapshots: dependencies: to-regex-range: 5.0.1 + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + find-cache-dir@2.1.0: dependencies: commondir: 1.0.1 @@ -15812,7 +16907,7 @@ snapshots: cross-spawn: 7.0.3 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250509)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): + fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.0-dev.20250521)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): dependencies: '@babel/code-frame': 7.24.2 chalk: 4.1.2 @@ -15826,7 +16921,7 @@ snapshots: schema-utils: 3.3.0 semver: 7.6.3 tapable: 2.2.1 - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 webpack: 5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2) form-data@2.5.1: @@ -16506,16 +17601,16 @@ snapshots: - ts-node optional: true - jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)): + jest-cli@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) '@jest/test-result': 29.6.2 '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 import-local: 3.1.0 - jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) + jest-config: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) jest-util: 29.7.0 jest-validate: 29.6.2 prompts: 2.4.2 @@ -16590,7 +17685,7 @@ snapshots: - supports-color optional: true - jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)): + jest-config@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)): dependencies: '@babel/core': 7.24.3 '@jest/test-sequencer': 29.6.2 @@ -16616,7 +17711,7 @@ snapshots: strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.4.8 - ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509) + ts-node: 10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -16884,12 +17979,12 @@ snapshots: - ts-node optional: true - jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)): + jest@29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)): dependencies: - '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) + '@jest/core': 29.6.2(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509)) + jest-cli: 29.6.2(@types/node@20.4.8)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -16913,30 +18008,28 @@ snapshots: dependencies: argparse: 2.0.1 - jscodeshift@0.15.2(@babel/preset-env@7.24.3(@babel/core@7.24.3)): - dependencies: - '@babel/core': 7.24.3 - '@babel/parser': 7.24.1 - '@babel/plugin-transform-class-properties': 7.24.1(@babel/core@7.24.3) - '@babel/plugin-transform-modules-commonjs': 7.24.1(@babel/core@7.24.3) - '@babel/plugin-transform-nullish-coalescing-operator': 7.24.1(@babel/core@7.24.3) - '@babel/plugin-transform-optional-chaining': 7.24.1(@babel/core@7.24.3) - '@babel/plugin-transform-private-methods': 7.24.1(@babel/core@7.24.3) - '@babel/preset-flow': 7.24.0(@babel/core@7.24.3) - '@babel/preset-typescript': 7.24.1(@babel/core@7.24.3) - '@babel/register': 7.23.7(@babel/core@7.24.3) - babel-core: 7.0.0-bridge.0(@babel/core@7.24.3) - chalk: 4.1.2 + jscodeshift@17.3.0(@babel/preset-env@7.24.3(@babel/core@7.27.1)): + dependencies: + '@babel/core': 7.27.1 + '@babel/parser': 7.27.1 + '@babel/plugin-transform-class-properties': 7.27.1(@babel/core@7.27.1) + '@babel/plugin-transform-modules-commonjs': 7.27.1(@babel/core@7.27.1) + '@babel/plugin-transform-nullish-coalescing-operator': 7.27.1(@babel/core@7.27.1) + '@babel/plugin-transform-optional-chaining': 7.27.1(@babel/core@7.27.1) + '@babel/plugin-transform-private-methods': 7.27.1(@babel/core@7.27.1) + '@babel/preset-flow': 7.27.1(@babel/core@7.27.1) + '@babel/preset-typescript': 7.27.1(@babel/core@7.27.1) + '@babel/register': 7.27.1(@babel/core@7.27.1) flow-parser: 0.229.2 graceful-fs: 4.2.11 - micromatch: 4.0.5 + micromatch: 4.0.8 neo-async: 2.6.2 - node-dir: 0.1.17 - recast: 0.23.4 - temp: 0.8.4 - write-file-atomic: 2.4.3 + picocolors: 1.1.1 + recast: 0.23.11 + tmp: 0.2.3 + write-file-atomic: 5.0.1 optionalDependencies: - '@babel/preset-env': 7.24.3(@babel/core@7.24.3) + '@babel/preset-env': 7.24.3(@babel/core@7.27.1) transitivePeerDependencies: - supports-color @@ -16979,6 +18072,8 @@ snapshots: jsesc@2.5.2: {} + jsesc@3.1.0: {} + json-buffer@3.0.1: {} json-parse-better-errors@1.0.2: {} @@ -17687,6 +18782,11 @@ snapshots: braces: 3.0.2 picomatch: 2.3.1 + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + miller-rabin@4.0.1: dependencies: bn.js: 4.12.2 @@ -17793,10 +18893,6 @@ snapshots: node-abort-controller@3.1.1: {} - node-dir@0.1.17: - dependencies: - minimatch: 3.1.2 - node-expat@2.4.0: dependencies: bindings: 1.5.0 @@ -17816,6 +18912,8 @@ snapshots: node-releases@2.0.14: {} + node-releases@2.0.19: {} + node-stdlib-browser@1.3.1: dependencies: assert: 2.1.0 @@ -18321,9 +19419,9 @@ snapshots: dependencies: typescript: 5.8.3 - react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250509): + react-docgen-typescript@2.2.2(typescript@5.9.0-dev.20250521): dependencies: - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 react-docgen@7.0.3: dependencies: @@ -18497,12 +19595,12 @@ snapshots: source-map: 0.6.1 tslib: 2.6.2 - recast@0.23.4: + recast@0.23.11: dependencies: - assert: 2.1.0 ast-types: 0.16.1 esprima: 4.0.1 source-map: 0.6.1 + tiny-invariant: 1.3.3 tslib: 2.6.2 recast@0.23.9: @@ -18659,10 +19757,6 @@ snapshots: rfdc@1.3.0: {} - rimraf@2.6.3: - dependencies: - glob: 7.2.3 - rimraf@3.0.2: dependencies: glob: 7.2.3 @@ -19164,10 +20258,6 @@ snapshots: tapable@2.2.1: {} - temp@0.8.4: - dependencies: - rimraf: 2.6.3 - term-size@2.2.1: {} terser-webpack-plugin@5.3.9(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)(webpack@5.88.0(@swc/core@1.4.2(@swc/helpers@0.5.1))(esbuild@0.24.2)): @@ -19220,6 +20310,8 @@ snapshots: dependencies: os-tmpdir: 1.0.2 + tmp@0.2.3: {} + tmpl@1.0.5: {} to-fast-properties@2.0.0: {} @@ -19281,7 +20373,7 @@ snapshots: optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250509): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.17.12)(typescript@5.9.0-dev.20250521): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19295,13 +20387,13 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: '@swc/core': 1.4.2(@swc/helpers@0.5.1) - ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250509): + ts-node@10.9.2(@swc/core@1.4.2(@swc/helpers@0.5.1))(@types/node@20.4.8)(typescript@5.9.0-dev.20250521): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -19315,7 +20407,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.9.0-dev.20250509 + typescript: 5.9.0-dev.20250521 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 optionalDependencies: @@ -19442,7 +20534,7 @@ snapshots: typescript@5.8.3: {} - typescript@5.9.0-dev.20250509: {} + typescript@5.9.0-dev.20250521: {} unbox-primitive@1.0.2: dependencies: @@ -19551,6 +20643,12 @@ snapshots: escalade: 3.1.1 picocolors: 1.0.0 + update-browserslist-db@1.1.3(browserslist@4.24.5): + dependencies: + browserslist: 4.24.5 + escalade: 3.2.0 + picocolors: 1.1.1 + uri-js@4.4.1: dependencies: punycode: 2.3.0 @@ -19821,16 +20919,15 @@ snapshots: wrappy@1.0.2: {} - write-file-atomic@2.4.3: + write-file-atomic@4.0.2: dependencies: - graceful-fs: 4.2.11 imurmurhash: 0.1.4 signal-exit: 3.0.7 - write-file-atomic@4.0.2: + write-file-atomic@5.0.1: dependencies: imurmurhash: 0.1.4 - signal-exit: 3.0.7 + signal-exit: 4.1.0 ws@8.16.0: {} diff --git a/tools/build/README.md b/tools/build/README.md index 7e411362f3..d4058444a3 100644 --- a/tools/build/README.md +++ b/tools/build/README.md @@ -14,9 +14,9 @@ For each package you want turbo to build, add the following scripts to package.j ```json "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" } ``` @@ -29,7 +29,7 @@ For a package that cli depends on, define the following scripts in its `package. ```json "scripts": { - "build": "lg-internal-build-package", + "build": "lg-build bundle", "tsc": "lg-build tsc" } ``` diff --git a/tools/build/src/rollup/build-package.ts b/tools/build/src/rollup/build-package.ts index e1773df3f2..08e707d2fd 100644 --- a/tools/build/src/rollup/build-package.ts +++ b/tools/build/src/rollup/build-package.ts @@ -25,19 +25,11 @@ interface BuildPackageOptions { /** * Builds packages using rollup for the current directory */ -export function buildPackage({ direct, verbose }: BuildPackageOptions) { +export function buildPackage({ verbose }: BuildPackageOptions) { const packageDir = process.cwd(); const splitPath = packageDir.split('/'); const packageName = splitPath[splitPath.length - 1]; - const scopeName = splitPath[splitPath.length - 2]; - - if (direct && scopeName !== 'tools') { - console.warn( - `Building package @${scopeName}/${packageName} using the \`lg-internal-build-package\` command directly from \`@lg-tools/build\`.`, - 'Consider using the global `lg build-package` command from `@lg-tools/cli` instead.', - ); - } // If there is a local rollup config defined, use that // Otherwise use the default one diff --git a/tools/cli/CHANGELOG.md b/tools/cli/CHANGELOG.md index 4e87488b4a..8b84c18b8d 100644 --- a/tools/cli/CHANGELOG.md +++ b/tools/cli/CHANGELOG.md @@ -1,5 +1,14 @@ # @lg-tools/cli +## 0.9.2 + +### Patch Changes + +- Updated dependencies [92fafc876] +- Updated dependencies [e14fc7768] + - @lg-tools/codemods@0.1.6 + - @lg-tools/prompt-kit@0.2.0 + ## 0.9.1 ### Patch Changes diff --git a/tools/cli/package.json b/tools/cli/package.json index ab997ab55f..81180d30be 100644 --- a/tools/cli/package.json +++ b/tools/cli/package.json @@ -1,6 +1,6 @@ { "name": "@lg-tools/cli", - "version": "0.9.1", + "version": "0.9.2", "description": "Command Line tools for LeafyGreen", "license": "Apache-2.0", "main": "./dist/umd/index.js", @@ -23,6 +23,7 @@ "@lg-tools/install": "workspace:^", "@lg-tools/link": "workspace:^", "@lg-tools/lint": "workspace:^", + "@lg-tools/prompt-kit": "workspace:^", "@lg-tools/slackbot": "workspace:^", "@lg-tools/test": "workspace:^", "@lg-tools/update": "workspace:^", diff --git a/tools/cli/src/index.ts b/tools/cli/src/index.ts index c0bd437175..8150e6d607 100644 --- a/tools/cli/src/index.ts +++ b/tools/cli/src/index.ts @@ -4,6 +4,7 @@ import { createPackage } from '@lg-tools/create'; import { installLeafyGreen } from '@lg-tools/install'; import { linkPackages, unlinkPackages } from '@lg-tools/link'; import { lint } from '@lg-tools/lint'; +import { mergePromptsVSCode } from '@lg-tools/prompt-kit'; import { releaseBot } from '@lg-tools/slackbot'; import { test } from '@lg-tools/test'; import { update } from '@lg-tools/update'; @@ -251,4 +252,16 @@ cli .option('-v --verbose', 'Prints additional information to the console', false) .action(buildTSDoc); +/** Merge editor settings */ +cli + .command('merge-prompts-vscode') + .description('Merges the prompts settings into the VSCode settings file') + .option('-d, --dry', 'Dry run. Does not write to the filesystem.', false) + .option( + '-v, --verbose', + 'Prints additional information to the console', + false, + ) + .action(mergePromptsVSCode); + cli.parse(process.argv); diff --git a/tools/cli/tsconfig.json b/tools/cli/tsconfig.json index 75e17a489f..b4b7796e34 100644 --- a/tools/cli/tsconfig.json +++ b/tools/cli/tsconfig.json @@ -27,6 +27,9 @@ { "path": "../lint" }, + { + "path": "../prompt-kit" + }, { "path": "../slackbot" }, diff --git a/tools/codemods/CHANGELOG.md b/tools/codemods/CHANGELOG.md index cb26c7fd82..7af190bdd3 100644 --- a/tools/codemods/CHANGELOG.md +++ b/tools/codemods/CHANGELOG.md @@ -1,5 +1,11 @@ # @lg-tools/codemods +## 0.1.6 + +### Patch Changes + +- 92fafc876: [LG-5015](https://jira.mongodb.org/browse/LG-5015): bump `jscodeshift` to 17.3.0 + ## 0.1.5 ### Patch Changes diff --git a/tools/codemods/package.json b/tools/codemods/package.json index 7f2d930394..abb6d299f3 100644 --- a/tools/codemods/package.json +++ b/tools/codemods/package.json @@ -1,6 +1,6 @@ { "name": "@lg-tools/codemods", - "version": "0.1.5", + "version": "0.1.6", "description": "Codemods for LeafyGreen UI", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", @@ -19,7 +19,7 @@ "fs-extra": "11.1.1", "glob": "10.3.12", "is-git-clean": "1.1.0", - "jscodeshift": "0.15.2", + "jscodeshift": "17.3.0", "prettier": "2.8.8" }, "devDependencies": { diff --git a/tools/create/src/templates/component/package.json.ts b/tools/create/src/templates/component/package.json.ts index cef5b95eec..f04ae645a8 100644 --- a/tools/create/src/templates/component/package.json.ts +++ b/tools/create/src/templates/component/package.json.ts @@ -17,9 +17,9 @@ export const pkgJson = ({ "types": "./dist/types/index.d.ts", "license": "Apache-2.0", "scripts": { - "build": "lg build-package", - "tsc": "lg build-ts", - "docs": "lg build-tsdoc" + "build": "lg-build bundle", + "tsc": "lg-build tsc", + "docs": "lg-build docs" }, "publishConfig": { "access": "public" diff --git a/tools/install/src/ALL_PACKAGES.ts b/tools/install/src/ALL_PACKAGES.ts index 11444c6c1e..e0ab5f78e4 100644 --- a/tools/install/src/ALL_PACKAGES.ts +++ b/tools/install/src/ALL_PACKAGES.ts @@ -97,6 +97,7 @@ export const ALL_PACKAGES = [ '@lg-tools/link', '@lg-tools/lint', '@lg-tools/meta', + '@lg-tools/prompt-kit', '@lg-tools/slackbot', '@lg-tools/storybook-addon', '@lg-tools/storybook-decorators', diff --git a/tools/lint/package.json b/tools/lint/package.json index 3d557c3a20..81539082f3 100644 --- a/tools/lint/package.json +++ b/tools/lint/package.json @@ -10,7 +10,7 @@ "access": "public" }, "scripts": { - "build": "lg-internal-build-package", + "build": "lg-build bundle", "tsc": "lg-build tsc" }, "dependencies": { diff --git a/tools/prompt-kit/CHANGELOG.md b/tools/prompt-kit/CHANGELOG.md new file mode 100644 index 0000000000..2dcdf8c897 --- /dev/null +++ b/tools/prompt-kit/CHANGELOG.md @@ -0,0 +1,7 @@ +# @lg-tools/prompt-kit + +## 0.2.0 + +### Minor Changes + +- e14fc7768: Update settings to merge to use prompt-kit paths diff --git a/tools/prompt-kit/README.md b/tools/prompt-kit/README.md new file mode 100644 index 0000000000..ba3495608a --- /dev/null +++ b/tools/prompt-kit/README.md @@ -0,0 +1,24 @@ +# `@lg-tools/prompt-kit` + +Shared prompts for LeafyGreen repositories. + +## Usage + +It's recommended to use `@lg-tools/prompt-kit` in tandem with `@lg-tools/cli`. The `lg merge-prompts-vscode` script will automatically merge the shared prompts into `.vscode/settings.json`. + +### Options + +To see all options for this command, run: + +```bash +> lg merge-prompts-vscode --help +``` + +### Steps: + +1. Ensure both `@lg-tools/prompt-kit` and `@lg-tools/cli` are installed. +2. Run the following command: + ```bash + > lg merge-prompts-vscode + ``` +3. Open your VS Code settings to verify that the prompts have been successfully added. diff --git a/tools/prompt-kit/package.json b/tools/prompt-kit/package.json new file mode 100644 index 0000000000..8bd52d1603 --- /dev/null +++ b/tools/prompt-kit/package.json @@ -0,0 +1,29 @@ +{ + "name": "@lg-tools/prompt-kit", + "version": "0.2.0", + "description": "Prompts for personalizing LLM usage", + "main": "./dist/umd/index.js", + "module": "./dist/esm/index.js", + "license": "Apache-2.0", + "scripts": { + "build": "lg-build bundle", + "tsc": "lg-build tsc" + }, + "publishConfig": { + "access": "public" + }, + "dependencies": { + "@lg-tools/build": "workspace:^", + "@types/fs-extra": "11.0.1", + "chalk": "4.1.2", + "fs-extra": "11.1.1" + }, + "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/tools/prompt-kit", + "repository": { + "type": "git", + "url": "https://github.com/mongodb/leafygreen-ui" + }, + "bugs": { + "url": "https://jira.mongodb.org/projects/LG/summary" + } +} diff --git a/tools/prompt-kit/src/index.ts b/tools/prompt-kit/src/index.ts new file mode 100644 index 0000000000..cba6af178a --- /dev/null +++ b/tools/prompt-kit/src/index.ts @@ -0,0 +1 @@ +export { mergePromptsVSCode } from './settings'; diff --git a/tools/prompt-kit/src/prompts/codeGeneration.md b/tools/prompt-kit/src/prompts/codeGeneration.md new file mode 100644 index 0000000000..5ab2997f6f --- /dev/null +++ b/tools/prompt-kit/src/prompts/codeGeneration.md @@ -0,0 +1,62 @@ +# Code Generation Instructions + +These guidelines are intended to standardize how code is generated for this codebase. They are designed to be both human- and AI-readable to ensure consistency and compatibility with tools like GitHub Copilot. + +## TypeScript Guidelines + +- Use TypeScript for all new code +- Follow functional programming principles where possible +- Use interfaces for data structures and type definitions where possible +- Prefer immutable data (const, readonly) +- Avoid enums; use `as const` objects with derived types to allow value-based usage and improve compatibility +- Place types/interfaces at the top of the file above functional code; if multiple types are declared, use a separate `*.types.ts` file for clarity and separation +- Prefer typing `children` prop as `ReactNode` where possible + +## JavaScript Guidelines + +### Functions + +- Prefer ternary expressions for simple conditionals instead of `if`/`else` blocks +- Prefer `if`/`else` blocks for complex branching instead of nested or chained ternaries +- Include a JSDoc comment for every new exported function, explaining its purpose, assumptions, inputs, and outputs +- Define functions at the highest reasonable scope and pass all necessary arguments to keep them pure and testable + +### Variable Naming + +- Use UPPERCASE for static constants; refactor them to a shared file if reused across multiple files +- Use camelCase for most variables and functions +- Use PascalCase for components, classes, and React elements +- Prefix boolean variables with "to be" verbs like `isX`, `hasY`, `canZ`, `shouldDoX`, etc. to clarify intent +- Use `data-testid` or `data-lgid` only on root-level native HTML elements (not React components) +- Follow a BEM-ish format for test IDs, using `-` to separate blocks and `_` to separate words + +### Variable Placement + +- Move static constants to the top of the file or a separate module +- Declare `let`/`const` variables at the beginning of their scope to improve readability and reduce hoisting confusion +- Prefer `const` over `let` whenever possible + +### Styling + +- Define Emotion styles in a separate `*.styles.ts` file then import and reference via `className` prop +- Postfix Emotion `css` variables with `*Styles` or `*Style` +- Postfix Emotion variables with values generated by `createUniqueClassName()` with `*ClassName` +- Avoid using CSS variables (`var(--token)`) in components; prefer scoped class selectors with `createUniqueClassName` and JS constants + +### React + +- Refactor multi-line event handlers into their own named functions +- Prefix all event handler functions with `handle*` (e.g. `handleClick` or `handleSubmit`) +- Prefer `React.Fragment` (`<>...`) over `div` when no styling or semantics are needed +- Avoid `React.cloneElement`; prefer render props, context, or custom hooks to pass data to children +- Use the spred operator (`{ ...originalObject }`) to avoid directly mutating objects or arrays +- Forward refs using `React.forwardRef` when exposing access to a DOM element. +- Use utility functions when full component state/logic isn't needed + +### LeafyGreen Usage + +- Use the `useDarkMode()` hook to read the `darkMode` value from `LeafyGreenProvider`, and allow local overrides when needed +- Wrap children in a `LeafyGreenProvider` instead of passing the `darkMode` prop to each child individually +- Use `state="error"` to visually indicate input errors and enable error messaging +- Set the `errorMessage` prop to show a descriptive error next to the input + If `state="error"` and `errorMessage` is not defined, use `aria-describedby` diff --git a/tools/prompt-kit/src/prompts/commitMessageGeneration.md b/tools/prompt-kit/src/prompts/commitMessageGeneration.md new file mode 100644 index 0000000000..0aa17ecf5f --- /dev/null +++ b/tools/prompt-kit/src/prompts/commitMessageGeneration.md @@ -0,0 +1,18 @@ +# Commit Message Generation Instructions + +These guidelines are intended to standardize how commit messages are generated for this codebase. They are designed to be both human- and AI-readable to ensure consistency and compatibility with tools like GitHub Copilot. + +- Follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) style for commit messages +- Use imperative form: `add`, not `adds` or `added` +- Keep subject line detailed but concise +- Include a `(scope)` where helpful - like a component or file + +Examples: + +- `feat(button): add size prop` +- `fix(popover): resolve positioning issue` +- `chore: update dependencies` +- `docs(charts legend): update README with example and prop table` +- `style: format code with lint command` +- `refactor(charts tooltip): abstract visibility logic into hook` +- `test: add unit tests for new functionality` diff --git a/tools/prompt-kit/src/prompts/testGeneration.md b/tools/prompt-kit/src/prompts/testGeneration.md new file mode 100644 index 0000000000..b655afbc48 --- /dev/null +++ b/tools/prompt-kit/src/prompts/testGeneration.md @@ -0,0 +1,42 @@ +# Test Generation Instructions + +These guidelines are intended to standardize how tests are generated for this codebase. They are designed to be both human- and AI-readable to ensure consistency and compatibility with tools like GitHub Copilot. + +## Scope of Test Generation + +When generating tests, prioritize: + +- Component rendering (with and without props) +- Behavioral logic (interactions, conditional rendering) +- Accessibility (use `jest-axe`) +- Keyboard/mouse interaction +- Refs and focus management +- Custom hooks and utils (unit test independently) + +## Testing stack + +- `@testing-library/dom`: 9.3.1 +- `@testing-library/jest-dom`: 5.17.0 +- `@testing-library/react`: 14.0.0 +- `@testing-library/react-hooks`: 8.0.1 +- `@testing-library/user-event`: 13.5.0 +- `babel-jest`: 29.7.0 +- `jest`: 29.6.2 +- `jest-axe`: 8.0.0 +- `jest-canvas-mock`: 2.5.1 +- `jest-environment-jsdom`: 29.6.2 +- `jest-junit`: 16.0.0 +- `react-test-renderer`: 18.2.0 + +## File structure + +- Tests should be colocated with the component under test (e.g. `MyComponent/MyComponent.spec.tsx` contains tests for `MyComponent/MyComponent.tsx`) +- use `*.spec.tsx` or `*.spec.ts` file extensions + +## Test conventions + +- Use a root `describe` block for the main component exported from a package +- Use `test`, not `it`, to describe specific behaviors +- Use `userEvent` for interaction simulation when possible +- Use `jest-axe` for accessibility tests +- Add `data-testid` sparingly, only when semantic queries aren't possible diff --git a/tools/prompt-kit/src/settings/index.ts b/tools/prompt-kit/src/settings/index.ts new file mode 100644 index 0000000000..5b14e62f1b --- /dev/null +++ b/tools/prompt-kit/src/settings/index.ts @@ -0,0 +1 @@ +export { mergePromptsVSCode } from './mergePromptsVSCode'; diff --git a/tools/prompt-kit/src/settings/mergePromptsVSCode.ts b/tools/prompt-kit/src/settings/mergePromptsVSCode.ts new file mode 100644 index 0000000000..de18c300f0 --- /dev/null +++ b/tools/prompt-kit/src/settings/mergePromptsVSCode.ts @@ -0,0 +1,81 @@ +/* eslint-disable no-console */ +import chalk from 'chalk'; +import fse from 'fs-extra'; +import path from 'path'; + +import { MergePromptsOptions } from './mergePromptsVSCode.types'; + +const vscodeSettingsPaths = { + root: path.resolve('.vscode/settings.json'), + promptKit: path.resolve( + './node_modules/@lg-tools/prompt-kit/src/settings/vscode/settings.json', + ), +} as const; + +export async function mergePromptsVSCode(options: MergePromptsOptions) { + const { dry, verbose } = options; + + verbose && + console.log({ + rootVscodeSettingsPath: vscodeSettingsPaths.root, + promptKitVscodeSettingsPath: vscodeSettingsPaths.promptKit, + }); + + try { + // Read and parse existing .vscode/settings.json (create if it doesn't exist) + const rootSettingsExists = await fse.pathExists(vscodeSettingsPaths.root); + + verbose && + console.log( + `\nExisting VS Code settings ${rootSettingsExists ? '' : 'not '}found`, + ); + + const existingVscodeSettings = rootSettingsExists + ? await fse.readJSON(vscodeSettingsPaths.root) + : {}; + + verbose && + console.log( + '\nExisting VS Code settings:\n', + JSON.stringify(existingVscodeSettings, null, 2), + ); + + // Read and parse the settings.json to merge + const settingsToMerge = await fse.readJSON(vscodeSettingsPaths.promptKit); + + verbose && + console.log( + '\nVS Code settings to merge:\n', + JSON.stringify(settingsToMerge, null, 2), + ); + + // Merge the objects + const mergedSettings = { + ...existingVscodeSettings, + ...settingsToMerge, + }; + + verbose && + console.log( + '\nFinal VS Code settings:\n', + JSON.stringify(mergedSettings, null, 2), + ); + + if (dry) { + console.log( + chalk.blue('\nDry run. Final `.vscode/settings.json` would be:'), + ); + console.log(chalk.blue(JSON.stringify(mergedSettings, null, 2))); + } else { + // Write the merged object back to .vscode/settings.json + await fse.outputJSON(vscodeSettingsPaths.root, mergedSettings, { + spaces: 2, + }); + console.log( + chalk.green('\n✅ Prompts successfully merged into VS Code settings!'), + ); + } + } catch (error) { + console.error(chalk.red('\nError merging prompts:', error)); + } +} diff --git a/tools/prompt-kit/src/settings/mergePromptsVSCode.types.ts b/tools/prompt-kit/src/settings/mergePromptsVSCode.types.ts new file mode 100644 index 0000000000..e4b75e84cb --- /dev/null +++ b/tools/prompt-kit/src/settings/mergePromptsVSCode.types.ts @@ -0,0 +1,4 @@ +export interface MergePromptsOptions { + dry: boolean; + verbose: boolean; +} diff --git a/tools/prompt-kit/src/settings/vscode/settings.json b/tools/prompt-kit/src/settings/vscode/settings.json new file mode 100644 index 0000000000..24d94481cd --- /dev/null +++ b/tools/prompt-kit/src/settings/vscode/settings.json @@ -0,0 +1,17 @@ +{ + "github.copilot.chat.codeGeneration.instructions": [ + { + "file": "node_modules/@lg-tools/prompt-kit/src/prompts/codeGeneration.md" + } + ], + "github.copilot.chat.commitMessageGeneration.instructions": [ + { + "file": "node_modules/@lg-tools/prompt-kit/src/prompts/commitMessageGeneration.md" + } + ], + "github.copilot.chat.testGeneration.instructions": [ + { + "file": "node_modules/@lg-tools/prompt-kit/src/prompts/testGeneration.md" + } + ] +} diff --git a/tools/prompt-kit/tsconfig.json b/tools/prompt-kit/tsconfig.json new file mode 100644 index 0000000000..deb8159ee7 --- /dev/null +++ b/tools/prompt-kit/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "@lg-tools/build/config/package.tsconfig.json", + "compilerOptions": { + "declarationDir": "dist", + "outDir": "dist", + "rootDir": "src", + "baseUrl": ".", + "paths": { + "@lg-tools/*": ["../*/src"] + } + }, + "include": ["src/**/*"], + "exclude": ["**/*.spec.*", "**/*.stories.*"], + "references": [ + { + "path": "../build" + } + ] +} diff --git a/tools/storybook-addon/CHANGELOG.md b/tools/storybook-addon/CHANGELOG.md index 18a30a6dcb..18eae11b69 100644 --- a/tools/storybook-addon/CHANGELOG.md +++ b/tools/storybook-addon/CHANGELOG.md @@ -1,5 +1,12 @@ # @lg-tools/storybook-addon +## 0.4.2 + +### Patch Changes + +- @leafygreen-ui/typography@20.1.9 +- @lg-tools/storybook-decorators@0.4.9 + ## 0.4.1 ### Patch Changes diff --git a/tools/storybook-addon/package.json b/tools/storybook-addon/package.json index 677278f4c3..25651ac55a 100644 --- a/tools/storybook-addon/package.json +++ b/tools/storybook-addon/package.json @@ -1,6 +1,6 @@ { "name": "@lg-tools/storybook-addon", - "version": "0.4.1", + "version": "0.4.2", "description": "Storybook Addon for LeafyGreen UI Kit", "license": "Apache-2.0", "main": "./dist/umd/index.js", diff --git a/tools/storybook-decorators/CHANGELOG.md b/tools/storybook-decorators/CHANGELOG.md index 3da93354d2..7cefc619a5 100644 --- a/tools/storybook-decorators/CHANGELOG.md +++ b/tools/storybook-decorators/CHANGELOG.md @@ -1,5 +1,11 @@ # @lg-tools/storybook-decorators +## 0.4.9 + +### Patch Changes + +- @leafygreen-ui/banner@9.0.13 + ## 0.4.8 ### Patch Changes diff --git a/tools/storybook-decorators/package.json b/tools/storybook-decorators/package.json index 644c60b9ac..83daaa1704 100644 --- a/tools/storybook-decorators/package.json +++ b/tools/storybook-decorators/package.json @@ -1,6 +1,6 @@ { "name": "@lg-tools/storybook-decorators", - "version": "0.4.8", + "version": "0.4.9", "description": "Storybook decorators used in LeafyGreen repos", "main": "./dist/umd/index.js", "module": "./dist/esm/index.js", diff --git a/turbo.json b/turbo.json index 2b3d52bee1..f74c4da8ce 100644 --- a/turbo.json +++ b/turbo.json @@ -2,15 +2,15 @@ "$schema": "https://turbo.build/schema.json", "tasks": { "prebuild": { - "dependsOn": ["^prebuild"] + "dependsOn": ["^prebuild", "^build"] }, "build": { - "dependsOn": ["^build", "prebuild", "^prebuild"], + "dependsOn": ["^build", "^prebuild", "prebuild"], "inputs": ["$TURBO_DEFAULT$", "!**/*.stories.{tsx,jsx,mdx}"], "outputs": ["dist/**/*.js", "dist/**/*.js.map", "stories.js"] }, "tsc": { - "dependsOn": ["^tsc", "prebuild", "^prebuild"], + "dependsOn": ["^tsc", "^prebuild", "prebuild"], "outputs": [ "dist/**/*.d.ts", "dist/**/*.d.ts.map",