Skip to content

Commit 6876708

Browse files
3. Adds ./testing entry points [LG-5028] (#2814)
* 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 * Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <[email protected]> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson <[email protected]> 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 * update each package's tsconfig * updates `types` source in package.json * downlevel 5.0 * use getPackageRoot in build & lint * update umd build dir * updates 'main' entry in package.json * update build scripts * update lint md * Create build-rollup-umd.md * Create build-tsconfig-configDir.md * update bin * update forgotten tsconfigs * update tsconfig nodeResolution * 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 * rm select/testing entry point * Update icon rollup.config.mjs temporarily keep icon bundles at root * revert to node10 for some packages * mv testing dir * add /testing entry point * fix code ts * Update pnpm-lock.yaml * Update pnpm-lock.yaml * nodenext * revert to node10 for some packages * update base tsconfig * moves Test Utils to a consistent location * fix references & updates package.json files * Update testing-entry-points.md * Squashed commit of the following: commit de78962c9e7fcd63c56a4596df555a82d0de6897 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:34:03 2025 -0400 restores missing deps commit 40c04dc1130fe71522483650aa3b9ffe909435b2 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:24:24 2025 -0400 ts-expect-error commit 1aa2200a38a5a88e78daafe70694a5e4844a992c Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:22:23 2025 -0400 Update pnpm-lock.yaml commit 85191287daf435a9f899cc64392875cd1f467845 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:12:30 2025 -0400 updates palette rollup config commit 59d88320e12997eb08793b691039e9f2872e5821 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:11:35 2025 -0400 updates /bin commit 6afd16ef37f94de864ddfab2f3c320d781b55066 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:10:36 2025 -0400 updates main package.json entries commit 9ebcfed522a9c27b8b76a89ae032af09594e8b41 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:09:08 2025 -0400 Updates rollup config to output UMD directory * Squashed commit of the following: commit 7a26993b5219be212d7c944c86bab13e493cda6f Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 19:42:44 2025 -0400 Update icon & testing lib commit de78962c9e7fcd63c56a4596df555a82d0de6897 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:34:03 2025 -0400 restores missing deps commit 40c04dc1130fe71522483650aa3b9ffe909435b2 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:24:24 2025 -0400 ts-expect-error commit 1aa2200a38a5a88e78daafe70694a5e4844a992c Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:22:23 2025 -0400 Update pnpm-lock.yaml commit 85191287daf435a9f899cc64392875cd1f467845 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:12:30 2025 -0400 updates palette rollup config commit 59d88320e12997eb08793b691039e9f2872e5821 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:11:35 2025 -0400 updates /bin commit 6afd16ef37f94de864ddfab2f3c320d781b55066 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:10:36 2025 -0400 updates main package.json entries commit 9ebcfed522a9c27b8b76a89ae032af09594e8b41 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:09:08 2025 -0400 Updates rollup config to output UMD directory * Update pnpm-lock.yaml * Squashed commit of the following: commit 93187f8ce4f12f1978f91332b49e0a75f5c263a8 Merge: 2c5fb26bf 9530c2442 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Fri Apr 25 15:12:23 2025 -0400 Merge branch 'main' into integration/tooling commit 2c5fb26bf3c8cbd154cc9d301f73a85eebbb5b4e Merge: ca5d75949 254eb28c8 Author: Adam Thompson <[email protected]> Date: Fri Apr 25 15:11:30 2025 -0400 Merge branch 'integration/tooling' into a/tsconfig-only commit 254eb28c8d0c1f1431999e7fb28f7a1ff8466ab3 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <[email protected]> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson <[email protected]> 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 <[email protected]> Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit ca5d75949ec883e1b63ab24c5f3cbd59e2c5b448 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 25 14:05:47 2025 -0400 Update all-types-entry-point.md commit 3e63f84c400af6ce4c02a24b90994b99e58ea4e4 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 25 13:58:47 2025 -0400 Update pnpm-lock.yaml commit 6f522a1c78686b47baa416f75db65d1d1b3252c1 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 25 13:56:47 2025 -0400 Update package.json commit c117c3202e6c6e4a18af7771004c260e1451d470 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 25 13:50:12 2025 -0400 Squashed commit of the following: commit cfbf1ecec2d77a4f5d6edd704ecab62161e8b840 Merge: eba052c5b 9c563ccda Author: Adam Michael Thompson <[email protected]> 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 <[email protected]> Date: Thu Apr 24 17:35:02 2025 -0400 use clone deep commit 9c563ccda279e835ab9a18e2022cbd956b9a383c Merge: ac1ceba35 6bc396170 Author: Adam Thompson <[email protected]> Date: Thu Apr 24 17:34:30 2025 -0400 Merge branch 'integration/tooling' into a/ts5 commit ac1ceba3596c5a3777cbe451d2e20101b1900361 Author: Adam Michael Thompson <[email protected]> Date: Thu Apr 24 17:08:27 2025 -0400 add comment commit 8b379084801e1cfc300d81816db9d4b98ff69e89 Author: Adam Michael Thompson <[email protected]> Date: Thu Apr 24 16:53:52 2025 -0400 Update packagejson exports commit 5de5a48848ba128b1150fcb07d0132c991590684 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <[email protected]> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson <[email protected]> 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 <[email protected]> Date: Wed Apr 23 17:52:09 2025 -0400 Merge branch 'main' into a/ts5 commit 028147fe1fe21fdc0b4d6567ac4006fef801a5d1 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit fce55fa964fc431173b9453bd0a3b779fe3e9e19 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit 4e4a3b270cf37b09f10797feb7ddc904466b4a97 Author: Adam Michael Thompson <[email protected]> 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 <[email protected]> Date: Wed Apr 23 12:47:19 2025 -0400 Create validate-build-package-json.md commit 96aa7c31f002baf5ed4abd78a459a8590df0c503 Author: Adam Michael Thompson <[email protected]> Date: Tue Apr 22 18:27:54 2025 -0400 ensure empty commit c0d73ba63f59ba12a16cc99993f470cead0ae7a8 Author: Adam Michael Thompson <[email protected]> Date: Tue Apr 22 18:27:34 2025 -0400 add --update to bin cmd commit 988eed624c885c59baf29e563b35d5afa41b0fe0 Author: Adam Michael Thompson <[email protected]> Date: Tue Apr 22 17:10:32 2025 -0400 Update typescript-5-all.md commit 1f6a890914e4f48e3c475004577143f1bcd521de Author: Adam Michael Thompson <[email protected]> Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit 768915edd5dffdae63a0208b234fae5c685eced4 Author: Adam Michael Thompson <[email protected]> Date: Tue Apr 22 16:38:41 2025 -0400 Update tsconfig.json commit 8da1c853045ba8eb365abb44bb9def988a548e73 Merge: b488bbe77 303aed632 Author: Adam Thompson <[email protected]> Date: Tue Apr 22 16:35:52 2025 -0400 Merge branch 'main' into a/ts5 commit b488bbe777977f6e689f8c3f3aa09c3d47e46df1 Author: Adam Michael Thompson <[email protected]> Date: Tue Apr 22 15:48:13 2025 -0400 Update build-typescript-5.md commit e64560b0db72ec266442cb38b4666ed8dbcd2e55 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Tue Apr 22 15:41:55 2025 -0400 comments commit bc7a0704c64ba403fa3171f0998772fd670cf93e Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit b00a933a9525f23b4c6d383db5557c18132608f3 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 2e15153a053b95d98dfc52d40527fe8b903c4a36 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 21 17:28:01 2025 -0400 Update build-package.ts commit 48d9603cbffe9edd3060e2360aecd1cbcebab06f Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 21 17:20:31 2025 -0400 updates all tsconfigs commit 9c0239b64a37032fa2d15ea66b71ae251748211b Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 21 15:59:54 2025 -0400 Create typescript-5-all.md commit 9c0e843b5aa926f217900b209b6ed190527be2d1 Merge: b11ab5003 485b4099c Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 21 15:17:43 2025 -0400 Merge branch 'main' into a/ts5 commit b11ab500301067a1a556b46b3e4df6dbda98c3aa Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit cfb9da919ead2227cb9fcf5af05eefc68421c150 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit d994c1a23942688883a6894653a0473ce3784ac5 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 5fa36725f3944eaefe61e6b2ce854444eba65a34 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 9 18:20:23 2025 -0400 rm chalk. fix mockFs commit f3139d791392e785837a1aa227753e77974a6d6d Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit af384a23540e916cb8ff58d8421bc57d14e4f42f Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 65f92fc302ac2f8f645b7717f5e649402721cba1 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 0ebfad4bbb6642b43ec27bbab4a78e556664b534 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit dfbb6fa7d60521036d6dcb55eb69f271a092f854 Merge: e0a48e330 05966e8f4 Author: Adam Thompson <[email protected]> Date: Wed Apr 9 16:41:17 2025 -0400 Merge branch 'main' into a/ts5 commit e0a48e33032b84aab895d2d356d51bb2499b94ad Author: Adam Michael Thompson <[email protected]> Date: Tue Apr 8 17:51:46 2025 -0400 Update build-ts.spec.ts commit a3658d678188ae2a926ed4fdf5ece1206883c72b Merge: 2064f39e3 d20cd317f Author: Adam Michael Thompson <[email protected]> Date: Tue Apr 8 14:11:39 2025 -0400 Merge branch 'main' into a/ts5 commit 2064f39e33004ab69bb93fda1b11e2e2c576f2aa Merge: 20ad2e03a 3978cdbfe Author: Adam Thompson <[email protected]> Date: Mon Apr 7 14:00:08 2025 -0400 Merge branch 'main' into a/ts5 commit 20ad2e03af1e27c94d7fe2633b02f16c5cca454c Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 39c072edbb8e323916e0ac5dc3d66e244b606252 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 7 13:02:51 2025 -0400 lint commit 5af0d92fc26f7f7d4c06333dca57d4c47dff38b9 Merge: 667e0de3c 2ab660926 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 7 11:57:37 2025 -0400 Merge branch 'main' into a/ts5 commit 667e0de3cf41922bf5b8db0abfe05fd93d1115af Author: Adam Michael Thompson <[email protected]> Date: Sat Apr 5 00:48:24 2025 -0400 Update package.json commit 830cf8ba99c351d798cf0aadf4862e8a73e58b8e Merge: 0ba31885a e874aeaf9 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:55:23 2025 -0400 Merge branch 'main' into a/ts5 commit 0ba31885a38270e3300d8101a99a9d106d4da8fe Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 03a7c936b2baf7592220a9ae28b4a618c37ab580 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 68385bc9cc4d76a421ad675530819fc8fd13fcef Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 7a1967c31cb4792d31299f3214366040ceb80d43 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit c4917f9c71761539e4a90c149cdc8a252487aec4 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 5cde9cbd6f6b4faf0d4036fec5a61d02d2186843 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 2a0f25d16e1cf2de304c917bcabc48049e0d8cb7 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 19:48:42 2025 -0400 add downlevel to prepublish commit c58669dd2f172655b759be963cade15a95340ff1 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 32ecdd90368097a20a3da955e218d43e6495c5ee Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit 90b690130a7f0762812ca746196d33919c87c640 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 19:02:05 2025 -0400 Update build-typescript-5.md commit 153d7a369eaaf6ce8e15a8c23ce7178580b67d61 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:59:28 2025 -0400 update logging commit c1aaa0c370969b3d3b6a19e4292871449a6ac815 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:59:21 2025 -0400 fix prepublishOnly commit d1b06fc70b54a76d90f68d3edad65dd818d4ebb9 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 5858fc9f5d784eda35f37a9f4ebfc7a0afcf9399 Author: Adam Michael Thompson <[email protected]> Date: Thu Apr 3 16:53:36 2025 -0400 Update InlineCode.tsx commit af15a4a785f628d449adfecdec572b032a44d19a Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:48:06 2025 -0400 adds changesets commit 0d1c32043b73049f4f350468c8cb3a6ed65e9417 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:45:02 2025 -0400 add --downlevel on prepublish commit 5f9000f372462b0015d3cada640fc38878e76b5d Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:42:03 2025 -0400 add ts version override commit 8afa68790430d882c9c18390726db9ba1517f14e Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit f744abe1c1964b4f947f74834ee633beb82f3122 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit ff8408286808553330a65a7a3c45f70c68326a9d Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 58ea13fddf8f9e6e3c4003381edd77d8ccfbcf3c Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 16:53:15 2025 -0400 makeTypescriptDiagnosticReporter commit b9dc06043f888428ce0eda8f556c024d815e2a12 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 16:49:36 2025 -0400 add production flag commit 0b983617f1e34a8aa54b107eea1709229420efe6 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit eee9c5cc1b39d6810cff64e58e014e379659f093 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 16:25:46 2025 -0400 handle cli options commit d008dc17570b5672e5a06ebc8ba935c0252e992e Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit 17293c10162e9c62e3df0a4a1f04031e5fcbe8df Author: Adam Michael Thompson <[email protected]> Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 commit 28e07be384d8bae2023bb9c45aacf25ffbc24cae Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:42:41 2025 -0400 Update prettier.ts commit b3d5064ac8c31a251af676403506a377e80c6995 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:49:18 2025 -0400 fix builds commit fe9e28e1513621e40ba4e2ea788c20ae828da079 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:16:40 2025 -0400 code postinstall commit bf41482ac29c11f2ecb990878c73e582a5d28721 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:05:29 2025 -0400 adds types entry point in package.json commit 48406e6ce65c04045b9dcdc5d41eda91936cb0b5 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:00:06 2025 -0400 adds changesets commit 643b5abb4f8c28bf69a7236c91398442216b2bea Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:00:01 2025 -0400 updates all TSconfigs commit 7fca8c3e82e34f622346e8406340f4c55a3692c9 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <[email protected]> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 7c4cf8dc980c9930cf08e07fde4e806aa083b718 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit 246e75da4f728d34f18ded48da43257dd1d8b7bd Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit fcabae7afb9fd3f399e9714bc297e62eea6403b9 Author: Adam Michael Thompson <[email protected]> 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 <[email protected]> Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit f252097dd7c9f9649cbe9d58922f08ec8dd3147f Author: Adam Michael Thompson <[email protected]> Date: Tue Apr 22 15:41:55 2025 -0400 comments commit 1d3e354147e38366bcc4dd330ae8026b9c2b490e Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit 4494baac98464a4edb88ea07838560b823a0bc73 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit c509b66a1af4742f2d0a9348064a6d7fd90796fe Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit fd2660ebfa7f436d3f806c84a85c21a15f864578 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit da5d5995144f8bb5cb9b368bdca77769089467a2 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit 396734328895c0e83241aaa86006a1f6ffdac01b Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit 24eb33785f4f7c4ed6defb5cc6cc6c7c748bdf3e Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 6c89df54a8c7340f668e8d77714d73c26d720334 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 7 13:02:51 2025 -0400 lint commit f33cff2da147cccbe06a26db40543acda5107974 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit f99cf51f3537df303a4027991e24a175b1308c76 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 9e39ae7d13cf5f159b1d45d02f06d6544c1e03d3 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 8b3fca0ca9e38cda7db0a2a428a68db803d853d5 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit d01af2db9d81f415d4cafe35aa175988961bfad2 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 69753cf7976af8b82ffb7f2c1d2a16acea7fd330 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit d9ccd29c3dd0eee067dd0155ec995663155188d3 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit 6a932675488f5da2872d85195c25aa72fc06012d Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit 4e51e5985c01cc939d9cfe243d933abb5d3f2920 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit cda25cca057da151586e4799696872b03c2fe0a4 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit 20d11549670a16e560ef65a721c9157cc7f00d36 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit 321b1f5f64e902801e64ccea337c47808ebf7345 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit fdb2ff4c18d06d04eefef865740b597eeccda571 Author: Adam Michael Thompson <[email protected]> Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <[email protected]> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson <[email protected]> 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 <[email protected]> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit 989387c95945d4482bac569f41dc8289fbf55708 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Tue Apr 22 17:02:19 2025 -0400 integration * Squashed commit of the following: commit 6051460f06b9f08b710fe7c88c3fadd427ff6cb7 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 25 16:34:45 2025 -0400 update cli require path commit 60c1a003d5998856bf7cd625ed60456cf7f71a6a Author: Adam Thompson <[email protected]> Date: Thu Apr 24 17:10:53 2025 -0400 removes LegacyCheck (#2813) commit ddd2a83ec383713d25aafd016ef7bfde78c93f07 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Wed Apr 23 13:28:13 2025 -0400 disable downlevel commit c591660db5ae5d6a406d454d7fb59c4589d9f252 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:26:13 2025 -0400 lockfile commit eb8708786361825a7b040bd69513ccb6852ded0a Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions * Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <[email protected]> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson <[email protected]> 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 <[email protected]> Date: Tue Apr 22 17:02:19 2025 -0400 integration * fix merge * Update index.ts * fix cli build commit 2d9d6073105a477b944e0a69fd72594167292083 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 25 15:01:31 2025 -0400 fix missing packages commit 29bc251ad60a1793a3cfec8c8faa7b6b4b8fe46b Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 25 15:00:05 2025 -0400 Update pnpm-lock.yaml commit facba0a86c92337b4cfc31660b640cb3259e8476 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 25 14:08:21 2025 -0400 Squashed commit of the following: commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <[email protected]> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson <[email protected]> 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 <[email protected]> Date: Tue Apr 22 17:02:19 2025 -0400 integration commit 3d984c79ebf962d6c15f04b5ce9e349fd7042eed Author: Adam Michael Thompson <[email protected]> Date: Thu Apr 24 18:08:34 2025 -0400 Update storybook addon rollup.config.mjs commit a7013d132551788e660d75b42498afa9c075055f Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 19:42:44 2025 -0400 Update icon & testing lib commit e1a1aff4fd23914416d40d77afe264af80b0c400 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:34:03 2025 -0400 restores missing deps commit e30382de881995e1701ec5a08dbe08d5dd972722 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:24:24 2025 -0400 ts-expect-error commit 06325f05460a6666bf66e16c6cb6441813570017 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:22:23 2025 -0400 Update pnpm-lock.yaml commit ae18786d0f5aac6899775117d78dcf1dc832cdc2 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:12:30 2025 -0400 updates palette rollup config commit b68837adc21d054eb9d901bf18cad18079a38618 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:11:35 2025 -0400 updates /bin commit b1bccaa447866ab7a37ee00fc531ba17e2c75157 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:10:36 2025 -0400 updates main package.json entries commit 76842905f0d1549996acd43414a81ae302c05a31 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:09:08 2025 -0400 Updates rollup config to output UMD directory commit ed463732cadeb673bfffa90ac1b5e92620ddacb1 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 18:00:38 2025 -0400 Squashed commit of the following: commit ed4332d99892dacf44dedba26b29bd8c9e145c1f Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <[email protected]> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:47 2025 -0400 update validate to use package entry files commit 5312a6b3b738b80dec2d3c6aa757b24ab145c20a Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:24:54 2025 -0400 revert typesversions commit 242c454a56b4873b5aa20420a662feb5a5b7eb6a Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 13:20:48 2025 -0400 Delete package.json commit e864b6107850a1df25cf2dd35c45e64ba622f28f Author: Adam Michael Thompson <[email protected]> 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 <[email protected]> Date: Tue Apr 22 16:59:01 2025 -0400 lint fix commit d948565e9dcab87b9539402b8a607815958d2259 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Tue Apr 22 15:41:55 2025 -0400 comments commit 8c81078fb9a94331b2c2ed180c4e27092d383fbf Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 21 18:44:04 2025 -0400 updates downlevel script commit c32015916f83a1e0d61ad195697da98c7e1980b9 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 21 18:06:00 2025 -0400 updates scripts commit 22e70929ec6e9aa10e4e7f7acca61f3c23db5b18 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 14 16:25:09 2025 -0400 remove typesVersions commit 97ff86b6ce5e02051885a8918670e80efe46cc98 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 14 16:24:38 2025 -0400 exclude packages from ts downlevel script commit dde432625ae5903bc1a0353bc27fec0a739f1de7 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 14 16:16:33 2025 -0400 creates updateTypesVersions script commit c49db2428436395eb62fb5f4b6e3b8b61afb89ca Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 9 17:21:45 2025 -0400 remove TS 3 downleveling commit 9c3201380fefb67b3f7c49a0c4839a287dd0c5ef Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 9 17:16:45 2025 -0400 @types/mock-fs commit 17a29f9d41ee5a7c56481cc53c70cf58848bf52d Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 9 17:16:05 2025 -0400 add missing mock-fs commit 305c114d6f27c19a9bc8a35467b651faa4b42724 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 9 17:06:44 2025 -0400 Update pnpm-lock.yaml commit f41e54001407bb1d4d1ea21b82255d21cd4a7408 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 7 13:59:53 2025 -0400 lint console commit 731bfce7284536a8f915dedbc7d67c5ef3e85ec2 Author: Adam Michael Thompson <[email protected]> Date: Mon Apr 7 13:02:51 2025 -0400 lint commit b401c1daacdfe677d4072fe9c1f79770215b40f1 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:52:09 2025 -0400 Update package.json commit 1be25fd72dd5201d98a5e74858f7de116a79f2cc Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:49:18 2025 -0400 update typesVersions commit 61b7ab0195936835821f754935892eb0637545ae Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:41:07 2025 -0400 Update package.json commit 2c0138f5fbcbf1af11d504bb50e609dfa480636a Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:41:03 2025 -0400 Update pnpm-lock.yaml commit 431a7f21bcffbfdd0f45e072c4bae0d1df81ca45 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:40:57 2025 -0400 add runTypescriptDownlevel to bin commit 6ea1f2e4ab7cfa3caf6374a83f3180b2e82bca91 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 21:08:59 2025 -0400 reset packagejson commit 1adb0675543b44c904e81498ca49f00d7a2bc191 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 19:48:31 2025 -0400 "tsc": "lg-internal-build-ts" commit 40743a2023e7522e2bfab6f4ab67643141cc42ac Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 19:48:18 2025 -0400 fix build build scripts commit a0b2c2587fea2b5c1c3f17cdcf8cecf2a176d442 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:54:13 2025 -0400 update packagejsons commit a4d336afd9a685b58258fe3a00da0332e0cb48d5 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:29:43 2025 -0400 use --downlevel flag commit 6c3f9bd0d9bd4b2724277d46a4816bc9941acd74 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 18:01:57 2025 -0400 downlevelDts parses package.json commit b24e1bbc1b14947d8f4de8adbff6ed00bd9980bc Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 17:21:23 2025 -0400 creates downlevelDts commit ebffb2e331ae23c2807cce4cde5a67e216cf72d0 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 16:49:28 2025 -0400 use createSolutionBuilderHost commit c8b010a919acbc48a8749c30db4b75617402b7f4 Author: Adam Michael Thompson <[email protected]> Date: Fri Apr 4 16:13:47 2025 -0400 use typescript node API commit f99dc04759d610edf05ef9ff52105ca7f15537cf Author: Adam Michael Thompson <[email protected]> Date: Thu Apr 3 16:49:51 2025 -0400 Bump to TS5.0 commit d91581d2041b803fb6a8ec6be7004e0db8763d96 Author: Adam Thompson <[email protected]> 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 <[email protected]> Date: Wed Apr 23 18:00:22 2025 -0400 Update index.ts commit 03c9099036e2aa4e0c99f7d0a2ad1ae6fc086f86 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 17:45:03 2025 -0400 rm validate ignore commit 511fc407a0821714a6fb2de0b7d2e8063029604c Merge: b8c7ecd69 028147fe1 Author: Adam Thompson <[email protected]> Date: Wed Apr 23 17:34:52 2025 -0400 Merge branch 'main' into a/validate commit b8c7ecd6990db699a089131ad1196c916b98be56 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 16:11:39 2025 -0400 updates types validation only validate if it should exist commit bdb5393c616d6d2e965ef79a3c0cd5c8e404d901 Author: Adam Michael Thompson <[email protected]> Date: Wed Apr 23 12:50:49 2025 -0400 Create validate-build-package-json.md commit 9d1001af8c8d597a2e8c018bb655737251b4778a Author: Adam Michael Thompson <[email protected]> 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 <[email protected]> Date: Tue Apr 22 17:02:19 2025 -0400 integration * install build as dev dep for every package * Update pnpm-lock.yaml * fixes select entry points * Squashed commit of the following: commit 55fc5a067937831e7c20468bf36dd785bae88f98 Author: Adam Thompson <[email protected]> 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 pa…
1 parent 561cb2b commit 6876708

File tree

145 files changed

+778
-251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+778
-251
lines changed

.changeset/all-build-dev-dep.md

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
---
2+
'@lg-chat/leafygreen-chat-provider': patch
3+
'@leafygreen-ui/leafygreen-provider': patch
4+
'@leafygreen-ui/confirmation-modal': patch
5+
'@leafygreen-ui/gallery-indicator': patch
6+
'@leafygreen-ui/inline-definition': patch
7+
'@leafygreen-ui/loading-indicator': patch
8+
'@leafygreen-ui/segmented-control': patch
9+
'@lg-tools/storybook-decorators': patch
10+
'@leafygreen-ui/expandable-card': patch
11+
'@leafygreen-ui/marketing-modal': patch
12+
'@leafygreen-ui/radio-box-group': patch
13+
'@leafygreen-ui/skeleton-loader': patch
14+
'@leafygreen-ui/password-input': patch
15+
'@lg-charts/series-provider': patch
16+
'@lg-chat/fixed-chat-window': patch
17+
'@leafygreen-ui/info-sprinkle': patch
18+
'@lg-chat/message-feedback': patch
19+
'@leafygreen-ui/input-option': patch
20+
'@leafygreen-ui/number-input': patch
21+
'@leafygreen-ui/ordered-list': patch
22+
'@leafygreen-ui/search-input': patch
23+
'@leafygreen-ui/split-button': patch
24+
'@lg-tools/storybook-addon': patch
25+
'@lg-tools/storybook-utils': patch
26+
'@lg-charts/drag-provider': patch
27+
'@lg-chat/chat-disclaimer': patch
28+
'@lg-chat/message-prompts': patch
29+
'@leafygreen-ui/date-picker': patch
30+
'@leafygreen-ui/descendants': patch
31+
'@leafygreen-ui/empty-state': patch
32+
'@leafygreen-ui/form-footer': patch
33+
'@leafygreen-ui/icon-button': patch
34+
'@leafygreen-ui/polymorphic': patch
35+
'@leafygreen-ui/radio-group': patch
36+
'@leafygreen-ui/testing-lib': patch
37+
'@lg-tools/test-harnesses': patch
38+
'@lg-chat/message-rating': patch
39+
'@leafygreen-ui/date-utils': patch
40+
'@leafygreen-ui/form-field': patch
41+
'@leafygreen-ui/pagination': patch
42+
'@leafygreen-ui/text-input': patch
43+
'@leafygreen-ui/typography': patch
44+
'@leafygreen-ui/guide-cue': patch
45+
'@leafygreen-ui/text-area': patch
46+
'@lg-charts/chart-card': patch
47+
'@lg-chat/message-feed': patch
48+
'@leafygreen-ui/checkbox': patch
49+
'@leafygreen-ui/combobox': patch
50+
'@leafygreen-ui/copyable': patch
51+
'@leafygreen-ui/pipeline': patch
52+
'@leafygreen-ui/side-nav': patch
53+
'@lg-chat/chat-window': patch
54+
'@lg-chat/lg-markdown': patch
55+
'@leafygreen-ui/callout': patch
56+
'@leafygreen-ui/emotion': patch
57+
'@leafygreen-ui/palette': patch
58+
'@leafygreen-ui/popover': patch
59+
'@leafygreen-ui/stepper': patch
60+
'@leafygreen-ui/tooltip': patch
61+
'@lg-chat/rich-links': patch
62+
'@leafygreen-ui/avatar': patch
63+
'@leafygreen-ui/banner': patch
64+
'@leafygreen-ui/button': patch
65+
'@leafygreen-ui/drawer': patch
66+
'@leafygreen-ui/portal': patch
67+
'@leafygreen-ui/ripple': patch
68+
'@leafygreen-ui/select': patch
69+
'@leafygreen-ui/toggle': patch
70+
'@leafygreen-ui/tokens': patch
71+
'@lg-chat/input-bar': patch
72+
'@lg-chat/title-bar': patch
73+
'@leafygreen-ui/badge': patch
74+
'@leafygreen-ui/hooks': patch
75+
'@leafygreen-ui/modal': patch
76+
'@leafygreen-ui/table': patch
77+
'@leafygreen-ui/toast': patch
78+
'@lg-tools/codemods': patch
79+
'@lg-tools/slackbot': patch
80+
'@lg-tools/validate': patch
81+
'@lg-charts/colors': patch
82+
'@lg-charts/legend': patch
83+
'@leafygreen-ui/a11y': patch
84+
'@leafygreen-ui/card': patch
85+
'@leafygreen-ui/chip': patch
86+
'@leafygreen-ui/code': patch
87+
'@leafygreen-ui/icon': patch
88+
'@leafygreen-ui/logo': patch
89+
'@leafygreen-ui/menu': patch
90+
'@leafygreen-ui/tabs': patch
91+
'@lg-tools/install': patch
92+
'@lg-chat/message': patch
93+
'@leafygreen-ui/box': patch
94+
'@leafygreen-ui/lib': patch
95+
'@lg-tools/create': patch
96+
'@lg-tools/update': patch
97+
'@lg-charts/core': patch
98+
'@lg-chat/avatar': patch
99+
'@lg-tools/build': patch
100+
'@lg-tools/link': patch
101+
'@lg-tools/lint': patch
102+
'@lg-tools/meta': patch
103+
'@lg-tools/test': patch
104+
'@lg-tools/cli': patch
105+
'lg-scripts': patch
106+
---
107+
108+
Adds `@lg-tools/build` as a dev dependency

.changeset/build-tsconfig-bundler.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
---
44

55
Updates `package.tsconfig.json` "moduleResolution" to "bundler", and "target" to "ES2020"
6-

.changeset/build-tsconfig-configDir.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
---
44

55
- Updates default types directory to `./dist/types`
6-
- Uses "${configDir}" in base package.json baseUrl, rootDir, outDir, & declarationDir properties
6+
- Uses "${configDir}" in base package.json baseUrl, rootDir, outDir, & declarationDir properties

.changeset/lint-update-ts.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@lg-tools/lint': patch
3+
---
4+
5+
Updates `typescript` peerDepedency to v5.8

.changeset/testing-entry-points.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
'@leafygreen-ui/code': major
3+
'@leafygreen-ui/gallery-indicator': major
4+
'@leafygreen-ui/select': major
5+
'@leafygreen-ui/table': major
6+
'@leafygreen-ui/tabs': major
7+
'@leafygreen-ui/text-area': major
8+
'@leafygreen-ui/text-input': major
9+
'@leafygreen-ui/toggle': major
10+
---
11+
Adds code splitting for test utilities
12+
- Adds `/testing` entry point
13+
- Removes `getTestUtils` from main bundle entry point
14+
15+
When using the component, testing utilities won't be included into your final bundle
16+
```tsx
17+
// App.tsx
18+
import { Component } from `@leafygreen-ui/<package>`
19+
```
20+
21+
Testing utilities (and their dependencies) will only be imported if you import them explicitly
22+
```tsx
23+
import { getTestUtils } from `@leafygreen-ui/<package>/testing`
24+
```

charts/core/tsconfig.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "@lg-tools/build/config/package.tsconfig.json",
33
"compilerOptions": {
4-
"moduleResolution": "node",
54
"paths": {
65
"@leafygreen-ui/icon/dist/*": [
76
"../../packages/icon/src/generated/*"
@@ -11,13 +10,8 @@
1110
]
1211
}
1312
},
14-
"include": [
15-
"src/**/*"
16-
],
17-
"exclude": [
18-
"**/*.spec.*",
19-
"**/*.stories.*"
20-
],
13+
"include": ["src/**/*"],
14+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
2115
"references": [
2216
{
2317
"path": "../chart-card"

chat/chat-disclaimer/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
},
2424
"devDependencies": {
2525
"@leafygreen-ui/button": "workspace:^",
26-
"@leafygreen-ui/modal": "workspace:^"
26+
"@leafygreen-ui/modal": "workspace:^",
27+
"@lg-tools/build": "workspace:^"
2728
},
2829
"homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/chat-disclaimer",
2930
"repository": {

chat/chat-window/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
"@lg-chat/input-bar": "workspace:^",
2929
"@lg-chat/message": "workspace:^",
3030
"@lg-chat/message-feed": "workspace:^",
31+
"@lg-chat/message-feedback": "workspace:^",
3132
"@lg-chat/message-prompts": "workspace:^",
32-
"@lg-chat/message-feedback": "workspace:^"
33+
"@lg-tools/build": "workspace:^"
3334
},
3435
"peerDependencies": {
3536
"@leafygreen-ui/leafygreen-provider": "workspace:^"

chat/fixed-chat-window/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@
3232
"@lg-chat/leafygreen-chat-provider": "workspace:^",
3333
"@lg-chat/message": "workspace:^",
3434
"@lg-chat/message-feed": "workspace:^",
35+
"@lg-chat/message-feedback": "workspace:^",
3536
"@lg-chat/message-prompts": "workspace:^",
36-
"@lg-chat/message-feedback": "workspace:^"
37+
"@lg-tools/build": "workspace:^"
3738
},
3839
"peerDependencies": {
3940
"@leafygreen-ui/leafygreen-provider": "workspace:^"

chat/input-bar/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@
3636
"@leafygreen-ui/leafygreen-provider": "workspace:^",
3737
"@lg-chat/leafygreen-chat-provider": "workspace:^"
3838
},
39-
"devDependencies": {}
39+
"devDependencies": {
40+
"@lg-tools/build": "workspace:^"
41+
}
4042
}

chat/lg-markdown/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@
2525
"peerDependencies": {
2626
"@leafygreen-ui/leafygreen-provider": "workspace:^"
2727
},
28-
"devDependencies": {}
28+
"devDependencies": {
29+
"@lg-tools/build": "workspace:^"
30+
}
2931
}

