From 29aa9e6b188b7c74315bcb262515ceca05e5a811 Mon Sep 17 00:00:00 2001 From: Levi Whalen Date: Tue, 16 Jul 2024 10:58:22 -0600 Subject: [PATCH] fix #2230 - prevent babel helpers duplication and condense bundle & types (#2278) * fix #2230 * fix linting * improve docsearch-js build process, update all rollup configs, delete some deps --- package.json | 5 +- packages/docsearch-js/package.json | 9 +- packages/docsearch-js/rollup.config.js | 61 ++++--- packages/docsearch-react/button.js | 2 +- packages/docsearch-react/modal.js | 2 +- packages/docsearch-react/package.json | 9 +- packages/docsearch-react/rollup.config.js | 48 +++--- packages/website/src/components/ApplyForm.js | 16 +- rollup.base.config.js | 9 +- yarn.lock | 160 +++++++++---------- 10 files changed, 161 insertions(+), 160 deletions(-) diff --git a/package.json b/package.json index 497569f68..c59374764 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "@babel/plugin-transform-react-jsx": "7.23.4", "@babel/preset-env": "7.23.5", "@babel/preset-typescript": "7.23.3", + "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-json": "4.1.0", "@rollup/plugin-node-resolve": "7.1.1", "@rollup/plugin-replace": "2.3.3", @@ -62,8 +63,6 @@ "babel-plugin-inline-replace-variables": "1.3.1", "babel-plugin-module-resolver": "4.0.0", "bundlesize2": "0.0.31", - "concurrently": "5.3.0", - "cross-env": "7.0.3", "cssnano": "4.1.10", "cypress": "9.6.1", "dotenv": "16.3.1", @@ -88,8 +87,8 @@ "react": "18.2.0", "react-dom": "18.2.0", "rollup": "1.32.1", - "rollup-plugin-babel": "4.4.0", "rollup-plugin-commonjs": "10.1.0", + "rollup-plugin-dts": "^6.1.1", "rollup-plugin-filesize": "9.1.2", "rollup-plugin-license": "3.2.0", "rollup-plugin-terser": "7.0.2", diff --git a/packages/docsearch-js/package.json b/packages/docsearch-js/package.json index 5d2cd795c..fc3b57104 100644 --- a/packages/docsearch-js/package.json +++ b/packages/docsearch-js/package.json @@ -22,11 +22,10 @@ "jsdelivr": "dist/umd/index.js", "scripts": { "build:clean": "rm -rf ./dist", - "build:esm": "cross-env BUILD=esm rollup --config", - "build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm", - "build:umd": "cross-env BUILD=umd rollup --config", - "build": "yarn build:clean && yarn build:umd && yarn build:esm && yarn build:types", - "on:change": "concurrently \"yarn build:esm\" \"yarn build:types\"", + "build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types", + "build:clean-types": "rm -rf ./dist/esm/types", + "build": "yarn build:clean && yarn build:types && rollup --config && yarn build:clean-types", + "on:change": "yarn build", "watch": "watch \"yarn on:change\" --ignoreDirectoryPattern \"/dist/\"" }, "dependencies": { diff --git a/packages/docsearch-js/rollup.config.js b/packages/docsearch-js/rollup.config.js index 40b817583..c70f8ab0a 100644 --- a/packages/docsearch-js/rollup.config.js +++ b/packages/docsearch-js/rollup.config.js @@ -1,40 +1,35 @@ import replace from '@rollup/plugin-replace'; -import { plugins } from '../../rollup.base.config'; +import { plugins, typesConfig } from '../../rollup.base.config'; import { getBundleBanner } from '../../scripts/getBundleBanner'; import pkg from './package.json'; -if (!process.env.BUILD) { - throw new Error('The `BUILD` environment variable is required to build.'); -} - -const output = { - umd: { - file: 'dist/umd/index.js', - format: 'umd', - sourcemap: true, - name: 'docsearch', - banner: getBundleBanner(pkg), - }, - esm: { - file: 'dist/esm/index.js', - format: 'es', - sourcemap: true, - banner: getBundleBanner(pkg), +export default [ + { + input: 'src/index.ts', + output: [ + { + file: 'dist/umd/index.js', + format: 'umd', + sourcemap: true, + name: 'docsearch', + banner: getBundleBanner(pkg), + }, + { + file: 'dist/esm/index.js', + format: 'es', + sourcemap: true, + banner: getBundleBanner(pkg), + plugins: [...plugins], + }, + ], + plugins: [ + ...plugins, + replace({ + 'process.env.NODE_ENV': JSON.stringify('production'), + }), + ], }, -}; - -export default { - input: 'src/index.ts', - output: output[process.env.BUILD], - plugins: - process.env.BUILD === 'umd' - ? [ - ...plugins, - replace({ - 'process.env.NODE_ENV': JSON.stringify('production'), - }), - ] - : plugins, -}; + typesConfig, +]; diff --git a/packages/docsearch-react/button.js b/packages/docsearch-react/button.js index 5614c2a79..6df05f24a 100644 --- a/packages/docsearch-react/button.js +++ b/packages/docsearch-react/button.js @@ -1 +1 @@ -export { DocSearchButton } from './dist/esm/DocSearchButton.js'; +export { DocSearchButton } from './dist/esm'; diff --git a/packages/docsearch-react/modal.js b/packages/docsearch-react/modal.js index 7ae1e01d7..66df0df32 100644 --- a/packages/docsearch-react/modal.js +++ b/packages/docsearch-react/modal.js @@ -1 +1 @@ -export { DocSearchModal } from './dist/esm/DocSearchModal.js'; +export { DocSearchModal } from './dist/esm'; diff --git a/packages/docsearch-react/package.json b/packages/docsearch-react/package.json index a7a389817..2ddd94629 100644 --- a/packages/docsearch-react/package.json +++ b/packages/docsearch-react/package.json @@ -25,11 +25,10 @@ "jsdelivr": "dist/umd/index.js", "scripts": { "build:clean": "rm -rf ./dist", - "build:esm": "babel src --root-mode upward --extensions '.ts,.tsx' --out-dir dist/esm", - "build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm", - "build:umd": "rollup --config", - "build": "yarn build:clean && yarn build:umd && yarn build:esm && yarn build:types", - "on:change": "concurrently \"yarn build:esm\" \"yarn build:types\"", + "build:clean-types": "rm -rf ./dist/esm/types", + "build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types", + "build": "yarn build:clean && yarn build:types && rollup --config && yarn build:clean-types", + "on:change": "yarn build", "watch": "watch \"yarn on:change\" --ignoreDirectoryPattern \"/dist/\"" }, "dependencies": { diff --git a/packages/docsearch-react/rollup.config.js b/packages/docsearch-react/rollup.config.js index 0078f7590..5b804f2ad 100644 --- a/packages/docsearch-react/rollup.config.js +++ b/packages/docsearch-react/rollup.config.js @@ -1,28 +1,34 @@ import replace from '@rollup/plugin-replace'; -import { plugins } from '../../rollup.base.config'; +import { plugins, typesConfig } from '../../rollup.base.config'; import { getBundleBanner } from '../../scripts/getBundleBanner'; import pkg from './package.json'; -export default { - input: 'src/index.ts', - external: ['react', 'react-dom'], - output: { - globals: { - react: 'React', - 'react-dom': 'ReactDOM', - }, - file: 'dist/umd/index.js', - format: 'umd', - sourcemap: true, - name: pkg.name, - banner: getBundleBanner(pkg), +export default [ + { + input: 'src/index.ts', + external: ['react', 'react-dom'], + output: [ + { + globals: { + react: 'React', + 'react-dom': 'ReactDOM', + }, + file: 'dist/umd/index.js', + format: 'umd', + sourcemap: true, + name: pkg.name, + banner: getBundleBanner(pkg), + }, + { dir: 'dist/esm', format: 'es' }, + ], + plugins: [ + ...plugins, + replace({ + 'process.env.NODE_ENV': JSON.stringify('production'), + }), + ], }, - plugins: [ - ...plugins, - replace({ - 'process.env.NODE_ENV': JSON.stringify('production'), - }), - ], -}; + typesConfig, +]; diff --git a/packages/website/src/components/ApplyForm.js b/packages/website/src/components/ApplyForm.js index b61f5ba10..f78565395 100644 --- a/packages/website/src/components/ApplyForm.js +++ b/packages/website/src/components/ApplyForm.js @@ -77,14 +77,14 @@ function ApplyForm() { {state.message.startsWith('Your DocSearch') ? ( <> - URL Already Submitted! -
- - {state.message} - + URL Already Submitted! +
+ + {state.message} + ) : ( <> diff --git a/rollup.base.config.js b/rollup.base.config.js index 0af327835..e07a27d67 100644 --- a/rollup.base.config.js +++ b/rollup.base.config.js @@ -1,7 +1,8 @@ +import { babel } from '@rollup/plugin-babel'; import json from '@rollup/plugin-json'; import resolve from '@rollup/plugin-node-resolve'; import replace from '@rollup/plugin-replace'; -import babel from 'rollup-plugin-babel'; +import dts from 'rollup-plugin-dts'; import filesize from 'rollup-plugin-filesize'; import { terser } from 'rollup-plugin-terser'; @@ -24,3 +25,9 @@ export const plugins = [ showGzippedSize: true, }), ]; + +export const typesConfig = { + input: 'dist/esm/types/index.d.ts', + output: [{ file: 'dist/esm/index.d.ts', format: 'es' }], + plugins: [dts()], +}; diff --git a/yarn.lock b/yarn.lock index c01d130b3..d72e77032 100644 --- a/yarn.lock +++ b/yarn.lock @@ -446,6 +446,14 @@ dependencies: "@babel/highlight" "^7.22.5" +"@babel/code-frame@^7.24.2": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" + integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== + dependencies: + "@babel/highlight" "^7.24.7" + picocolors "^1.0.0" + "@babel/compat-data@^7.13.11": version "7.14.7" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.14.7.tgz#7b047d7a3a89a67d2258dc61f604f098f1bc7e08" @@ -1089,7 +1097,7 @@ dependencies: "@babel/types" "^7.23.0" -"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.12.13": +"@babel/helper-module-imports@^7.12.13": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.13.tgz#ec67e4404f41750463e455cc3203f6a32e93fcb0" integrity sha512-NGmfvRp9Rqxy0uHSSVP+SRIW1q31a7Ji10cLBcqSDUngGentY4FRiHOFZFE1CLU5eiL0oE8reH7Tg1y99TDM/g== @@ -1484,6 +1492,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz#9544ef6a33999343c8740fa51350f30eeaaaf193" integrity sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ== +"@babel/helper-validator-identifier@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" + integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== + "@babel/helper-validator-option@^7.12.17": version "7.12.17" resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.12.17.tgz#d1fbf012e1a79b7eebbfdc6d270baaf8d9eb9831" @@ -1647,6 +1660,16 @@ chalk "^2.0.0" js-tokens "^4.0.0" +"@babel/highlight@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d" + integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw== + dependencies: + "@babel/helper-validator-identifier" "^7.24.7" + chalk "^2.4.2" + js-tokens "^4.0.0" + picocolors "^1.0.0" + "@babel/parser@^7.1.0", "@babel/parser@^7.12.13", "@babel/parser@^7.12.7", "@babel/parser@^7.13.0", "@babel/parser@^7.7.0": version "7.13.4" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.13.4.tgz#340211b0da94a351a6f10e63671fa727333d13ab" @@ -4267,7 +4290,7 @@ "@docusaurus/theme-search-algolia" "2.4.1" "@docusaurus/types" "2.4.1" -"@docusaurus/react-loadable@5.5.2", "react-loadable@npm:@docusaurus/react-loadable@5.5.2": +"@docusaurus/react-loadable@5.5.2": version "5.5.2" resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce" integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ== @@ -6615,6 +6638,14 @@ resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.20.tgz#111b5db0f501aa89b05076fa31f0ea0e0c292cd3" integrity sha512-88p7+M0QGxKpmnkfXjS4V26AnoC/eiqZutE8GLdaI5X12NY75bXSdTY9NkmYb2Xyk1O+MmkuO6Frmsj84V6I8Q== +"@rollup/plugin-babel@^6.0.4": + version "6.0.4" + resolved "https://registry.yarnpkg.com/@rollup/plugin-babel/-/plugin-babel-6.0.4.tgz#bd698e351fa9aa9619fcae780aea2a603d98e4c4" + integrity sha512-YF7Y52kFdFT/xVSuVdjkV5ZdX/3YtmX0QulG+x0taQOtJdHYzVU61aSSkAgVJ7NOv6qPkIYiJSgSWWN/DM5sGw== + dependencies: + "@babel/helper-module-imports" "^7.18.6" + "@rollup/pluginutils" "^5.0.1" + "@rollup/plugin-json@4.1.0": version "4.1.0" resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-4.1.0.tgz#54e09867ae6963c593844d8bd7a9c718294496f3" @@ -6650,6 +6681,15 @@ estree-walker "^1.0.1" picomatch "^2.2.2" +"@rollup/pluginutils@^5.0.1": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz#7e53eddc8c7f483a4ad0b94afb1f7f5fd3c771e0" + integrity sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g== + dependencies: + "@types/estree" "^1.0.0" + estree-walker "^2.0.2" + picomatch "^2.3.1" + "@sideway/address@^4.1.3": version "4.1.3" resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.3.tgz#d93cce5d45c5daec92ad76db492cc2ee3c64ab27" @@ -7020,6 +7060,11 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.51.tgz#cfd70924a25a3fd32b218e5e420e6897e1ac4f40" integrity sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ== +"@types/estree@^1.0.0": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" + integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== + "@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.18": version "4.17.28" resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.28.tgz#c47def9f34ec81dc6328d0b1b5303d1ec98d86b8" @@ -10177,21 +10222,6 @@ concat-stream@^2.0.0: readable-stream "^3.0.2" typedarray "^0.0.6" -concurrently@5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-5.3.0.tgz#7500de6410d043c912b2da27de3202cb489b1e7b" - integrity sha512-8MhqOB6PWlBfA2vJ8a0bSFKATOdWlHiQlk11IfmQBPaHVP8oP2gsh2MObE6UR3hqDHqvaIvLTyceNW6obVuFHQ== - dependencies: - chalk "^2.4.2" - date-fns "^2.0.1" - lodash "^4.17.15" - read-pkg "^4.0.1" - rxjs "^6.5.2" - spawn-command "^0.0.2-1" - supports-color "^6.1.0" - tree-kill "^1.2.2" - yargs "^13.3.0" - config-chain@^1.1.12: version "1.1.13" resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.13.tgz#fad0795aa6a6cdaff9ed1b68e9dff94372c232f4" @@ -10582,13 +10612,6 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-env@7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf" - integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw== - dependencies: - cross-spawn "^7.0.1" - cross-fetch@^3.0.4: version "3.0.6" resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.0.6.tgz#3a4040bc8941e653e0e9cf17f29ebcd177d3365c" @@ -10607,7 +10630,7 @@ cross-spawn@^6.0.0: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3: +cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -11064,11 +11087,6 @@ data-urls@^3.0.2: whatwg-mimetype "^3.0.0" whatwg-url "^11.0.0" -date-fns@^2.0.1: - version "2.17.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.17.0.tgz#afa55daea539239db0a64e236ce716ef3d681ba1" - integrity sha512-ZEhqxUtEZeGgg9eHNSOAJ8O9xqSgiJdrL0lzSSfMF54x6KXWJiOH/xntSJ9YomJPrYH/p08t6gWjGWq1SDJlSA== - dateformat@^3.0.0: version "3.0.3" resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" @@ -12410,6 +12428,11 @@ estree-walker@^1.0.1: resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-1.0.1.tgz#31bc5d612c96b704106b477e6dd5d8aa138cb700" integrity sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg== +estree-walker@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" + integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== + esutils@^2.0.2: version "2.0.3" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" @@ -16484,6 +16507,13 @@ magic-string@^0.25.2, magic-string@^0.25.5: dependencies: sourcemap-codec "^1.4.4" +magic-string@^0.30.10: + version "0.30.10" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.10.tgz#123d9c41a0cb5640c892b041d4cfb3bd0aa4b39e" + integrity sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ== + dependencies: + "@jridgewell/sourcemap-codec" "^1.4.15" + magic-string@~0.30.0: version "0.30.5" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.5.tgz#1994d980bd1c8835dc6e78db7cbd4ae4f24746f9" @@ -20147,6 +20177,14 @@ react-loadable-ssr-addon-v5-slorber@^1.0.1: dependencies: "@babel/runtime" "^7.10.3" +"react-loadable@npm:@docusaurus/react-loadable@5.5.2": + version "5.5.2" + resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce" + integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ== + dependencies: + "@types/react" "*" + prop-types "^15.6.2" + react-refresh@^0.9.0: version "0.9.0" resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.9.0.tgz#71863337adc3e5c2f8a6bfddd12ae3bfe32aafbf" @@ -20296,15 +20334,6 @@ read-pkg@^3.0.0: normalize-package-data "^2.3.2" path-type "^3.0.0" -read-pkg@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-4.0.1.tgz#963625378f3e1c4d48c85872b5a6ec7d5d093237" - integrity sha1-ljYlN48+HE1IyFhytabsfV0JMjc= - dependencies: - normalize-package-data "^2.3.2" - parse-json "^4.0.0" - pify "^3.0.0" - read-pkg@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" @@ -20918,14 +20947,6 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -rollup-plugin-babel@4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-4.4.0.tgz#d15bd259466a9d1accbdb2fe2fff17c52d030acb" - integrity sha512-Lek/TYp1+7g7I+uMfJnnSJ7YWoD58ajo6Oarhlex7lvUce+RCKRuGRSgztDO3/MF/PuGKmUL5iTHKf208UNszw== - dependencies: - "@babel/helper-module-imports" "^7.0.0" - rollup-pluginutils "^2.8.1" - rollup-plugin-commonjs@10.1.0: version "10.1.0" resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-10.1.0.tgz#417af3b54503878e084d127adf4d1caf8beb86fb" @@ -20937,6 +20958,15 @@ rollup-plugin-commonjs@10.1.0: resolve "^1.11.0" rollup-pluginutils "^2.8.1" +rollup-plugin-dts@^6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/rollup-plugin-dts/-/rollup-plugin-dts-6.1.1.tgz#46b33f4d1d7f4e66f1171ced9b282ac11a15a254" + integrity sha512-aSHRcJ6KG2IHIioYlvAOcEq6U99sVtqDDKVhnwt70rW6tsz3tv5OSjEiWcgzfsHdLyGXZ/3b/7b/+Za3Y6r1XA== + dependencies: + magic-string "^0.30.10" + optionalDependencies: + "@babel/code-frame" "^7.24.2" + rollup-plugin-filesize@9.1.2: version "9.1.2" resolved "https://registry.yarnpkg.com/rollup-plugin-filesize/-/rollup-plugin-filesize-9.1.2.tgz#958eea26880698d0bc008fa9d214657ee180b934" @@ -21026,7 +21056,7 @@ run-queue@^1.0.0, run-queue@^1.0.3: dependencies: aproba "^1.1.1" -rxjs@^6.5.2, rxjs@^6.5.3, rxjs@^6.6.0: +rxjs@^6.5.3, rxjs@^6.6.0: version "6.6.6" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.6.tgz#14d8417aa5a07c5e633995b525e1e3c0dec03b70" integrity sha512-/oTwee4N4iWzAMAL9xdGKjkEHmIwupR3oXbQjCKywF1BeFohswF3vZdogbmEF6pZkOsXTzWkrZszrWpQTByYVg== @@ -21763,11 +21793,6 @@ space-separated-tokens@^1.0.0: resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz#85f32c3d10d9682007e917414ddc5c26d1aa6899" integrity sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA== -spawn-command@^0.0.2-1: - version "0.0.2-1" - resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0" - integrity sha1-YvXpRmmBwbeW3Fkpk34RycaSG9A= - spdx-compare@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/spdx-compare/-/spdx-compare-1.0.0.tgz#2c55f117362078d7409e6d7b08ce70a857cd3ed7" @@ -22945,11 +22970,6 @@ tr46@~0.0.3: resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== -tree-kill@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" - integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== - trim-newlines@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" @@ -24337,14 +24357,6 @@ yargs-parser@20.2.4: resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== -yargs-parser@^13.1.2: - version "13.1.2" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" - integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - yargs-parser@^15.0.1: version "15.0.3" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-15.0.3.tgz#316e263d5febe8b38eef61ac092b33dfcc9b1115" @@ -24376,22 +24388,6 @@ yargs-parser@^21.0.1: resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== -yargs@^13.3.0: - version "13.3.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd" - integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw== - dependencies: - cliui "^5.0.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^13.1.2" - yargs@^14.2: version "14.2.3" resolved "https://registry.yarnpkg.com/yargs/-/yargs-14.2.3.tgz#1a1c3edced1afb2a2fea33604bc6d1d8d688a414"