From 61878f5fb21a33190ef242551c639e216ba4748a Mon Sep 17 00:00:00 2001 From: Adam Skoufis Date: Sun, 18 Aug 2024 17:01:24 +1000 Subject: [PATCH] Update rollup and rollup plugins (#1463) --- .changeset/twenty-bananas-relate.md | 9 + package.json | 6 +- packages/rollup-plugin/package.json | 6 +- packages/rollup-plugin/src/index.ts | 2 +- .../__snapshots__/rollup-plugin.test.ts.snap | 56 ++- pnpm-lock.yaml | 347 +++++++++--------- scripts/build-dts.ts | 4 +- 7 files changed, 237 insertions(+), 193 deletions(-) create mode 100644 .changeset/twenty-bananas-relate.md diff --git a/.changeset/twenty-bananas-relate.md b/.changeset/twenty-bananas-relate.md new file mode 100644 index 00000000..73f9dee8 --- /dev/null +++ b/.changeset/twenty-bananas-relate.md @@ -0,0 +1,9 @@ +--- +'@vanilla-extract/css': patch +'@vanilla-extract/integration': patch +'@vanilla-extract/private': patch +'@vanilla-extract/recipes': patch +'@vanilla-extract/sprinkles': patch +--- + +Export types with `export { type T }` syntax diff --git a/package.json b/package.json index 68b18a05..8e7c72b7 100644 --- a/package.json +++ b/package.json @@ -49,9 +49,9 @@ "jest-environment-jsdom": "^29.7.0", "prettier": "^2.8.8", "resolve.exports": "^2.0.2", - "rollup": "^2.7.0", - "rollup-plugin-dts": "^4.2.2", - "rollup-plugin-node-externals": "^5.0.0", + "rollup": "^4.20.0", + "rollup-plugin-dts": "^6.1.1", + "rollup-plugin-node-externals": "^7.1.3", "tsx": "^4.17.0", "typescript": "^5.5.4", "vitest": "^1.5.0" diff --git a/packages/rollup-plugin/package.json b/packages/rollup-plugin/package.json index 2b96ec92..84224f28 100644 --- a/packages/rollup-plugin/package.json +++ b/packages/rollup-plugin/package.json @@ -20,11 +20,11 @@ }, "devDependencies": { "@fixtures/themed": "workspace:*", - "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-json": "^6.1.0", "@vanilla-extract/css": "workspace:^", "esbuild": "~0.23.1", - "rollup": "^2.7.0", - "rollup-plugin-esbuild": "^4.9.1" + "rollup": "^4.20.0", + "rollup-plugin-esbuild": "^6.1.1" }, "peerDependencies": { "rollup": "^2.0.0 || ^3.0.0 || ^4.0.0" diff --git a/packages/rollup-plugin/src/index.ts b/packages/rollup-plugin/src/index.ts index a35bc318..66badebc 100644 --- a/packages/rollup-plugin/src/index.ts +++ b/packages/rollup-plugin/src/index.ts @@ -101,7 +101,7 @@ export function vanillaExtractPlugin({ return { code: output, - map: chunkInfo.map ?? null, + map: null, }; }, }; diff --git a/packages/rollup-plugin/test/__snapshots__/rollup-plugin.test.ts.snap b/packages/rollup-plugin/test/__snapshots__/rollup-plugin.test.ts.snap index b26e9dab..46e3cb57 100644 --- a/packages/rollup-plugin/test/__snapshots__/rollup-plugin.test.ts.snap +++ b/packages/rollup-plugin/test/__snapshots__/rollup-plugin.test.ts.snap @@ -3,7 +3,7 @@ exports[`rollup-plugin should build with preserveModules 1`] = ` [ [ - "assets/src/shared.css.ts.vanilla-16598c42.css", + "assets/src/shared.css.ts.vanilla-G_Gyt4-e.css", ".shared_shadow__4dtfen0 { box-shadow: 0 0 5px red; } @@ -15,7 +15,7 @@ body, button { }", ], [ - "assets/src/styles.css.ts.vanilla-1b9864b6.css", + "assets/src/styles.css.ts.vanilla-C7NI1Ovc.css", "@font-face { src: local("Impact"); font-family: "styles_impact__jteyb10"; @@ -68,7 +68,7 @@ html .styles_opacity_1\\/4__jteyb17 { }", ], [ - "assets/src/themes.css.ts.vanilla-3ad7ca47.css", + "assets/src/themes.css.ts.vanilla-DMMXGwB8.css", ":root, .themes_theme__cvta170 { --colors-backgroundColor__cvta171: blue; --colors-text__cvta172: white; @@ -183,7 +183,7 @@ render(); ], [ "src/shared.css.js", - "import './../assets/src/shared.css.ts.vanilla-16598c42.css'; + "import './../assets/src/shared.css.ts.vanilla-G_Gyt4-e.css'; var shadow = "shared_shadow__4dtfen0"; @@ -192,9 +192,9 @@ export { shadow }; ], [ "src/styles.css.js", - "import './../assets/src/shared.css.ts.vanilla-16598c42.css'; -import './../assets/src/themes.css.ts.vanilla-3ad7ca47.css'; -import './../assets/src/styles.css.ts.vanilla-1b9864b6.css'; + "import './../assets/src/shared.css.ts.vanilla-G_Gyt4-e.css'; +import './../assets/src/themes.css.ts.vanilla-DMMXGwB8.css'; +import './../assets/src/styles.css.ts.vanilla-C7NI1Ovc.css'; var button = "styles_button__jteyb13 shared_shadow__4dtfen0 styles_iDunno__jteyb12"; var container = "styles_container__jteyb11"; @@ -205,7 +205,7 @@ export { button, container, opacity }; ], [ "src/themes.css.js", - "import './../assets/src/themes.css.ts.vanilla-3ad7ca47.css'; + "import './../assets/src/themes.css.ts.vanilla-DMMXGwB8.css'; var altTheme = "themes_altTheme__cvta176"; var responsiveTheme = "themes_responsiveTheme__cvta177"; @@ -507,44 +507,64 @@ export { altTheme, responsiveTheme, theme, vars }; exports[`rollup-plugin should build with sourcemaps 1`] = ` [ [ - "assets/src/shared.css.ts.vanilla-16598c42.css", + "assets/src/shared.css.ts.vanilla-G_Gyt4-e.css", "", ], [ - "assets/src/styles.css.ts.vanilla-1b9864b6.css", + "assets/src/styles.css.ts.vanilla-C7NI1Ovc.css", "", ], [ - "assets/src/themes.css.ts.vanilla-3ad7ca47.css", + "assets/src/themes.css.ts.vanilla-DMMXGwB8.css", "", ], [ "src/index.js", - ";;;;;;AAKA,MAAM,WAAW,GAAG,gBAAgB,CAAC,IAAI,EAAE;AAC3C,EAAE,MAAM,EAAE;AACV,IAAI,eAAe,EAAE,QAAQ;AAC7B,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,CAAC,EAAE,KAAK;AACZ,IAAI,CAAC,EAAE,KAAK;AACZ,IAAI,CAAC,EAAE,MAAM;AACb,GAAG;AACH,CAAC,CAAC,CAAC;AACH,SAAS,MAAM,GAAG;AAClB,EAAE,QAAQ,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC;AAC7B,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,SAAS,EAA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AAA,YAAA;AAAA,KACR;AAAA,IACA,KAAO,EAAA;AAAA,MACL,CAAG,EAAA,KAAA;AAAA,MACH,CAAG,EAAA,MAAA;AAAA,MACH,CAAG,EAAA,MAAA;AAAA,KACL;AAAA,GACD,CAAA,CAAA;AAED,EAAA,cAAA,CAAe,oBAAsB,EAAA;AAAA,IACnC,CAAC,IAAA,CAAK,MAAO,CAAA,eAAe,GAAG,YAAA;AAAA,GAChC,CAAA,CAAA;AACH,CAAA;AAEA,MAAO,EAAA", + ], + [ + "src/index.js.map", + "", ], [ "src/shared.css.js", ";;;;;;", ], + [ + "src/shared.css.js.map", + "", + ], [ "src/styles.css.js", ";;;;;;;;;;", ], + [ + "src/styles.css.js.map", + "", + ], [ "src/themes.css.js", ";;;;;;;;;", ], + [ + "src/themes.css.js.map", + "", + ], [ "test-nodes.json.js", ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;", ], + [ + "test-nodes.json.js.map", + "", + ], ] `; exports[`rollup-plugin should build without preserveModules 1`] = ` [ [ - "assets/src/shared.css.ts.vanilla-16598c42.css", + "assets/src/shared.css.ts.vanilla-G_Gyt4-e.css", ".shared_shadow__4dtfen0 { box-shadow: 0 0 5px red; } @@ -556,7 +576,7 @@ body, button { }", ], [ - "assets/src/styles.css.ts.vanilla-1b9864b6.css", + "assets/src/styles.css.ts.vanilla-C7NI1Ovc.css", "@font-face { src: local("Impact"); font-family: "styles_impact__jteyb10"; @@ -609,7 +629,7 @@ html .styles_opacity_1\\/4__jteyb17 { }", ], [ - "assets/src/themes.css.ts.vanilla-3ad7ca47.css", + "assets/src/themes.css.ts.vanilla-DMMXGwB8.css", ":root, .themes_theme__cvta170 { --colors-backgroundColor__cvta171: blue; --colors-text__cvta172: white; @@ -641,9 +661,9 @@ html .styles_opacity_1\\/4__jteyb17 { [ "index.js", "import { assignInlineVars, setElementVars } from '@vanilla-extract/dynamic'; -import './assets/src/themes.css.ts.vanilla-3ad7ca47.css'; -import './assets/src/shared.css.ts.vanilla-16598c42.css'; -import './assets/src/styles.css.ts.vanilla-1b9864b6.css'; +import './assets/src/themes.css.ts.vanilla-DMMXGwB8.css'; +import './assets/src/shared.css.ts.vanilla-G_Gyt4-e.css'; +import './assets/src/styles.css.ts.vanilla-C7NI1Ovc.css'; var altTheme = "themes_altTheme__cvta176"; var responsiveTheme = "themes_responsiveTheme__cvta177"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c056de74..962d8bd2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -69,14 +69,14 @@ importers: specifier: ^2.0.2 version: 2.0.2 rollup: - specifier: ^2.7.0 - version: 2.79.1 + specifier: ^4.20.0 + version: 4.20.0 rollup-plugin-dts: - specifier: ^4.2.2 - version: 4.2.2(rollup@2.79.1)(typescript@5.5.4) + specifier: ^6.1.1 + version: 6.1.1(rollup@4.20.0)(typescript@5.5.4) rollup-plugin-node-externals: - specifier: ^5.0.0 - version: 5.0.0(rollup@2.79.1) + specifier: ^7.1.3 + version: 7.1.3(rollup@4.20.0) tsx: specifier: ^4.17.0 version: 4.17.0 @@ -550,8 +550,8 @@ importers: specifier: workspace:* version: link:../../fixtures/themed '@rollup/plugin-json': - specifier: ^4.1.0 - version: 4.1.0(rollup@2.79.1) + specifier: ^6.1.0 + version: 6.1.0(rollup@4.20.0) '@vanilla-extract/css': specifier: workspace:^ version: link:../css @@ -559,11 +559,11 @@ importers: specifier: ~0.23.1 version: 0.23.1 rollup: - specifier: ^2.7.0 - version: 2.79.1 + specifier: ^4.20.0 + version: 4.20.0 rollup-plugin-esbuild: - specifier: ^4.9.1 - version: 4.9.1(esbuild@0.23.1)(rollup@2.79.1) + specifier: ^6.1.1 + version: 6.1.1(esbuild@0.23.1)(rollup@4.20.0) packages/sprinkles: devDependencies: @@ -877,7 +877,7 @@ importers: version: 5.1.4(@types/node@20.9.5)(terser@5.26.0) vite-plugin-inspect: specifier: ^0.8.1 - version: 0.8.3(rollup@4.9.1)(vite@5.1.4(@types/node@20.9.5)(terser@5.26.0)) + version: 0.8.3(rollup@4.20.0)(vite@5.1.4(@types/node@20.9.5)(terser@5.26.0)) webpack: specifier: ^5.90.0 version: 5.90.0(esbuild@0.23.1) @@ -1018,8 +1018,8 @@ packages: '@antfu/utils@0.7.7': resolution: {integrity: sha512-gFPqTG7otEJ8uP6wrhDv6mqwGWYZKNvAcCq6u9hOj0c+IKCEsY4L1oC9trPq2SaWIzAfHvqfBDxF591JkMf+kg==} - '@babel/code-frame@7.23.5': - resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==} + '@babel/code-frame@7.24.7': + resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} engines: {node: '>=6.9.0'} '@babel/compat-data@7.23.5': @@ -1132,8 +1132,8 @@ packages: resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.22.20': - resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} + '@babel/helper-validator-identifier@7.24.7': + resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} engines: {node: '>=6.9.0'} '@babel/helper-validator-option@7.23.5': @@ -1148,8 +1148,8 @@ packages: resolution: {integrity: sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==} engines: {node: '>=6.9.0'} - '@babel/highlight@7.23.4': - resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} + '@babel/highlight@7.24.7': + resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} engines: {node: '>=6.9.0'} '@babel/parser@7.16.8': @@ -2323,8 +2323,8 @@ packages: '@jridgewell/source-map@0.3.5': resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==} - '@jridgewell/sourcemap-codec@1.4.15': - resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} '@jridgewell/trace-mapping@0.3.22': resolution: {integrity: sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==} @@ -3433,6 +3433,15 @@ packages: peerDependencies: rollup: ^1.20.0 || ^2.0.0 + '@rollup/plugin-json@6.1.0': + resolution: {integrity: sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + '@rollup/plugin-node-resolve@11.2.1': resolution: {integrity: sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==} engines: {node: '>= 10.0.0'} @@ -3450,10 +3459,6 @@ packages: peerDependencies: rollup: ^1.20.0||^2.0.0 - '@rollup/pluginutils@4.2.1': - resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} - engines: {node: '>= 8.0.0'} - '@rollup/pluginutils@5.1.0': resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} @@ -3463,68 +3468,83 @@ packages: rollup: optional: true - '@rollup/rollup-android-arm-eabi@4.9.1': - resolution: {integrity: sha512-6vMdBZqtq1dVQ4CWdhFwhKZL6E4L1dV6jUjuBvsavvNJSppzi6dLBbuV+3+IyUREaj9ZFvQefnQm28v4OCXlig==} + '@rollup/rollup-android-arm-eabi@4.20.0': + resolution: {integrity: sha512-TSpWzflCc4VGAUJZlPpgAJE1+V60MePDQnBd7PPkpuEmOy8i87aL6tinFGKBFKuEDikYpig72QzdT3QPYIi+oA==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.9.1': - resolution: {integrity: sha512-Jto9Fl3YQ9OLsTDWtLFPtaIMSL2kwGyGoVCmPC8Gxvym9TCZm4Sie+cVeblPO66YZsYH8MhBKDMGZ2NDxuk/XQ==} + '@rollup/rollup-android-arm64@4.20.0': + resolution: {integrity: sha512-u00Ro/nok7oGzVuh/FMYfNoGqxU5CPWz1mxV85S2w9LxHR8OoMQBuSk+3BKVIDYgkpeOET5yXkx90OYFc+ytpQ==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.9.1': - resolution: {integrity: sha512-LtYcLNM+bhsaKAIGwVkh5IOWhaZhjTfNOkGzGqdHvhiCUVuJDalvDxEdSnhFzAn+g23wgsycmZk1vbnaibZwwA==} + '@rollup/rollup-darwin-arm64@4.20.0': + resolution: {integrity: sha512-uFVfvzvsdGtlSLuL0ZlvPJvl6ZmrH4CBwLGEFPe7hUmf7htGAN+aXo43R/V6LATyxlKVC/m6UsLb7jbG+LG39Q==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.9.1': - resolution: {integrity: sha512-KyP/byeXu9V+etKO6Lw3E4tW4QdcnzDG/ake031mg42lob5tN+5qfr+lkcT/SGZaH2PdW4Z1NX9GHEkZ8xV7og==} + '@rollup/rollup-darwin-x64@4.20.0': + resolution: {integrity: sha512-xbrMDdlev53vNXexEa6l0LffojxhqDTBeL+VUxuuIXys4x6xyvbKq5XqTXBCEUA8ty8iEJblHvFaWRJTk/icAQ==} cpu: [x64] os: [darwin] - '@rollup/rollup-linux-arm-gnueabihf@4.9.1': - resolution: {integrity: sha512-Yqz/Doumf3QTKplwGNrCHe/B2p9xqDghBZSlAY0/hU6ikuDVQuOUIpDP/YcmoT+447tsZTmirmjgG3znvSCR0Q==} + '@rollup/rollup-linux-arm-gnueabihf@4.20.0': + resolution: {integrity: sha512-jMYvxZwGmoHFBTbr12Xc6wOdc2xA5tF5F2q6t7Rcfab68TT0n+r7dgawD4qhPEvasDsVpQi+MgDzj2faOLsZjA==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.20.0': + resolution: {integrity: sha512-1asSTl4HKuIHIB1GcdFHNNZhxAYEdqML/MW4QmPS4G0ivbEcBr1JKlFLKsIRqjSwOBkdItn3/ZDlyvZ/N6KPlw==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.9.1': - resolution: {integrity: sha512-u3XkZVvxcvlAOlQJ3UsD1rFvLWqu4Ef/Ggl40WAVCuogf4S1nJPHh5RTgqYFpCOvuGJ7H5yGHabjFKEZGExk5Q==} + '@rollup/rollup-linux-arm64-gnu@4.20.0': + resolution: {integrity: sha512-COBb8Bkx56KldOYJfMf6wKeYJrtJ9vEgBRAOkfw6Ens0tnmzPqvlpjZiLgkhg6cA3DGzCmLmmd319pmHvKWWlQ==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.9.1': - resolution: {integrity: sha512-0XSYN/rfWShW+i+qjZ0phc6vZ7UWI8XWNz4E/l+6edFt+FxoEghrJHjX1EY/kcUGCnZzYYRCl31SNdfOi450Aw==} + '@rollup/rollup-linux-arm64-musl@4.20.0': + resolution: {integrity: sha512-+it+mBSyMslVQa8wSPvBx53fYuZK/oLTu5RJoXogjk6x7Q7sz1GNRsXWjn6SwyJm8E/oMjNVwPhmNdIjwP135Q==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.9.1': - resolution: {integrity: sha512-LmYIO65oZVfFt9t6cpYkbC4d5lKHLYv5B4CSHRpnANq0VZUQXGcCPXHzbCXCz4RQnx7jvlYB1ISVNCE/omz5cw==} + '@rollup/rollup-linux-powerpc64le-gnu@4.20.0': + resolution: {integrity: sha512-yAMvqhPfGKsAxHN8I4+jE0CpLWD8cv4z7CK7BMmhjDuz606Q2tFKkWRY8bHR9JQXYcoLfopo5TTqzxgPUjUMfw==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.20.0': + resolution: {integrity: sha512-qmuxFpfmi/2SUkAw95TtNq/w/I7Gpjurx609OOOV7U4vhvUhBcftcmXwl3rqAek+ADBwSjIC4IVNLiszoj3dPA==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.9.1': - resolution: {integrity: sha512-kr8rEPQ6ns/Lmr/hiw8sEVj9aa07gh1/tQF2Y5HrNCCEPiCBGnBUt9tVusrcBBiJfIt1yNaXN6r1CCmpbFEDpg==} + '@rollup/rollup-linux-s390x-gnu@4.20.0': + resolution: {integrity: sha512-I0BtGXddHSHjV1mqTNkgUZLnS3WtsqebAXv11D5BZE/gfw5KoyXSAXVqyJximQXNvNzUo4GKlCK/dIwXlz+jlg==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.20.0': + resolution: {integrity: sha512-y+eoL2I3iphUg9tN9GB6ku1FA8kOfmF4oUEWhztDJ4KXJy1agk/9+pejOuZkNFhRwHAOxMsBPLbXPd6mJiCwew==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.9.1': - resolution: {integrity: sha512-t4QSR7gN+OEZLG0MiCgPqMWZGwmeHhsM4AkegJ0Kiy6TnJ9vZ8dEIwHw1LcZKhbHxTY32hp9eVCMdR3/I8MGRw==} + '@rollup/rollup-linux-x64-musl@4.20.0': + resolution: {integrity: sha512-hM3nhW40kBNYUkZb/r9k2FKK+/MnKglX7UYd4ZUy5DJs8/sMsIbqWK2piZtVGE3kcXVNj3B2IrUYROJMMCikNg==} cpu: [x64] os: [linux] - '@rollup/rollup-win32-arm64-msvc@4.9.1': - resolution: {integrity: sha512-7XI4ZCBN34cb+BH557FJPmh0kmNz2c25SCQeT9OiFWEgf8+dL6ZwJ8f9RnUIit+j01u07Yvrsuu1rZGxJCc51g==} + '@rollup/rollup-win32-arm64-msvc@4.20.0': + resolution: {integrity: sha512-psegMvP+Ik/Bg7QRJbv8w8PAytPA7Uo8fpFjXyCRHWm6Nt42L+JtoqH8eDQ5hRP7/XW2UiIriy1Z46jf0Oa1kA==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.9.1': - resolution: {integrity: sha512-yE5c2j1lSWOH5jp+Q0qNL3Mdhr8WuqCNVjc6BxbVfS5cAS6zRmdiw7ktb8GNpDCEUJphILY6KACoFoRtKoqNQg==} + '@rollup/rollup-win32-ia32-msvc@4.20.0': + resolution: {integrity: sha512-GabekH3w4lgAJpVxkk7hUzUf2hICSQO0a/BLFA11/RMxQT92MabKAqyubzDZmMOC/hcJNlc+rrypzNzYl4Dx7A==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.9.1': - resolution: {integrity: sha512-PyJsSsafjmIhVgaI1Zdj7m8BB8mMckFah/xbpplObyHfiXzKcI5UOUXRyOdHW7nz4DpMCuzLnF7v5IWHenCwYA==} + '@rollup/rollup-win32-x64-msvc@4.20.0': + resolution: {integrity: sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg==} cpu: [x64] os: [win32] @@ -5671,9 +5691,6 @@ packages: resolution: {integrity: sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==} engines: {node: '>= 0.4'} - es-module-lexer@0.9.3: - resolution: {integrity: sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==} - es-module-lexer@1.4.1: resolution: {integrity: sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w==} @@ -7389,10 +7406,6 @@ packages: jju@1.4.0: resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} - joycon@3.1.1: - resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} - engines: {node: '>=10'} - js-string-escape@1.0.1: resolution: {integrity: sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==} engines: {node: '>= 0.8'} @@ -7838,13 +7851,8 @@ packages: magic-string@0.25.7: resolution: {integrity: sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==} - magic-string@0.26.4: - resolution: {integrity: sha512-e5uXtVJ22aEpK9u1+eQf0fSxHeqwyV19K+uGnlROCxUhzwRip9tBsaMViK/0vC3viyPd5Gtucp3UmEp/Q2cPTQ==} - engines: {node: '>=12'} - - magic-string@0.30.5: - resolution: {integrity: sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==} - engines: {node: '>=12'} + magic-string@0.30.11: + resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} make-dir@1.3.0: resolution: {integrity: sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==} @@ -9826,25 +9834,25 @@ packages: deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true - rollup-plugin-dts@4.2.2: - resolution: {integrity: sha512-A3g6Rogyko/PXeKoUlkjxkP++8UDVpgA7C+Tdl77Xj4fgEaIjPSnxRmR53EzvoYy97VMVwLAOcWJudaVAuxneQ==} - engines: {node: '>=v12.22.11'} + rollup-plugin-dts@6.1.1: + resolution: {integrity: sha512-aSHRcJ6KG2IHIioYlvAOcEq6U99sVtqDDKVhnwt70rW6tsz3tv5OSjEiWcgzfsHdLyGXZ/3b/7b/+Za3Y6r1XA==} + engines: {node: '>=16'} peerDependencies: - rollup: ^2.55 - typescript: ^4.1 + rollup: ^3.29.4 || ^4 + typescript: ^4.5 || ^5.0 - rollup-plugin-esbuild@4.9.1: - resolution: {integrity: sha512-qn/x7Wz9p3Xnva99qcb+nopH0d2VJwVnsxJTGEg+Sh2Z3tqQl33MhOwzekVo1YTKgv+yAmosjcBRJygMfGrtLw==} - engines: {node: '>=12'} + rollup-plugin-esbuild@6.1.1: + resolution: {integrity: sha512-CehMY9FAqJD5OUaE/Mi1r5z0kNeYxItmRO2zG4Qnv2qWKF09J2lTy5GUzjJR354ZPrLkCj4fiBN41lo8PzBUhw==} + engines: {node: '>=14.18.0'} peerDependencies: - esbuild: '>=0.10.1' - rollup: ^1.20.0 || ^2.0.0 + esbuild: '>=0.18.0' + rollup: ^1.20.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 - rollup-plugin-node-externals@5.0.0: - resolution: {integrity: sha512-7QlqsY5k0gifL50L3PHVTjYA4ma8lM6+f+ayMeEJ475rNCUDzpY0qVrb7AsndGEiVRCNN4UwhBmRnrlP/NjuFw==} - engines: {node: '>=14.0.0'} + rollup-plugin-node-externals@7.1.3: + resolution: {integrity: sha512-RM+7tJAejAoRsCf93TptTSdqUhRA8S78DleihMiu54Kac+uLkd9VIegLPhGnaW3ehZTXh56+R301mFH6j2A7vw==} + engines: {node: '>= 21 || ^20.6.0 || ^18.19.0'} peerDependencies: - rollup: ^2.60.0 + rollup: ^3.0.0 || ^4.0.0 rollup-pluginutils@2.8.2: resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==} @@ -9854,8 +9862,8 @@ packages: engines: {node: '>=10.0.0'} hasBin: true - rollup@4.9.1: - resolution: {integrity: sha512-pgPO9DWzLoW/vIhlSoDByCzcpX92bKEorbgXuZrqxByte3JFk2xSW2JEeAcyLc9Ru9pqcNNW+Ob7ntsk2oT/Xw==} + rollup@4.20.0: + resolution: {integrity: sha512-6rbWBChcnSGzIlXeIdNIZTopKYad8ZG8ajhl78lGRLsI2rX8IkaotQhVas2Ma+GPxJav19wrSzvRvuiv0YKzWw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -11634,16 +11642,16 @@ snapshots: '@antfu/utils@0.7.7': {} - '@babel/code-frame@7.23.5': + '@babel/code-frame@7.24.7': dependencies: - '@babel/highlight': 7.23.4 - chalk: 2.4.2 + '@babel/highlight': 7.24.7 + picocolors: 1.0.0 '@babel/compat-data@7.23.5': {} '@babel/core@7.12.9': dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.7 '@babel/generator': 7.23.6 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.12.9) '@babel/helpers': 7.23.9 @@ -11665,7 +11673,7 @@ snapshots: '@babel/core@7.23.9': dependencies: '@ampproject/remapping': 2.2.0 - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.7 '@babel/generator': 7.23.6 '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.9) @@ -11762,7 +11770,7 @@ snapshots: '@babel/helper-module-imports': 7.22.15 '@babel/helper-simple-access': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.7 '@babel/helper-module-transforms@7.23.3(@babel/core@7.23.9)': dependencies: @@ -11771,7 +11779,7 @@ snapshots: '@babel/helper-module-imports': 7.22.15 '@babel/helper-simple-access': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.7 '@babel/helper-optimise-call-expression@7.22.5': dependencies: @@ -11809,7 +11817,7 @@ snapshots: '@babel/helper-string-parser@7.23.4': {} - '@babel/helper-validator-identifier@7.22.20': {} + '@babel/helper-validator-identifier@7.24.7': {} '@babel/helper-validator-option@7.23.5': {} @@ -11827,11 +11835,12 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/highlight@7.23.4': + '@babel/highlight@7.24.7': dependencies: - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.7 chalk: 2.4.2 js-tokens: 4.0.0 + picocolors: 1.0.0 '@babel/parser@7.16.8': dependencies: @@ -12140,7 +12149,7 @@ snapshots: '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.9) '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.7 '@babel/plugin-transform-modules-umd@7.23.3(@babel/core@7.23.9)': dependencies: @@ -12441,13 +12450,13 @@ snapshots: '@babel/template@7.23.9': dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.7 '@babel/parser': 7.23.9 '@babel/types': 7.23.9 '@babel/traverse@7.23.9': dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.7 '@babel/generator': 7.23.6 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-function-name': 7.23.0 @@ -12463,7 +12472,7 @@ snapshots: '@babel/types@7.23.9': dependencies: '@babel/helper-string-parser': 7.23.4 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 '@bcoe/v8-coverage@0.2.3': {} @@ -13109,12 +13118,12 @@ snapshots: '@jridgewell/gen-mapping@0.1.1': dependencies: '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/gen-mapping@0.3.2': dependencies: '@jridgewell/set-array': 1.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping': 0.3.22 '@jridgewell/resolve-uri@3.1.0': {} @@ -13126,17 +13135,17 @@ snapshots: '@jridgewell/gen-mapping': 0.3.2 '@jridgewell/trace-mapping': 0.3.22 - '@jridgewell/sourcemap-codec@1.4.15': {} + '@jridgewell/sourcemap-codec@1.5.0': {} '@jridgewell/trace-mapping@0.3.22': dependencies: '@jridgewell/resolve-uri': 3.1.0 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping@0.3.9': dependencies: '@jridgewell/resolve-uri': 3.1.0 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@jspm/core@2.0.1': {} @@ -14535,7 +14544,7 @@ snapshots: '@preconstruct/cli@2.8.2': dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.7 '@babel/core': 7.23.9 '@babel/helper-module-imports': 7.22.15 '@babel/runtime': 7.23.9 @@ -14557,7 +14566,7 @@ snapshots: fs-extra: 9.1.0 is-reference: 1.2.1 jest-worker: 26.6.2 - magic-string: 0.30.5 + magic-string: 0.30.11 meow: 7.1.1 ms: 2.1.3 normalize-path: 3.0.0 @@ -14766,6 +14775,12 @@ snapshots: '@rollup/pluginutils': 3.1.0(rollup@2.79.1) rollup: 2.79.1 + '@rollup/plugin-json@6.1.0(rollup@4.20.0)': + dependencies: + '@rollup/pluginutils': 5.1.0(rollup@4.20.0) + optionalDependencies: + rollup: 4.20.0 + '@rollup/plugin-node-resolve@11.2.1(rollup@2.79.1)': dependencies: '@rollup/pluginutils': 3.1.0(rollup@2.79.1) @@ -14789,56 +14804,60 @@ snapshots: picomatch: 2.3.1 rollup: 2.79.1 - '@rollup/pluginutils@4.2.1': - dependencies: - estree-walker: 2.0.2 - picomatch: 2.3.1 - - '@rollup/pluginutils@5.1.0(rollup@4.9.1)': + '@rollup/pluginutils@5.1.0(rollup@4.20.0)': dependencies: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 optionalDependencies: - rollup: 4.9.1 + rollup: 4.20.0 + + '@rollup/rollup-android-arm-eabi@4.20.0': + optional: true + + '@rollup/rollup-android-arm64@4.20.0': + optional: true - '@rollup/rollup-android-arm-eabi@4.9.1': + '@rollup/rollup-darwin-arm64@4.20.0': optional: true - '@rollup/rollup-android-arm64@4.9.1': + '@rollup/rollup-darwin-x64@4.20.0': optional: true - '@rollup/rollup-darwin-arm64@4.9.1': + '@rollup/rollup-linux-arm-gnueabihf@4.20.0': optional: true - '@rollup/rollup-darwin-x64@4.9.1': + '@rollup/rollup-linux-arm-musleabihf@4.20.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.9.1': + '@rollup/rollup-linux-arm64-gnu@4.20.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.9.1': + '@rollup/rollup-linux-arm64-musl@4.20.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.9.1': + '@rollup/rollup-linux-powerpc64le-gnu@4.20.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.9.1': + '@rollup/rollup-linux-riscv64-gnu@4.20.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.9.1': + '@rollup/rollup-linux-s390x-gnu@4.20.0': optional: true - '@rollup/rollup-linux-x64-musl@4.9.1': + '@rollup/rollup-linux-x64-gnu@4.20.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.9.1': + '@rollup/rollup-linux-x64-musl@4.20.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.9.1': + '@rollup/rollup-win32-arm64-msvc@4.20.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.9.1': + '@rollup/rollup-win32-ia32-msvc@4.20.0': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.20.0': optional: true '@samverschueren/stream-to-observable@0.3.1(rxjs@6.6.7)': @@ -14915,7 +14934,7 @@ snapshots: '@testing-library/dom@10.0.0': dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.7 '@babel/runtime': 7.23.9 '@types/aria-query': 5.0.4 aria-query: 5.3.0 @@ -15408,7 +15427,7 @@ snapshots: '@vitest/snapshot@1.5.0': dependencies: - magic-string: 0.30.5 + magic-string: 0.30.11 pathe: 1.1.1 pretty-format: 29.7.0 @@ -17347,8 +17366,6 @@ snapshots: unbox-primitive: 1.0.2 which-typed-array: 1.1.13 - es-module-lexer@0.9.3: {} - es-module-lexer@1.4.1: {} es-set-tostringtag@2.0.2: @@ -19298,7 +19315,7 @@ snapshots: jest-message-util@29.7.0: dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.7 '@jest/types': 29.6.3 '@types/stack-utils': 2.0.1 chalk: 4.1.2 @@ -19497,8 +19514,6 @@ snapshots: jju@1.4.0: {} - joycon@3.1.1: {} - js-string-escape@1.0.1: {} js-tokens@4.0.0: {} @@ -19965,13 +19980,9 @@ snapshots: dependencies: sourcemap-codec: 1.4.8 - magic-string@0.26.4: + magic-string@0.30.11: dependencies: - sourcemap-codec: 1.4.8 - - magic-string@0.30.5: - dependencies: - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 make-dir@1.3.0: dependencies: @@ -21406,7 +21417,7 @@ snapshots: parse-json@5.2.0: dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.7 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -22436,29 +22447,28 @@ snapshots: dependencies: glob: 7.2.0 - rollup-plugin-dts@4.2.2(rollup@2.79.1)(typescript@5.5.4): + rollup-plugin-dts@6.1.1(rollup@4.20.0)(typescript@5.5.4): dependencies: - magic-string: 0.26.4 - rollup: 2.79.1 + magic-string: 0.30.11 + rollup: 4.20.0 typescript: 5.5.4 optionalDependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.7 - rollup-plugin-esbuild@4.9.1(esbuild@0.23.1)(rollup@2.79.1): + rollup-plugin-esbuild@6.1.1(esbuild@0.23.1)(rollup@4.20.0): dependencies: - '@rollup/pluginutils': 4.2.1 + '@rollup/pluginutils': 5.1.0(rollup@4.20.0) debug: 4.3.4(supports-color@9.2.3) - es-module-lexer: 0.9.3 + es-module-lexer: 1.4.1 esbuild: 0.23.1 - joycon: 3.1.1 - jsonc-parser: 3.2.0 - rollup: 2.79.1 + get-tsconfig: 4.7.6 + rollup: 4.20.0 transitivePeerDependencies: - supports-color - rollup-plugin-node-externals@5.0.0(rollup@2.79.1): + rollup-plugin-node-externals@7.1.3(rollup@4.20.0): dependencies: - rollup: 2.79.1 + rollup: 4.20.0 rollup-pluginutils@2.8.2: dependencies: @@ -22468,21 +22478,26 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - rollup@4.9.1: + rollup@4.20.0: + dependencies: + '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.9.1 - '@rollup/rollup-android-arm64': 4.9.1 - '@rollup/rollup-darwin-arm64': 4.9.1 - '@rollup/rollup-darwin-x64': 4.9.1 - '@rollup/rollup-linux-arm-gnueabihf': 4.9.1 - '@rollup/rollup-linux-arm64-gnu': 4.9.1 - '@rollup/rollup-linux-arm64-musl': 4.9.1 - '@rollup/rollup-linux-riscv64-gnu': 4.9.1 - '@rollup/rollup-linux-x64-gnu': 4.9.1 - '@rollup/rollup-linux-x64-musl': 4.9.1 - '@rollup/rollup-win32-arm64-msvc': 4.9.1 - '@rollup/rollup-win32-ia32-msvc': 4.9.1 - '@rollup/rollup-win32-x64-msvc': 4.9.1 + '@rollup/rollup-android-arm-eabi': 4.20.0 + '@rollup/rollup-android-arm64': 4.20.0 + '@rollup/rollup-darwin-arm64': 4.20.0 + '@rollup/rollup-darwin-x64': 4.20.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.20.0 + '@rollup/rollup-linux-arm-musleabihf': 4.20.0 + '@rollup/rollup-linux-arm64-gnu': 4.20.0 + '@rollup/rollup-linux-arm64-musl': 4.20.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.20.0 + '@rollup/rollup-linux-riscv64-gnu': 4.20.0 + '@rollup/rollup-linux-s390x-gnu': 4.20.0 + '@rollup/rollup-linux-x64-gnu': 4.20.0 + '@rollup/rollup-linux-x64-musl': 4.20.0 + '@rollup/rollup-win32-arm64-msvc': 4.20.0 + '@rollup/rollup-win32-ia32-msvc': 4.20.0 + '@rollup/rollup-win32-x64-msvc': 4.20.0 fsevents: 2.3.3 run-applescript@7.0.0: {} @@ -23950,10 +23965,10 @@ snapshots: - supports-color - terser - vite-plugin-inspect@0.8.3(rollup@4.9.1)(vite@5.1.4(@types/node@20.9.5)(terser@5.26.0)): + vite-plugin-inspect@0.8.3(rollup@4.20.0)(vite@5.1.4(@types/node@20.9.5)(terser@5.26.0)): dependencies: '@antfu/utils': 0.7.7 - '@rollup/pluginutils': 5.1.0(rollup@4.9.1) + '@rollup/pluginutils': 5.1.0(rollup@4.20.0) debug: 4.3.4(supports-color@9.2.3) error-stack-parser-es: 0.1.1 fs-extra: 11.2.0 @@ -23981,7 +23996,7 @@ snapshots: dependencies: esbuild: 0.19.12 postcss: 8.4.35 - rollup: 4.9.1 + rollup: 4.20.0 optionalDependencies: '@types/node': 20.9.5 fsevents: 2.3.3 @@ -23999,7 +24014,7 @@ snapshots: debug: 4.3.4(supports-color@9.2.3) execa: 8.0.1 local-pkg: 0.5.0 - magic-string: 0.30.5 + magic-string: 0.30.11 pathe: 1.1.1 picocolors: 1.0.0 std-env: 3.7.0 diff --git a/scripts/build-dts.ts b/scripts/build-dts.ts index 509bbb1c..7e8aaf92 100644 --- a/scripts/build-dts.ts +++ b/scripts/build-dts.ts @@ -6,7 +6,7 @@ import glob from 'fast-glob'; import { legacy, resolve } from 'resolve.exports'; import { rollup } from 'rollup'; import dts from 'rollup-plugin-dts'; -import { externals } from 'rollup-plugin-node-externals'; +import { nodeExternals } from 'rollup-plugin-node-externals'; function resolveEntry( pkg: PackageJson, @@ -45,7 +45,7 @@ async function buildEntry(packageDir: string, entryPath: string) { const bundle = await rollup({ input: dtsEntryPath, plugins: [ - externals({ + nodeExternals({ packagePath: path.resolve(packageDir, 'package.json'), deps: true, devDeps: false,