From 389d9e8e99071d48047a8b6729aeb35e9638f13b Mon Sep 17 00:00:00 2001 From: Dmitrii Podlesnyi Date: Wed, 13 Dec 2023 19:57:20 +0400 Subject: [PATCH] feat: build packages with rollup for .mjs extension support --- .babelrc.json | 7 +- .swcrc | 29 ----- .swcrc.commonjs | 43 ------- .swcrc.esm | 43 ------- package.json | 14 +-- rollup.config.mjs | 46 +++++++ scripts/build.cjs | 3 +- scripts/generate-swcrc.cjs | 55 --------- scripts/swcrc-template.cjs | 28 ----- yarn.lock | 237 ++++++++++++------------------------- 10 files changed, 131 insertions(+), 374 deletions(-) delete mode 100644 .swcrc delete mode 100644 .swcrc.commonjs delete mode 100644 .swcrc.esm create mode 100644 rollup.config.mjs delete mode 100755 scripts/generate-swcrc.cjs delete mode 100644 scripts/swcrc-template.cjs diff --git a/.babelrc.json b/.babelrc.json index 417fc50b..5776fcb4 100644 --- a/.babelrc.json +++ b/.babelrc.json @@ -1,5 +1,6 @@ { "sourceType": "unambiguous", + "inputSourceMap": true, "presets": [ [ "@babel/preset-env", @@ -14,5 +15,7 @@ "@babel/preset-typescript", ["@babel/preset-react", { "runtime": "automatic" }] ], - "plugins": [] -} \ No newline at end of file + "plugins": [ + "babel-plugin-styled-components" + ] +} diff --git a/.swcrc b/.swcrc deleted file mode 100644 index c32354b0..00000000 --- a/.swcrc +++ /dev/null @@ -1,29 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/swcrc", - "jsc": { - "parser": { - "syntax": "typescript", - "tsx": true, - "dts": true, - "decorators": false, - "dynamicImport": false - }, - "transform": { - "react": { - "runtime": "automatic", - "pragma": "React.createElement", - "pragmaFrag": "React.Fragment", - "throwIfNamespace": true, - "development": false, - "useBuiltins": false - } - }, - "baseUrl": ".", - "target": "es2019", - "loose": false, - "keepClassNames": true, - "externalHelpers": false - }, - "sourceMaps": true, - "minify": false -} \ No newline at end of file diff --git a/.swcrc.commonjs b/.swcrc.commonjs deleted file mode 100644 index 44ceb0ef..00000000 --- a/.swcrc.commonjs +++ /dev/null @@ -1,43 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/swcrc", - "jsc": { - "parser": { - "syntax": "typescript", - "tsx": true, - "dts": true, - "decorators": false, - "dynamicImport": false - }, - "transform": { - "react": { - "runtime": "automatic", - "pragma": "React.createElement", - "pragmaFrag": "React.Fragment", - "throwIfNamespace": true, - "development": false, - "useBuiltins": false - } - }, - "baseUrl": ".", - "target": "es2019", - "loose": false, - "keepClassNames": true, - "externalHelpers": true - }, - "sourceMaps": true, - "minify": false, - "env": { - "targets": { - "chrome": "69", - "firefox": "68", - "safari": "13.1", - "node": "12" - }, - "mode": "entry", - "coreJs": "3.22" - }, - "exclude": "\\.(test|stories)\\.", - "module": { - "type": "commonjs" - } -} \ No newline at end of file diff --git a/.swcrc.esm b/.swcrc.esm deleted file mode 100644 index cc8491ea..00000000 --- a/.swcrc.esm +++ /dev/null @@ -1,43 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/swcrc", - "jsc": { - "parser": { - "syntax": "typescript", - "tsx": true, - "dts": true, - "decorators": false, - "dynamicImport": false - }, - "transform": { - "react": { - "runtime": "automatic", - "pragma": "React.createElement", - "pragmaFrag": "React.Fragment", - "throwIfNamespace": true, - "development": false, - "useBuiltins": false - } - }, - "baseUrl": ".", - "target": "es2019", - "loose": false, - "keepClassNames": true, - "externalHelpers": true - }, - "sourceMaps": true, - "minify": false, - "env": { - "targets": { - "chrome": "69", - "firefox": "68", - "safari": "13.1", - "node": "12" - }, - "mode": "entry", - "coreJs": "3.22" - }, - "exclude": "\\.(test|stories)\\.", - "module": { - "type": "es6" - } -} \ No newline at end of file diff --git a/package.json b/package.json index 713f8b56..142882c1 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "module": "dist/esm/index.js", "exports": { ".": { - "import": "./dist/esm/index.js", + "import": "./dist/esm/index.mjs", "require": "./dist/cjs/index.js" } }, @@ -34,7 +34,6 @@ "lint:css": "stylelint '**/*Styles.tsx'", "lint:css:fix": "yarn lint:css --fix", "types": "tsc --noEmit", - "generate-swcrc": "zx ./scripts/generate-swcrc.cjs", "prepare": "husky install", "release": "semantic-release", "release:dry": "yarn release --dry-run", @@ -48,8 +47,6 @@ }, "dependencies": { "@styled-system/should-forward-prop": "5.1.5", - "@swc/helpers": "^0.4.11", - "@swc/plugin-styled-components": "^1.2.10", "react-collapsed": "3.0.2", "react-jazzicon": "^1.0.4", "react-toastify": "7.0.4", @@ -64,6 +61,8 @@ "@babel/preset-typescript": "^7.22.5", "@commitlint/cli": "^17.8.1", "@commitlint/config-conventional": "^17.8.1", + "@rollup/plugin-babel": "^6.0.4", + "@rollup/plugin-node-resolve": "^15.2.3", "@semantic-release/commit-analyzer": "^9.0.2", "@semantic-release/release-notes-generator": "^10.0.3", "@semrel-extra/npm": "^1.2.2", @@ -79,9 +78,6 @@ "@svgr/plugin-jsx": "5.5.0", "@svgr/plugin-prettier": "5.5.0", "@svgr/plugin-svgo": "5.5.0", - "@swc/cli": "^0.1.57", - "@swc/core": "^1.2.245", - "@swc/jest": "^0.2.22", "@testing-library/react": "^13.3.0", "@types/jest": "^29.5.3", "@types/react": "18.0.17", @@ -94,18 +90,19 @@ "@types/ua-parser-js": "^0.7.36", "@typescript-eslint/eslint-plugin": "^5.36.1", "@typescript-eslint/parser": "^5.36.1", + "babel-plugin-styled-components": "^2.1.4", "browserslist": "^4.21.10", "conventional-changelog-conventionalcommits": "4.6.3", "eslint": "8.46.0", "eslint-config-prettier": "9.0.0", "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-import": "^2.29.0", "eslint-plugin-jsx-a11y": "6.7.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "5.0.0", "eslint-plugin-react": "7.33.1", "eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-storybook": "^0.6.13", - "eslint-plugin-import": "^2.29.0", "husky": "^7.0.1", "jest": "^29.0.1", "jest-environment-jsdom": "^29.0.1", @@ -121,6 +118,7 @@ "react-dom": "18.2.0", "react-is": "18.2.0", "rimraf": "3.0.2", + "rollup": "3.29.1", "semantic-release": "^19.0.5", "storybook": "^7.2.3", "storybook-addon-swc": "^1.2.0", diff --git a/rollup.config.mjs b/rollup.config.mjs new file mode 100644 index 00000000..211bf69c --- /dev/null +++ b/rollup.config.mjs @@ -0,0 +1,46 @@ +import fs from 'node:fs' +import resolve from '@rollup/plugin-node-resolve' +import { babel } from '@rollup/plugin-babel' + +const extensions = ['.js', '.jsx', '.ts', '.tsx'] + +const { dependencies = {}, peerDependencies = {} } = JSON.parse( + fs.readFileSync('package.json', 'utf-8'), +) + +const external = [ + 'react/jsx-runtime', + ...Object.keys({ ...dependencies, ...peerDependencies }), +] + +export default { + input: './packages/index', + output: [ + { + dir: 'dist/cjs', + format: 'cjs', + preserveModules: true, + preserveModulesRoot: 'packages', + generatedCode: 'es2015', + sourcemap: true, + }, + { + dir: 'dist/esm', + format: 'esm', + preserveModules: true, + preserveModulesRoot: 'packages', + entryFileNames: '[name].mjs', + generatedCode: 'es2015', + sourcemap: true, + }, + ], + plugins: [ + resolve({ extensions, preferBuiltins: true }), + babel({ + exclude: 'node_modules/**', + babelHelpers: 'bundled', + extensions, + }), + ], + external, +} diff --git a/scripts/build.cjs b/scripts/build.cjs index d61da429..eb125b05 100755 --- a/scripts/build.cjs +++ b/scripts/build.cjs @@ -3,8 +3,7 @@ const main = async () => { await $`rm -rf ./dist` - await $`swc ./packages --no-swcrc --config-file .swcrc.commonjs -d ./dist/cjs` - await $`swc ./packages --no-swcrc --config-file .swcrc.esm -d ./dist/esm` + await $`rollup -c` await $`tsc --project tsconfig.production.json` } diff --git a/scripts/generate-swcrc.cjs b/scripts/generate-swcrc.cjs deleted file mode 100755 index e3894cd3..00000000 --- a/scripts/generate-swcrc.cjs +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env yarn zx -/*global fs*/ - -const baseConfig = require('./swcrc-template.cjs') - -const devConfig = { - ...baseConfig, - jsc: { - ...(baseConfig.jsc ?? {}), - externalHelpers: false, - }, -} - -const prodConfig = { - ...baseConfig, - jsc: { - ...(baseConfig.jsc ?? {}), - externalHelpers: true, - }, - env: { - targets: { - chrome: '69', - firefox: '68', - safari: '13.1', - node: '12', - }, - mode: 'entry', - coreJs: '3.22', - }, - exclude: '\\.(test|stories)\\.', -} - -const cjsConfig = { - ...prodConfig, - module: { - ...(prodConfig.module ?? {}), - type: 'commonjs', - }, -} - -const esmConfig = { - ...prodConfig, - module: { - ...(prodConfig.module ?? {}), - type: 'es6', - }, -} - -const generateConfig = (name, config) => { - fs.writeFileSync(name, JSON.stringify(config, null, 2)) -} - -generateConfig('.swcrc', devConfig) -generateConfig('.swcrc.commonjs', cjsConfig) -generateConfig('.swcrc.esm', esmConfig) diff --git a/scripts/swcrc-template.cjs b/scripts/swcrc-template.cjs deleted file mode 100644 index 7b4e3d95..00000000 --- a/scripts/swcrc-template.cjs +++ /dev/null @@ -1,28 +0,0 @@ -module.exports = { - $schema: 'https://json.schemastore.org/swcrc', - jsc: { - parser: { - syntax: 'typescript', - tsx: true, - dts: true, - decorators: false, - dynamicImport: false, - }, - transform: { - react: { - runtime: 'automatic', - pragma: 'React.createElement', - pragmaFrag: 'React.Fragment', - throwIfNamespace: true, - development: false, - useBuiltins: false, - }, - }, - baseUrl: '.', - target: 'es2019', - loose: false, - keepClassNames: true, - }, - sourceMaps: true, - minify: false, -} diff --git a/yarn.lock b/yarn.lock index 7ce1471d..33f291cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1961,13 +1961,6 @@ slash "^3.0.0" strip-ansi "^6.0.0" -"@jest/create-cache-key-function@^27.4.2": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz#7448fae15602ea95c828f5eceed35c202a820b31" - integrity sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ== - dependencies: - "@jest/types" "^27.5.1" - "@jest/environment@^29.0.1": version "29.0.1" resolved "https://registry.npmjs.org/@jest/environment/-/environment-29.0.1.tgz#d236ce9e906744ac58bfc59ae6f7c9882ace7927" @@ -2138,17 +2131,6 @@ slash "^3.0.0" write-file-atomic "^4.0.2" -"@jest/types@^27.5.1": - version "27.5.1" - resolved "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" - integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^16.0.0" - chalk "^4.0.0" - "@jest/types@^29.0.1": version "29.0.1" resolved "https://registry.npmjs.org/@jest/types/-/types-29.0.1.tgz#1985650acf137bdb81710ff39a4689ec071dd86a" @@ -2830,6 +2812,35 @@ dependencies: "@babel/runtime" "^7.13.10" +"@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-node-resolve@^15.2.3": + version "15.2.3" + resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz#e5e0b059bd85ca57489492f295ce88c2d4b0daf9" + integrity sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ== + dependencies: + "@rollup/pluginutils" "^5.0.1" + "@types/resolve" "1.20.2" + deepmerge "^4.2.2" + is-builtin-module "^3.2.1" + is-module "^1.0.0" + resolve "^1.22.1" + +"@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" + "@semantic-release/commit-analyzer@^9.0.2": version "9.0.2" resolved "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-9.0.2.tgz#a78e54f9834193b55f1073fa6258eecc9a545e03" @@ -3890,162 +3901,56 @@ deepmerge "^4.2.2" svgo "^1.2.2" -"@swc/cli@^0.1.57": - version "0.1.57" - resolved "https://registry.npmjs.org/@swc/cli/-/cli-0.1.57.tgz#a9c424de5a217ec20a4b7c2c0e5c343980537e83" - integrity sha512-HxM8TqYHhAg+zp7+RdTU69bnkl4MWdt1ygyp6BDIPjTiaJVH6Dizn2ezbgDS8mnFZI1FyhKvxU/bbaUs8XhzQg== - dependencies: - commander "^7.1.0" - fast-glob "^3.2.5" - slash "3.0.0" - source-map "^0.7.3" - -"@swc/core-android-arm-eabi@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.245.tgz#d3dfa9d6a4a623d2d7e2b221417bfd5dac6477a1" - integrity sha512-KpQVX1DdvOjNupJzoM1j6BqEnZjIJlGV0vINNE46bIybMrCMA14Q5OnsI8hGHH6WizSEV7FrMaFHpAQLwu+uhQ== - dependencies: - "@swc/wasm" "1.2.122" - -"@swc/core-android-arm64@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.2.245.tgz#b516b033a1ee48c745d671618329e8903f5eda2a" - integrity sha512-QEK0aphFD+Z9zV+b38wasuM8nMrS9mixXybzXGZeRrGCUHOLxHeQzP69ksHocv8uBKLrega5NWcYxRwul7bueQ== - dependencies: - "@swc/wasm" "1.2.130" - -"@swc/core-darwin-arm64@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.245.tgz#33c5db025642715f4bcad2ef229df5494cb67013" - integrity sha512-0qn4H9h6otyW3L+sFSCZ7pgp93fxizFIkBscxShjX1160zs4AScnK5hp4kNYfyjxr2tMCIA5WVttfL6NIYp6Uw== - "@swc/core-darwin-arm64@1.3.76": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.76.tgz#757f10c6482a44b8cea3e85b8ae714ce9b31b4b5" integrity sha512-ovviEhZ/1E81Z9OGrO0ivLWk4VCa3I3ZzM+cd3gugglRRwVwtlIaoIYqY5S3KiCAupDd1+UCl5X7Vbio7a/V8g== -"@swc/core-darwin-x64@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.2.245.tgz#28dec045f319652bab79886d3ef6cad5e53bf818" - integrity sha512-DkJHcGZi3pZkH+jl6QCWcXB00xP9Ntp8btpUuqsiRhtNkbQhTOk+2d8M3AzSJs/p2Jlr3Z24tBIq52q3CQJiCg== - "@swc/core-darwin-x64@1.3.76": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.76.tgz#edba4a4dbbc7454bc914fc8cf61545a74622d46f" integrity sha512-tcySTDqs0SHCebtW35sCdcLWsmTEo7bEwx0gNL/spetqVT9fpFi6qU8qcnt7i2KaZHbeNl9g1aadu+Yrni+GzA== -"@swc/core-freebsd-x64@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.245.tgz#917646c55424946456988d7df25b137ebb5318e1" - integrity sha512-xKM7VDXzgZL4Mh3TAtQz1sHK8yxoinvddX5MRanmQXoEEGeIWaYKqKYymbhjw4DwIZakB58rc7MjYrpDLK6dOA== - dependencies: - "@swc/wasm" "1.2.130" - -"@swc/core-linux-arm-gnueabihf@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.245.tgz#a8e94b46d65ed2b2183421b517ae5da388a177f8" - integrity sha512-n9CE5AP4/xa5crPbEJovLIsS9UR1/zBrVERWXDTSUEvpS6yiV2KuMa8fWuJ+rJtS1soNhCKsS/8cHljBb4b77A== - dependencies: - "@swc/wasm" "1.2.130" - "@swc/core-linux-arm-gnueabihf@1.3.76": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.76.tgz#d998f0e51ebec03e8666f02cee3fc6e40ceaf680" integrity sha512-apgzpGWy1AwoMF4urAAASsAjE7rEzZFIF+p6utuxhS7cNHzE0AyEVDYJbo+pzBdlZ8orBdzzsHtFwoEgKOjebA== -"@swc/core-linux-arm64-gnu@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.245.tgz#1cc35e1205c47b8fab94e99f35a52376fb6a525e" - integrity sha512-P0x8QKxGoZeLVLMxBR/XCJobiTjxS6QPCHJsWfhdktCZoxm/+3OtH858ns9b7lFNV3tggxAU6l9PtXdkvU6Cew== - "@swc/core-linux-arm64-gnu@1.3.76": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.76.tgz#4f4d98f699e92ebafb10ed75e468384a81ab128c" integrity sha512-c3c0zz6S0eludqidDpuqbadE0WT3OZczyQxe9Vw8lFFXES85mvNGtwYzyGK2o7TICpsuHrndwDIoYpmpWk879g== -"@swc/core-linux-arm64-musl@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.245.tgz#13d23fae0b012d5b60c5d455e26e83cdb0dc20dc" - integrity sha512-dHvYYpZHIMXPVfFrOz6kgTFVDEAq2SVjRwOl7aqpDpFfTRW7JEc7yuHh/W+kioMhVIiscMc6lXHFXSUlRA5qFA== - "@swc/core-linux-arm64-musl@1.3.76": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.76.tgz#4341ca15e4a398de73af149c52c4d45b8cf5c4c8" integrity sha512-Is3bpq7F2qtlnkzEeOD6HIZJPpOmu3q6c82lKww90Q0NnrlSluVMozTHJgwVoFZyizH7uLnk0LuNcEAWLnmJIw== -"@swc/core-linux-x64-gnu@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.245.tgz#a39ccd128b4c6c5a759170789a11f533dba753ec" - integrity sha512-NAgd4ImnWubYKdZE1sQi9hNvsSw8+z3nVm7WrZqhBx3OVQx/XQ2OQxUKIYvTe3LInUDxywX+ifRQ/syR/pFHUQ== - "@swc/core-linux-x64-gnu@1.3.76": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.76.tgz#cc2e6f0f90f0e9d6dcb8bc62cd31172e0967b396" integrity sha512-iwCeRzd9oSvUzqt7nU6p/ztceAWfnO9XVxBn502R5gs6QCBbE1HCKrWHDO77aKPK7ss+0NcIGHvXTd9L8/wRzw== -"@swc/core-linux-x64-musl@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.245.tgz#2797641fcce6ef8babce99923aef81e1faf3e70a" - integrity sha512-jBThAr+TdmGRj5syD58IRlTu+N/9IcWT4GZ/YdujwDifyb2oZVj5Hop5D8wMBqBrDs1oWmK43sHp2suTfWdKBQ== - "@swc/core-linux-x64-musl@1.3.76": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.76.tgz#ebc327df5e07aa02e41309e56590f505f1fc64c0" integrity sha512-a671g4tW8kyFeuICsgq4uB9ukQfiIyXJT4V6YSnmqhCTz5mazWuDxZ5wKnx/1g5nXTl+U5cWH2TZaCJatp4GKA== -"@swc/core-win32-arm64-msvc@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.245.tgz#ace106c6c1f8d3fb969ce07914e54d29c217e275" - integrity sha512-m0cCHZHTay0J1PxUGEVeoe9Xr8Xmf2Ahdn+FPk3tp/bqA+65eT527kAQBRc6fsyJyu6tip3STVQHapFauD/w9g== - dependencies: - "@swc/wasm" "1.2.130" - "@swc/core-win32-arm64-msvc@1.3.76": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.76.tgz#34fb884d2ee2eec3382c01f712bde0f05e058a3b" integrity sha512-+swEFtjdMezS0vKUhJC3psdSDtOJGY5pEOt4e8XOPvn7aQpKQ9LfF49XVtIwDSk5SGuWtVoLFzkSY3reWUJCyg== -"@swc/core-win32-ia32-msvc@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.245.tgz#65c103fc8ac6f71ad25873c2c410f7502220a1af" - integrity sha512-7mMwNFpD7eepMbbveSzeEIvOL5W2I2TPHD0kR6PKq//2mr4wR+LOrw6I4i0O159Go8bDVSrdRhCNzfY66oNJ7Q== - dependencies: - "@swc/wasm" "1.2.130" - "@swc/core-win32-ia32-msvc@1.3.76": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.76.tgz#a0dc94357d72eca6572522ed1202b6476222c249" integrity sha512-5CqwAykpGBJ3PqGLOlWGLGIPpBAG1IwWVDUfro3hhjQ7XJxV5Z1aQf5V5OJ90HJVtrEAVx2xx59UV/Dh081LOg== -"@swc/core-win32-x64-msvc@1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.245.tgz#16a6fe0d0b14b36c4bdeec3bc2f670a3fb357798" - integrity sha512-vgresfVnySSZs7DO8SLpn3SB0aX+EN7N6n4YtF/rH37rFwH4WIJhNKRv6Wq4n/hzx33OT116+e/bIDMTg2cEoQ== - "@swc/core-win32-x64-msvc@1.3.76": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.76.tgz#eea647407895a5a410a459b2abf8572adb147927" integrity sha512-CiMpWLLlR3Cew9067E7XxaLBwYYJ90r9EhGSO6V1pvYSWj7ET/Ppmtj1ZhzPJMqRXAP6xflfl5R5o4ee1m4WLA== -"@swc/core@^1.2.245": - version "1.2.245" - resolved "https://registry.npmjs.org/@swc/core/-/core-1.2.245.tgz#72244799a2162a9e9f7d5be53fedb50801a573cc" - integrity sha512-QbjqYkgC1AbJZqybzm3jWg13I5VhlRRODpeBb7H69h5GY1YUWdAb/mpKA5x5jh7j6VuGxJHDxYfry0Rv/MNz7w== - optionalDependencies: - "@swc/core-android-arm-eabi" "1.2.245" - "@swc/core-android-arm64" "1.2.245" - "@swc/core-darwin-arm64" "1.2.245" - "@swc/core-darwin-x64" "1.2.245" - "@swc/core-freebsd-x64" "1.2.245" - "@swc/core-linux-arm-gnueabihf" "1.2.245" - "@swc/core-linux-arm64-gnu" "1.2.245" - "@swc/core-linux-arm64-musl" "1.2.245" - "@swc/core-linux-x64-gnu" "1.2.245" - "@swc/core-linux-x64-musl" "1.2.245" - "@swc/core-win32-arm64-msvc" "1.2.245" - "@swc/core-win32-ia32-msvc" "1.2.245" - "@swc/core-win32-x64-msvc" "1.2.245" - "@swc/core@^1.3.49": version "1.3.76" resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.3.76.tgz#f5259bd718e11854d9bd3a05f91f40bca21dffbc" @@ -4062,35 +3967,6 @@ "@swc/core-win32-ia32-msvc" "1.3.76" "@swc/core-win32-x64-msvc" "1.3.76" -"@swc/helpers@^0.4.11": - version "0.4.11" - resolved "https://registry.npmjs.org/@swc/helpers/-/helpers-0.4.11.tgz#db23a376761b3d31c26502122f349a21b592c8de" - integrity sha512-rEUrBSGIoSFuYxwBYtlUFMlE2CwGhmW+w9355/5oduSw8e5h2+Tj4UrAGNNgP9915++wj5vkQo0UuOBqOAq4nw== - dependencies: - tslib "^2.4.0" - -"@swc/jest@^0.2.22": - version "0.2.22" - resolved "https://registry.npmjs.org/@swc/jest/-/jest-0.2.22.tgz#70d02ac648c21a442016d7a0aa485577335a4c9a" - integrity sha512-PIUIk9IdB1oAVfF9zNIfYoMBoEhahrrSvyryFANas7swC1cF0L5HR0f9X4qfet46oyCHCBtNcSpN0XJEOFIKlw== - dependencies: - "@jest/create-cache-key-function" "^27.4.2" - -"@swc/plugin-styled-components@^1.2.10": - version "1.2.10" - resolved "https://registry.npmjs.org/@swc/plugin-styled-components/-/plugin-styled-components-1.2.10.tgz#c7507d7fa033ae5e06addbad1170f37ba0b14ce3" - integrity sha512-ZhpwqpFXWkTY7/dw3oyJuGziiC+w3YuVuLV3WMeAQeoq4duxbSYrplFIzhBtuyWuj/PpB4Ct6VVPQJBZtczYYg== - -"@swc/wasm@1.2.122": - version "1.2.122" - resolved "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.122.tgz#87a5e654b26a71b2e84b801f41e45f823b856639" - integrity sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ== - -"@swc/wasm@1.2.130": - version "1.2.130" - resolved "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz#88ac26433335d1f957162a9a92f1450b73c176a0" - integrity sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q== - "@testing-library/dom@^8.5.0": version "8.17.1" resolved "https://registry.npmjs.org/@testing-library/dom/-/dom-8.17.1.tgz#2d7af4ff6dad8d837630fecd08835aee08320ad7" @@ -4506,6 +4382,11 @@ "@types/scheduler" "*" csstype "^3.0.2" +"@types/resolve@1.20.2": + version "1.20.2" + resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975" + integrity sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q== + "@types/retry@0.12.0": version "0.12.0" resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.0.tgz#2b35eccfcee7d38cd72ad99232fbd58bffb3c84d" @@ -4589,13 +4470,6 @@ resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== -"@types/yargs@^16.0.0": - version "16.0.4" - resolved "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977" - integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== - dependencies: - "@types/yargs-parser" "*" - "@types/yargs@^17.0.8": version "17.0.12" resolved "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.12.tgz#0745ff3e4872b4ace98616d4b7e37ccbd75f9526" @@ -5523,6 +5397,17 @@ babel-plugin-react-docgen@^4.2.1: lodash "^4.17.11" picomatch "^2.3.0" +babel-plugin-styled-components@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-2.1.4.tgz#9a1f37c7f32ef927b4b008b529feb4a2c82b1092" + integrity sha512-Xgp9g+A/cG47sUyRwwYxGM4bR/jDRg5N6it/8+HxCnbT5XNKSKDT9xm4oag/osgqjC2It/vH0yXsomOG6k558g== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-module-imports" "^7.22.5" + "@babel/plugin-syntax-jsx" "^7.22.5" + lodash "^4.17.21" + picomatch "^2.3.1" + babel-plugin-syntax-jsx@^6.18.0: version "6.18.0" resolved "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" @@ -5743,6 +5628,11 @@ buffer@^5.5.0: base64-js "^1.3.1" ieee754 "^1.1.13" +builtin-modules@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6" + integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== + builtins@^5.0.0: version "5.0.1" resolved "https://registry.yarnpkg.com/builtins/-/builtins-5.0.1.tgz#87f6db9ab0458be728564fa81d876d8d74552fa9" @@ -6151,7 +6041,7 @@ commander@^6.2.1: resolved "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c" integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA== -commander@^7.1.0, commander@^7.2.0: +commander@^7.2.0: version "7.2.0" resolved "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== @@ -7804,7 +7694,7 @@ fast-diff@^1.1.2: resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== -fast-glob@^3.2.11, fast-glob@^3.2.5, fast-glob@^3.2.9: +fast-glob@^3.2.11, fast-glob@^3.2.9: version "3.2.11" resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== @@ -8979,6 +8869,13 @@ is-boolean-object@^1.1.0: call-bind "^1.0.2" has-tostringtag "^1.0.0" +is-builtin-module@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169" + integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A== + dependencies: + builtin-modules "^3.3.0" + is-callable@^1.1.3, is-callable@^1.2.7: version "1.2.7" resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" @@ -9083,6 +8980,11 @@ is-lambda@^1.0.1: resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" integrity sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ== +is-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" + integrity sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g== + is-nan@^1.2.1: version "1.3.2" resolved "https://registry.yarnpkg.com/is-nan/-/is-nan-1.3.2.tgz#043a54adea31748b55b6cd4e09aadafa69bd9e1d" @@ -12767,7 +12669,7 @@ resolve@^1.1.6, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -resolve@^1.10.1, resolve@^1.22.4: +resolve@^1.10.1, resolve@^1.22.1, resolve@^1.22.4: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== @@ -12834,6 +12736,13 @@ rimraf@~2.6.2: dependencies: glob "^7.1.3" +rollup@3.29.1: + version "3.29.1" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.1.tgz#ba53a179d46ac3cd79e162dca6ab70d93cd26f78" + integrity sha512-c+ebvQz0VIH4KhhCpDsI+Bik0eT8ZFEVZEYw0cGMVqIP8zc+gnwl7iXCamTw7vzv2MeuZFZfdx5JJIq+ehzDlg== + optionalDependencies: + fsevents "~2.3.2" + run-applescript@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/run-applescript/-/run-applescript-5.0.0.tgz#e11e1c932e055d5c6b40d98374e0268d9b11899c" @@ -13180,7 +13089,7 @@ sisteransi@^1.0.5: resolved "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== -slash@3.0.0, slash@^3.0.0: +slash@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==