From ea282c1af32f51a325b91ed9a63783c344624441 Mon Sep 17 00:00:00 2001 From: neverland Date: Mon, 27 Jan 2025 14:42:49 +0800 Subject: [PATCH] chore: remove unused update-packages scripts (#735) --- pnpm-lock.yaml | 304 +------------------------ scripts/update-packages/package.json | 22 -- scripts/update-packages/src/modern.ts | 72 ------ scripts/update-packages/src/rspack.ts | 72 ------ scripts/update-packages/src/rspress.ts | 43 ---- scripts/update-packages/tsconfig.json | 8 - 6 files changed, 10 insertions(+), 511 deletions(-) delete mode 100644 scripts/update-packages/package.json delete mode 100644 scripts/update-packages/src/modern.ts delete mode 100644 scripts/update-packages/src/rspack.ts delete mode 100644 scripts/update-packages/src/rspress.ts delete mode 100644 scripts/update-packages/tsconfig.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 44b6d4ec..a1539707 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -487,7 +487,7 @@ importers: version: link:../utils axios: specifier: ^1.7.9 - version: 1.7.9(debug@4.3.7) + version: 1.7.9 ora: specifier: ^5.4.1 version: 5.4.1 @@ -614,7 +614,7 @@ importers: version: 5.19.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) axios: specifier: ^1.7.9 - version: 1.7.9(debug@4.3.7) + version: 1.7.9 dayjs: specifier: 1.11.13 version: 1.11.13 @@ -692,7 +692,7 @@ importers: version: link:../utils axios: specifier: ^1.7.9 - version: 1.7.9(debug@4.3.7) + version: 1.7.9 browserslist-load-config: specifier: ^1.0.0 version: 1.0.0 @@ -1177,28 +1177,6 @@ importers: scripts/tsconfig: {} - scripts/update-packages: - dependencies: - '@manypkg/get-packages': - specifier: ^2.2.2 - version: 2.2.2 - '@modern-js/generator-utils': - specifier: ^3.7.14 - version: 3.7.14(@modern-js/codesmith@2.6.5)(typescript@5.7.3) - fs-extra: - specifier: ^11.1.1 - version: 11.2.0 - devDependencies: - '@types/fs-extra': - specifier: ^11.0.4 - version: 11.0.4 - '@types/node': - specifier: ^16 - version: 16.18.123 - tsx: - specifier: 4.6.1 - version: 4.6.1 - packages: '@ampproject/remapping@2.3.0': @@ -2659,32 +2637,6 @@ packages: cpu: [x64] os: [win32] - '@formily/core@2.3.2': - resolution: {integrity: sha512-qS02mKWDRdm5IYnx3b6L4i/i7oFEBbVotF6B3xdqgbkeSjdzSz81/aJnEr0Sbi3yCgh1FhA0x+QKkpWnE8/GDQ==} - engines: {npm: '>=3.0.0'} - - '@formily/json-schema@2.3.2': - resolution: {integrity: sha512-DFsdrbxFvdxUtrD5mVRb8USUWJV6KkhSiz83wxA779lgntGDLrwuE0DI2dVg8Vm4dZsK79iB+XhWidaNqH41fQ==} - engines: {npm: '>=3.0.0'} - peerDependencies: - typescript: '>4.1.5' - - '@formily/path@2.3.2': - resolution: {integrity: sha512-KK8h/CupHOs4HIgu9JucqwWvIr8Nbmof++Kby0NdNFHdTN5nAyVzStS8VEPFPGRkQaXV3AH+FVGAxgucmEy4ZA==} - engines: {npm: '>=3.0.0'} - - '@formily/reactive@2.3.2': - resolution: {integrity: sha512-fw9EBWyBNSo3d1diX+HW3v6fBYqmn5zRM+L8le03XGft847LaajCYkjXiZXSzj7v8U4qzjhURIcqVYgmi4OW8g==} - engines: {npm: '>=3.0.0'} - - '@formily/shared@2.3.2': - resolution: {integrity: sha512-hb8eL28Dqe4WQzGtxC3h7OwG9VPPBXtfKUfmnRkaBMJ8zn2KmdYOP8YnAkwdO2ZMgxtkOl0hku0Ufm2PwP3ziA==} - engines: {npm: '>=3.0.0'} - - '@formily/validator@2.3.2': - resolution: {integrity: sha512-XoY31kUypHB8MIw9jhp/Pb0fDFan5wPhR9Hgz/HiTPUdpg8l7kxzHRMZieqtL4YbtFzJD4wpk1+XrylILpPGYg==} - engines: {npm: '>=3.0.0'} - '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} @@ -2851,29 +2803,12 @@ packages: '@modern-js/babel-preset@2.63.6': resolution: {integrity: sha512-08kgt6w216LC17K2OalDusE+ViIbO6qALrVQ81uJCRneKjivsP66RLmsV6z1A7KPVpEJVIkk4uvKHEXwVhJ0bw==} - '@modern-js/codesmith-formily@2.6.5': - resolution: {integrity: sha512-FFbp9eBGd3Kr62O8HHBhwv8+aeTBXvvmQ0+BRt2fhbQ8Dpz0HLtIcSuAuawROQYif0VzIKBZscCvmpxkko400A==} - peerDependencies: - '@modern-js/codesmith': ^2.6.5 - - '@modern-js/codesmith-utils@2.6.5': - resolution: {integrity: sha512-sAEqSANgO3fKb/OZuq/IO6iFt+1Mn82NgkgK5sUqdJCgSJ83fxcUB9/h7GywVAwKkogc7M+kVbscInCTqqRXow==} - - '@modern-js/codesmith@2.6.5': - resolution: {integrity: sha512-AxQuFAl63KDA8Izv0W12/IrMsPLrbc9/jU0dEzCHJKx8bpeqJiCtxdAUx7idb39zzP6xux+2qi1ETMF5WUaUQQ==} - '@modern-js/core@2.63.6': resolution: {integrity: sha512-FPTcldbr0CkvoKzsjZv501dsTRFk5a4EyNM1AzPbiwAp4Sb2DDwQ7CIEq+aQUn80kJB0ByUK4GPNs7wFfIc5QA==} '@modern-js/core@2.63.7': resolution: {integrity: sha512-84DYrQTmVn/QtL/jzIfq832+rF7VRvj/jTvA6Lr95a0i67R8ileBUTVGRZE6Ic9k2wz+AKsSsf6524m673Es4Q==} - '@modern-js/generator-common@3.7.14': - resolution: {integrity: sha512-yoqO/JY+RPcbJbawbyaErW07LW+FMWeZXDtrrFoxyjQKNz88W0XpNicmg3Ys/+ggJ3dyfHtxSoF1Pr7Ds5AxYA==} - - '@modern-js/generator-utils@3.7.14': - resolution: {integrity: sha512-XnEChtTR24BrcBwrGax1yl0ZNvzJ++OWDsXsWhy7i7nKYVdzp7de/rxKZgEhKVgts9zgyIlSy4n5lerWdquipg==} - '@modern-js/module-tools@2.63.7': resolution: {integrity: sha512-qy2XWTbm7Gyhu9cP2jecX/y7BdliZgoGYfLzFkHsaq741RmwWaUKfotNhPeOZPzYIaU3slDzF4UDIjj/1CHIbg==} engines: {node: '>=16.0.0'} @@ -2905,9 +2840,6 @@ packages: '@modern-js/plugin-i18n@2.63.7': resolution: {integrity: sha512-juPz4w+ILHNPuSWnvI/KJ7PLFeQPBRqkISFO+DDBb06sL07aIJWhhFpB48VAjNWngPIHg3ijR1sTuflJwZ0eSg==} - '@modern-js/plugin-i18n@2.64.0': - resolution: {integrity: sha512-2tbhXPglCCHHxfwAP3Jl7i1dcr9l/RoXyUkkGIK3B6hoZvxo+3Yp4AO/jCAcDU6XAbFkTnqh/nCVF0+b2UDZAw==} - '@modern-js/plugin-v2@2.63.6': resolution: {integrity: sha512-6TRjP7uzgv6pas96+lo1CCADLT4MHet5J+0uieG307PrfIPxxKl+0cIlH49D3CmMLiFy8nYJJWYGevd13buy4w==} @@ -3035,9 +2967,6 @@ packages: '@modern-js/utils@2.63.7': resolution: {integrity: sha512-w7Vrr3SbgN3hV7sNm9eUleKA+A/HcxxIXDrEdo+g1em9yKZXnY+fFsluVLHY9F0bUMcti5h8rDAvlxX4C6J0mg==} - '@modern-js/utils@2.64.0': - resolution: {integrity: sha512-WCYAPqfY2mBW1PutqyAIHqIzXnjfYGxeLrffmuuSa/MdNMptn8mXU+6nBCryUHUzy/Ig2CaxPtNAx5TnlYXucQ==} - '@module-federation/error-codes@0.8.4': resolution: {integrity: sha512-55LYmrDdKb4jt+qr8qE8U3al62ZANp3FhfVaNPOaAmdTh0jHdD8M3yf5HKFlr5xVkVO4eV/F/J2NCfpbh+pEXQ==} @@ -4937,10 +4866,6 @@ packages: resolution: {integrity: sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==} engines: {node: '>=8'} - cli-width@3.0.0: - resolution: {integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==} - engines: {node: '>= 10'} - cliui@8.0.1: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} engines: {node: '>=12'} @@ -6072,10 +5997,6 @@ packages: fs-constants@1.0.0: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} - fs-extra@10.0.1: - resolution: {integrity: sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag==} - engines: {node: '>=12'} - fs-extra@11.2.0: resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} engines: {node: '>=14.14'} @@ -6184,10 +6105,6 @@ packages: resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==} deprecated: Glob versions prior to v9 are no longer supported - glob@7.2.0: - resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==} - deprecated: Glob versions prior to v9 are no longer supported - glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported @@ -6549,10 +6466,6 @@ packages: inline-style-parser@0.2.4: resolution: {integrity: sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q==} - inquirer@8.2.6: - resolution: {integrity: sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==} - engines: {node: '>=12.0.0'} - interpret@3.1.1: resolution: {integrity: sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==} engines: {node: '>=10.13.0'} @@ -6983,31 +6896,12 @@ packages: lodash.debounce@4.0.8: resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==} - lodash.flattendeep@4.4.0: - resolution: {integrity: sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==} - lodash.flow@3.5.0: resolution: {integrity: sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw==} - lodash.get@4.4.2: - resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} - deprecated: This package is deprecated. Use the optional chaining (?.) operator instead. - - lodash.isfunction@3.0.9: - resolution: {integrity: sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==} - - lodash.isobject@3.0.2: - resolution: {integrity: sha512-3/Qptq2vr7WeJbB4KHUSKlq8Pl7ASXi3UG6CMbBm8WRtXi8+GHm7mKaU3urfpSEzWe2wCIChs6/sdocUsTKJiA==} - - lodash.isstring@4.0.1: - resolution: {integrity: sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==} - lodash.memoize@4.1.2: resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==} - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - lodash.startcase@4.4.0: resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==} @@ -7511,9 +7405,6 @@ packages: resolution: {integrity: sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==} hasBin: true - mute-stream@0.0.8: - resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==} - mz@2.7.0: resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} @@ -8960,10 +8851,6 @@ packages: resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==} engines: {node: '>=18'} - run-async@2.4.1: - resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} - engines: {node: '>=0.12.0'} - run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -9294,11 +9181,6 @@ packages: engines: {node: '>=10'} hasBin: true - semver@7.6.0: - resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==} - engines: {node: '>=10'} - hasBin: true - semver@7.6.3: resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} engines: {node: '>=10'} @@ -10027,9 +9909,6 @@ packages: resolution: {integrity: sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==} engines: {node: '>=10'} - upper-case@2.0.2: - resolution: {integrity: sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==} - uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} @@ -11982,37 +11861,6 @@ snapshots: '@esbuild/win32-x64@0.21.5': optional: true - '@formily/core@2.3.2': - dependencies: - '@formily/reactive': 2.3.2 - '@formily/shared': 2.3.2 - '@formily/validator': 2.3.2 - - '@formily/json-schema@2.3.2(typescript@5.7.3)': - dependencies: - '@formily/core': 2.3.2 - '@formily/reactive': 2.3.2 - '@formily/shared': 2.3.2 - typescript: 5.7.3 - - '@formily/path@2.3.2': {} - - '@formily/reactive@2.3.2': {} - - '@formily/shared@2.3.2': - dependencies: - '@formily/path': 2.3.2 - camel-case: 4.1.2 - lower-case: 2.0.2 - no-case: 3.0.4 - param-case: 3.0.4 - pascal-case: 3.1.2 - upper-case: 2.0.2 - - '@formily/validator@2.3.2': - dependencies: - '@formily/shared': 2.3.2 - '@isaacs/cliui@8.0.2': dependencies: string-width: 5.1.2 @@ -12318,43 +12166,6 @@ snapshots: - '@rsbuild/core' - supports-color - '@modern-js/codesmith-formily@2.6.5(@modern-js/codesmith@2.6.5)(typescript@5.7.3)': - dependencies: - '@formily/json-schema': 2.3.2(typescript@5.7.3) - '@formily/validator': 2.3.2 - '@modern-js/codesmith': 2.6.5 - '@modern-js/codesmith-utils': 2.6.5 - '@swc/helpers': 0.5.1 - inquirer: 8.2.6 - transitivePeerDependencies: - - typescript - - '@modern-js/codesmith-utils@2.6.5': - dependencies: - '@swc/helpers': 0.5.1 - chalk: 4.1.2 - execa: 5.1.1 - fs-extra: 10.0.1 - glob: 7.2.0 - lodash.flattendeep: 4.4.0 - lodash.get: 4.4.2 - lodash.isfunction: 3.0.9 - lodash.isobject: 3.0.2 - lodash.isstring: 4.0.1 - lodash.merge: 4.6.2 - ora: 5.4.1 - semver: 7.6.0 - - '@modern-js/codesmith@2.6.5': - dependencies: - '@modern-js/codesmith-utils': 2.6.5 - '@swc/helpers': 0.5.1 - axios: 1.7.9(debug@4.3.7) - debug: 4.3.7 - tar: 6.2.1 - transitivePeerDependencies: - - supports-color - '@modern-js/core@2.63.6': dependencies: '@modern-js/node-bundle-require': 2.63.6 @@ -12369,28 +12180,6 @@ snapshots: '@modern-js/utils': 2.63.7 '@swc/helpers': 0.5.13 - '@modern-js/generator-common@3.7.14(@modern-js/codesmith@2.6.5)(typescript@5.7.3)': - dependencies: - '@modern-js/codesmith-formily': 2.6.5(@modern-js/codesmith@2.6.5)(typescript@5.7.3) - '@modern-js/plugin-i18n': 2.64.0 - '@swc/helpers': 0.5.13 - transitivePeerDependencies: - - '@modern-js/codesmith' - - typescript - - '@modern-js/generator-utils@3.7.14(@modern-js/codesmith@2.6.5)(typescript@5.7.3)': - dependencies: - '@modern-js/codesmith-utils': 2.6.5 - '@modern-js/generator-common': 3.7.14(@modern-js/codesmith@2.6.5)(typescript@5.7.3) - '@modern-js/plugin-i18n': 2.64.0 - '@swc/helpers': 0.5.13 - glob: 7.2.3 - js-yaml: 4.1.0 - json5: 2.2.3 - transitivePeerDependencies: - - '@modern-js/codesmith' - - typescript - '@modern-js/module-tools@2.63.7(typescript@5.7.3)': dependencies: '@ampproject/remapping': 2.3.0 @@ -12445,7 +12234,7 @@ snapshots: '@modern-js/plugin-i18n': 2.63.7 '@modern-js/utils': 2.63.7 '@swc/helpers': 0.5.13 - axios: 1.7.9(debug@4.3.7) + axios: 1.7.9 resolve-from: 5.0.0 transitivePeerDependencies: - debug @@ -12472,11 +12261,6 @@ snapshots: '@modern-js/utils': 2.63.7 '@swc/helpers': 0.5.13 - '@modern-js/plugin-i18n@2.64.0': - dependencies: - '@modern-js/utils': 2.64.0 - '@swc/helpers': 0.5.13 - '@modern-js/plugin-v2@2.63.6': dependencies: '@modern-js/node-bundle-require': 2.63.6 @@ -12609,7 +12393,7 @@ snapshots: '@modern-js/types': 2.63.6 '@modern-js/utils': 2.63.6 '@swc/helpers': 0.5.13 - axios: 1.7.9(debug@4.3.7) + axios: 1.7.9 connect-history-api-fallback: 2.0.0 http-compression: 1.0.6 minimatch: 3.1.2 @@ -12757,13 +12541,6 @@ snapshots: lodash: 4.17.21 rslog: 1.2.3 - '@modern-js/utils@2.64.0': - dependencies: - '@swc/helpers': 0.5.13 - caniuse-lite: 1.0.30001692 - lodash: 4.17.21 - rslog: 1.2.3 - '@module-federation/error-codes@0.8.4': {} '@module-federation/runtime-tools@0.5.1': @@ -14649,9 +14426,9 @@ snapshots: dependencies: possible-typed-array-names: 1.0.0 - axios@1.7.9(debug@4.3.7): + axios@1.7.9: dependencies: - follow-redirects: 1.15.9(debug@4.3.7) + follow-redirects: 1.15.9 form-data: 4.0.1 proxy-from-env: 1.1.0 transitivePeerDependencies: @@ -15095,8 +14872,6 @@ snapshots: slice-ansi: 3.0.0 string-width: 4.2.3 - cli-width@3.0.0: {} - cliui@8.0.1: dependencies: string-width: 4.2.3 @@ -16358,9 +16133,7 @@ snapshots: dependencies: tslib: 2.8.1 - follow-redirects@1.15.9(debug@4.3.7): - optionalDependencies: - debug: 4.3.7 + follow-redirects@1.15.9: {} for-each@0.3.3: dependencies: @@ -16397,12 +16170,6 @@ snapshots: fs-constants@1.0.0: {} - fs-extra@10.0.1: - dependencies: - graceful-fs: 4.2.11 - jsonfile: 6.1.0 - universalify: 2.0.1 - fs-extra@11.2.0: dependencies: graceful-fs: 4.2.11 @@ -16525,15 +16292,6 @@ snapshots: once: 1.4.0 path-is-absolute: 1.0.1 - glob@7.2.0: - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -16903,7 +16661,7 @@ snapshots: http-proxy@1.18.1: dependencies: eventemitter3: 4.0.7 - follow-redirects: 1.15.9(debug@4.3.7) + follow-redirects: 1.15.9 requires-port: 1.0.0 transitivePeerDependencies: - debug @@ -16992,24 +16750,6 @@ snapshots: inline-style-parser@0.2.4: {} - inquirer@8.2.6: - dependencies: - ansi-escapes: 4.3.2 - chalk: 4.1.2 - cli-cursor: 3.1.0 - cli-width: 3.0.0 - external-editor: 3.1.0 - figures: 3.2.0 - lodash: 4.17.21 - mute-stream: 0.0.8 - ora: 5.4.1 - run-async: 2.4.1 - rxjs: 7.8.1 - string-width: 4.2.3 - strip-ansi: 6.0.1 - through: 2.3.8 - wrap-ansi: 6.2.0 - interpret@3.1.1: {} invariant@2.2.4: @@ -17384,22 +17124,10 @@ snapshots: lodash.debounce@4.0.8: {} - lodash.flattendeep@4.4.0: {} - lodash.flow@3.5.0: {} - lodash.get@4.4.2: {} - - lodash.isfunction@3.0.9: {} - - lodash.isobject@3.0.2: {} - - lodash.isstring@4.0.1: {} - lodash.memoize@4.1.2: {} - lodash.merge@4.6.2: {} - lodash.startcase@4.4.0: {} lodash.truncate@4.4.2: {} @@ -18266,8 +17994,6 @@ snapshots: dns-packet: 5.6.1 thunky: 1.1.0 - mute-stream@0.0.8: {} - mz@2.7.0: dependencies: any-promise: 1.3.0 @@ -18363,7 +18089,7 @@ snapshots: '@yarnpkg/lockfile': 1.1.0 '@yarnpkg/parsers': 3.0.0-rc.46 '@zkochan/js-yaml': 0.0.6 - axios: 1.7.9(debug@4.3.7) + axios: 1.7.9 chalk: 4.1.2 cli-cursor: 3.1.0 cli-spinners: 2.6.1 @@ -20000,8 +19726,6 @@ snapshots: run-applescript@7.0.0: {} - run-async@2.4.1: {} - run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 @@ -20271,10 +19995,6 @@ snapshots: dependencies: lru-cache: 6.0.0 - semver@7.6.0: - dependencies: - lru-cache: 6.0.0 - semver@7.6.3: {} send@0.19.0: @@ -21093,10 +20813,6 @@ snapshots: semver-diff: 3.1.1 xdg-basedir: 4.0.0 - upper-case@2.0.2: - dependencies: - tslib: 2.8.1 - uri-js@4.4.1: dependencies: punycode: 2.3.1 diff --git a/scripts/update-packages/package.json b/scripts/update-packages/package.json deleted file mode 100644 index 11b2c2df..00000000 --- a/scripts/update-packages/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "@scripts/update-packages", - "version": "0.0.7", - "private": true, - "scripts": { - "build": "tsc", - "dev": "tsc --watch", - "start:modern": "tsx ./src/modern.ts", - "start:rspack": "tsx ./src/rspack.ts", - "start:rspress": "tsx ./src/rspress.ts" - }, - "dependencies": { - "@manypkg/get-packages": "^2.2.2", - "@modern-js/generator-utils": "^3.7.14", - "fs-extra": "^11.1.1" - }, - "devDependencies": { - "@types/fs-extra": "^11.0.4", - "@types/node": "^16", - "tsx": "4.6.1" - } -} diff --git a/scripts/update-packages/src/modern.ts b/scripts/update-packages/src/modern.ts deleted file mode 100644 index 264fc92a..00000000 --- a/scripts/update-packages/src/modern.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * In this script, we will find all the Modern.js dependencies and update the version. - */ -import path from 'path'; -import fs from 'fs-extra'; -import { getPackages } from '@manypkg/get-packages'; -import { getPackageVersion } from '@modern-js/generator-utils'; - -async function run() { - const modernVersion = process.env.MODERN_VERSION || 'latest'; - const root = path.join(__dirname, '../../..'); - const pkgPath = path.join(root, 'package.json'); - const pkgObj = fs.readJSONSync(pkgPath, 'utf-8'); - - pkgObj.devDependencies = await updateModernVersion( - pkgObj.devDependencies, - modernVersion, - ); - - fs.writeJSONSync(pkgPath, pkgObj, { spaces: 2 }); - - const packages = await getPackages(root); - - for (const pkg of packages.packages) { - const { packageJson, dir } = pkg; - const { dependencies, devDependencies, peerDependencies } = packageJson; - packageJson.dependencies = await updateModernVersion( - dependencies, - modernVersion, - ); - packageJson.devDependencies = await updateModernVersion( - devDependencies, - modernVersion, - ); - packageJson.peerDependencies = await updateModernVersion( - peerDependencies, - modernVersion, - ); - fs.writeJSONSync(path.join(dir, 'package.json'), packageJson, { - spaces: 2, - }); - } -} - -const versionMap = new Map(); - -const updateModernVersion = async ( - dependencies?: Record, - modernVersion?: string, -) => { - if (!dependencies) { - return dependencies; - } - for (const dep of Object.keys(dependencies)) { - if (dep.startsWith('@modern-js') && dep !== '@modern-js/swc-plugins') { - if (versionMap.get(dep)) { - dependencies[dep] = `^${versionMap.get(dep)}`; - } else { - const version = await getPackageVersion(`${dep}@${modernVersion}`); - dependencies[dep] = `^${version}`; - versionMap.set(dep, version); - } - } - } - return dependencies; -}; - -run().catch((e) => { - console.error(e); - // eslint-disable-next-line no-process-exit - process.exit(1); -}); diff --git a/scripts/update-packages/src/rspack.ts b/scripts/update-packages/src/rspack.ts deleted file mode 100644 index eaf23b1e..00000000 --- a/scripts/update-packages/src/rspack.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * In this script, we will find all the Rspack dependencies and update the version. - */ -import path from 'path'; -import fs from 'fs-extra'; -import { getPackages } from '@manypkg/get-packages'; -import { getPackageVersion } from '@modern-js/generator-utils'; - -async function run() { - const rspackVersion = process.env.RSPACK_VERSION || 'latest'; - const root = path.join(__dirname, '../../..'); - const pkgPath = path.join(root, 'package.json'); - const pkgObj = fs.readJSONSync(pkgPath, 'utf-8'); - - pkgObj.devDependencies = await updateRspackVersion( - pkgObj.devDependencies, - rspackVersion, - ); - - fs.writeJSONSync(pkgPath, pkgObj, { spaces: 2 }); - - const packages = await getPackages(root); - - for (const pkg of packages.packages) { - const { packageJson, dir } = pkg; - const { dependencies, devDependencies, peerDependencies } = packageJson; - packageJson.dependencies = await updateRspackVersion( - dependencies, - rspackVersion, - ); - packageJson.devDependencies = await updateRspackVersion( - devDependencies, - rspackVersion, - ); - packageJson.peerDependencies = await updateRspackVersion( - peerDependencies, - rspackVersion, - ); - fs.writeJSONSync(path.join(dir, 'package.json'), packageJson, { - spaces: 2, - }); - } -} - -const versionMap = new Map(); - -const updateRspackVersion = async ( - dependencies?: Record, - rspackVersion?: string, -) => { - if (!dependencies) { - return dependencies; - } - for (const dep of Object.keys(dependencies)) { - if (dep.startsWith('@rspack/')) { - if (versionMap.get(dep)) { - dependencies[dep] = `${versionMap.get(dep)}`; - } else { - const version = await getPackageVersion(`${dep}@${rspackVersion}`); - dependencies[dep] = `${version}`; - versionMap.set(dep, version); - } - } - } - return dependencies; -}; - -run().catch((e) => { - console.error(e); - // eslint-disable-next-line no-process-exit - process.exit(1); -}); diff --git a/scripts/update-packages/src/rspress.ts b/scripts/update-packages/src/rspress.ts deleted file mode 100644 index 7d867e19..00000000 --- a/scripts/update-packages/src/rspress.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * In this script, we will find all the rspress dependencies and update the version. - */ -import path from 'path'; -import fs from 'fs-extra'; -import { getPackageVersion } from '@modern-js/generator-utils'; - -const versionMap = new Map(); - -const updateRspressVersion = async (dependencies?: Record) => { - if (!dependencies) { - return dependencies; - } - for (const dep of Object.keys(dependencies)) { - // Update rspress version - if (dep.startsWith('@rspress') || dep.startsWith('rspress')) { - if (versionMap.get(dep)) { - dependencies[dep] = `^${versionMap.get(dep)}`; - } else { - const version = await getPackageVersion(`${dep}@latest`); - dependencies[dep] = `^${version}`; - versionMap.set(dep, version); - } - } - } - return dependencies; -}; - -async function run() { - const cwd = process.cwd(); - const repoDir = path.join(cwd, '../../'); - const documentDir = path.join(repoDir, 'document'); - const pkgPath = path.join(documentDir, 'package.json'); - const pkgObj = fs.readJSONSync(pkgPath); - pkgObj.devDependencies = await updateRspressVersion(pkgObj.devDependencies); - fs.writeJSONSync(pkgPath, pkgObj, { spaces: 2 }); -} - -run().catch((e) => { - console.error(e); - // eslint-disable-next-line no-process-exit - process.exit(1); -}); diff --git a/scripts/update-packages/tsconfig.json b/scripts/update-packages/tsconfig.json deleted file mode 100644 index af2b99b5..00000000 --- a/scripts/update-packages/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@rsdoctor/tsconfig/base", - "compilerOptions": { - "outDir": "./dist", - "baseUrl": "./" - }, - "include": ["src"] -}