chat/lg-markdown/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"extends": "@lg-tools/build/config/package.tsconfig.json",
33
"compilerOptions": {
4-
"moduleResolution": "node",
5-
64
"paths": {
75
"@leafygreen-ui/icon/dist/*": [
86
"../../packages/icon/src/generated/*"

chat/message-feed/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"devDependencies": {
3030
"@leafygreen-ui/typography": "workspace:^",
3131
"@lg-chat/chat-disclaimer": "workspace:^",
32-
"@lg-chat/message-prompts": "workspace:^"
32+
"@lg-chat/message-prompts": "workspace:^",
33+
"@lg-tools/build": "workspace:^"
3334
},
3435
"peerDependencies": {
3536
"@leafygreen-ui/leafygreen-provider": "workspace:^",

chat/message-feedback/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"@leafygreen-ui/typography": "workspace:^"
3030
},
3131
"devDependencies": {
32-
"@lg-chat/message-rating": "workspace:^"
32+
"@lg-chat/message-rating": "workspace:^",
33+
"@lg-tools/build": "workspace:^"
3334
},
3435
"peerDependencies": {
3536
"@leafygreen-ui/leafygreen-provider": "workspace:^"

chat/message/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
},
2828
"devDependencies": {
2929
"@lg-chat/avatar": "workspace:^",
30-
"@lg-chat/message-feedback": "workspace:^"
30+
"@lg-chat/message-feedback": "workspace:^",
31+
"@lg-tools/build": "workspace:^"
3132
},
3233
"peerDependencies": {
3334
"@leafygreen-ui/leafygreen-provider": "workspace:^",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"chromatic": "npx chromatic",
2222
"clean": "npm-run-all --parallel clean:*",
2323
"clean:builds": "pnpm recursive exec -- rm -rf ./{dist,tsconfig.tsbuildinfo,stories.js}",
24+
"clean:ts": "pnpm recursive exec -- rm -rf ./{dist/**/*.d.ts.,tsconfig.tsbuildinfo}",
2425
"clean:cache": "pnpm recursive exec -- rm -rf ./.turbo; rm -rf .turbo/cache",
2526
"clean:modules": "pnpm recursive exec -- rm -rf node_modules; rm -rf node_modules",
2627
"fix": "lg lint --fix",

packages/box/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"publishConfig": {
1616
"access": "public"
1717
},
18-
"dependencies": {},
1918
"homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/box",
2019
"repository": {
2120
"type": "git",

packages/callout/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"@leafygreen-ui/typography": "workspace:^"
2525
},
2626
"devDependencies": {
27-
"@leafygreen-ui/code": "workspace:^"
27+
"@leafygreen-ui/code": "workspace:^",
28+
"@lg-tools/build": "workspace:^"
2829
},
2930
"peerDependencies": {
3031
"@leafygreen-ui/leafygreen-provider": "workspace:^"

packages/chip/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@
3333
"bugs": {
3434
"url": "https://jira.mongodb.org/projects/PD/summary"
3535
},
36-
"devDependencies": {}
36+
"devDependencies": {
37+
"@lg-tools/build": "workspace:^"
38+
}
3739
}

packages/code/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
"module": "./dist/esm/index.js",
77
"types": "./dist/types/index.d.ts",
88
"typesVersions": {},
9+
"exports": {
10+
".": {
11+
"require": "./dist/umd/index.js",
12+
"import": "./dist/esm/index.js",
13+
"types": "./dist/types/index.d.ts"
14+
},
15+
"./testing": {
16+
"require": "./dist/umd/testing/index.js",
17+
"import": "./dist/esm/testing/index.js",
18+
"types": "./dist/types/testing/index.d.ts"
19+
}
20+
},
921
"scripts": {
1022
"build": "lg-build bundle",
1123
"tsc": "lg-build tsc",

packages/code/src/Code/Code.spec.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import Icon from '@leafygreen-ui/icon';
88
import IconButton from '@leafygreen-ui/icon-button';
99
import { Context, jest as Jest } from '@leafygreen-ui/testing-lib';
1010

11+
import { numOfCollapsedLinesOfCode } from '../constants';
12+
import { Panel } from '../Panel';
13+
import { getTestUtils } from '../testing';
1114
import {
1215
languageOptions,
1316
renderCode,
1417
renderCodeWithLanguageSwitcher,
15-
} from '../Code.testutils';
16-
import { numOfCollapsedLinesOfCode } from '../constants';
17-
import { Panel } from '../Panel';
18-
import { getTestUtils } from '../utils/getTestUtils/getTestUtils';
18+
} from '../testing/Code.testutils';
1919

2020
import Code from './Code';
2121
import { hasMultipleLines } from './utils';

packages/code/src/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ export type { LanguageOption } from './Panel/Panel.types';
77
export type { SyntaxProps } from './Syntax/Syntax.types';
88
export type { LineHighlightingDefinition } from './types';
99
export { Language } from './types';
10-
export {
11-
getLgIds,
12-
type GetLgIdsReturnType,
13-
getTestUtils,
14-
type TestUtilsReturnType,
15-
} from './utils';
10+
export { getLgIds, type GetLgIdsReturnType } from './utils';
1611

1712
export default Code;

packages/code/src/Code.testutils.tsx renamed to packages/code/src/testing/Code.testutils.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import React from 'react';
22
import { render, RenderResult } from '@testing-library/react';
33

4-
import Code from './Code/Code';
5-
import { CodeProps } from './Code/Code.types';
6-
import { PanelProps } from './Panel/Panel.types';
7-
import { Panel } from './Panel';
8-
import { Language } from './types';
9-
import { getTestUtils, TestUtilsReturnType } from './utils';
4+
import Code from '../Code/Code';
5+
import { CodeProps } from '../Code/Code.types';
6+
import { Panel } from '../Panel';
7+
import { PanelProps } from '../Panel/Panel.types';
8+
import { Language } from '../types';
9+
10+
import { getTestUtils } from './getTestUtils';
11+
import type { TestUtilsReturnType } from './getTestUtils.types';
1012

1113
const codeSnippet = `
1214
import datetime from './';

packages/code/src/utils/getTestUtils/getTestUtils.spec.tsx renamed to packages/code/src/testing/getTestUtils.spec.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import {
77
renderCode,
88
renderCodeWithLanguageSwitcher,
99
renderMultipleCodes,
10-
} from '../../Code.testutils';
11-
10+
} from './Code.testutils';
1211
import { getTestUtils } from './getTestUtils';
1312

1413
describe('packages/tabs/getTestUtils', () => {

packages/code/src/utils/getTestUtils/getTestUtils.ts renamed to packages/code/src/testing/getTestUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { getByLgId, queryBySelector } from '@lg-tools/test-harnesses';
22

33
import { getTestUtils as getButtonTestUtils } from '@leafygreen-ui/button';
4-
import { getTestUtils as getSelectTestUtils } from '@leafygreen-ui/select';
4+
import { getTestUtils as getSelectTestUtils } from '@leafygreen-ui/select/testing';
55

6-
import { DEFAULT_LGID_ROOT, getLgIds } from '../getLgIds';
6+
import { DEFAULT_LGID_ROOT, getLgIds } from '../utils/getLgIds';
77

88
import { TestUtilsReturnType } from './getTestUtils.types';
99

0 commit comments

Comments
 (0)