From 5c4399edba713a0eb638499078b0c7b8519a922f Mon Sep 17 00:00:00 2001 From: Tim Bernhard Date: Sun, 29 Oct 2023 14:14:39 +0100 Subject: [PATCH] Get build working again on newer node versions --- package.json | 6 ++++++ rollup.config.js | 16 +++++++++++----- yarn.lock | 37 ++++++++++++++++++++++++++++--------- 3 files changed, 45 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 0b6dd28..eaedec9 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,12 @@ "dist" ], "dependencies": { + "@types/node": "^20.8.9", "generator-sort": "^1.0.0" + }, + "exports": { + ".": { + "svelte": "./src/VirtualTable.svelte" + } } } diff --git a/rollup.config.js b/rollup.config.js index 6c2fc36..184c7fb 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,7 +1,7 @@ -import svelte from 'rollup-plugin-svelte'; -import resolve from '@rollup/plugin-node-resolve'; -import pkg from './package.json'; import commonjs from '@rollup/plugin-commonjs'; +import resolve from '@rollup/plugin-node-resolve'; +import svelte from 'rollup-plugin-svelte'; +import pkg from './package.json' assert { type: "json" }; const name = pkg.name .replace(/^(@\S+\/)?(svelte-)?(\S+)/, '$3') @@ -15,8 +15,14 @@ export default { { file: pkg.main, 'format': 'umd', name } ], plugins: [ - svelte(), + svelte({ + emitCss: false //true + }), commonjs(), - resolve() + resolve(), + // import css from 'rollup-plugin-css-only'; + // css({ + // output: 'bundle.css' + // }) ] }; diff --git a/yarn.lock b/yarn.lock index 2e4a32b..af25894 100644 --- a/yarn.lock +++ b/yarn.lock @@ -66,15 +66,7 @@ is-module "^1.0.0" resolve "^1.22.1" -"@rollup/pluginutils@^4.1.0": - version "4.2.1" - resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d" - integrity sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ== - dependencies: - estree-walker "^2.0.1" - picomatch "^2.2.2" - -"@rollup/pluginutils@^5.0.1": +"@rollup/pluginutils@5", "@rollup/pluginutils@^5.0.1": version "5.0.5" resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.0.5.tgz#bbb4c175e19ebfeeb8c132c2eea0ecb89941a66c" integrity sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q== @@ -83,6 +75,14 @@ estree-walker "^2.0.2" picomatch "^2.3.1" +"@rollup/pluginutils@^4.1.0": + version "4.2.1" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d" + integrity sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ== + dependencies: + estree-walker "^2.0.1" + picomatch "^2.2.2" + "@rollup/rollup-android-arm-eabi@4.1.5": version "4.1.5" resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.1.5.tgz#aa13d291631fe72552ca2adba50f8d58ef2cde6f" @@ -153,6 +153,13 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.3.tgz#2be19e759a3dd18c79f9f436bd7363556c1a73dd" integrity sha512-CS2rOaoQ/eAgAfcTfq6amKG7bsN+EMcgGY4FAFQdvSj2y1ixvOZTUA9mOtCai7E1SYu283XNw7urKK30nP3wkQ== +"@types/node@^20.8.9": + version "20.8.9" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.8.9.tgz#646390b4fab269abce59c308fc286dcd818a2b08" + integrity sha512-UzykFsT3FhHb1h7yD4CA4YhBHq545JC0YnEz41xkipN88eKQtL6rSgocL5tbAP6Ola9Izm/Aw4Ora8He4x0BHg== + dependencies: + undici-types "~5.26.4" + "@types/resolve@1.20.2": version "1.20.2" resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975" @@ -403,6 +410,13 @@ resolve@^1.22.1: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" +rollup-plugin-css-only@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-css-only/-/rollup-plugin-css-only-4.3.0.tgz#d3d9374457a065aff623d7c7696f1a072c96ae7b" + integrity sha512-BsiCqJJQzZh2lQiHY5irejRoJ3I1EUFHEi5PjVqsr+EmOh54YrWVwd3YZEXnQJ2+fzlhif0YM/Kf0GuH90GAdQ== + dependencies: + "@rollup/pluginutils" "5" + rollup-plugin-svelte@^7.1.6: version "7.1.6" resolved "https://registry.yarnpkg.com/rollup-plugin-svelte/-/rollup-plugin-svelte-7.1.6.tgz#44a4ea6c6e8ed976824d9fd40c78d048515e5838" @@ -459,6 +473,11 @@ svelte@^4.2.2: magic-string "^0.30.4" periscopic "^3.1.0" +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"