From 9d1ff29afeae87b6bf1c6a668b690f33412bc387 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Oct 2022 18:23:54 +0000 Subject: [PATCH 1/3] Bump rollup from 2.79.1 to 3.1.0 Bumps [rollup](https://github.com/rollup/rollup) from 2.79.1 to 3.1.0. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v2.79.1...v3.1.0) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 30b1481..fe3f29d 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "proxyquire": "^2.1.3", "react": "^18.0.0", "react-dom": "^18.0.0", - "rollup": "^2.35.0", + "rollup": "^3.1.0", "tsd": "^0.24.1" }, "sideEffects": false From 2db1ed33bbbc12326c09e86126196661ae69000a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Mon, 17 Oct 2022 12:03:27 +0200 Subject: [PATCH 2/3] update rollup config --- rollup.config.js | 21 --------------------- rollup.config.mjs | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 21 deletions(-) delete mode 100644 rollup.config.js create mode 100644 rollup.config.mjs diff --git a/rollup.config.js b/rollup.config.js deleted file mode 100644 index c5b22d9..0000000 --- a/rollup.config.js +++ /dev/null @@ -1,21 +0,0 @@ -import babel from '@rollup/plugin-babel'; - -const meta = require('./package.json'); - -process.env.BABEL_ENV = 'rollup'; - -export default { - input: './src/index.js', - output: [ - { format: 'cjs', file: meta.main, exports: 'named' }, - { format: 'es', file: meta.module }, - ], - - external: Object.keys(meta.dependencies) - .concat(Object.keys(meta.peerDependencies)), - plugins: [ - babel({ - babelHelpers: 'bundled', - }), - ], -}; diff --git a/rollup.config.mjs b/rollup.config.mjs new file mode 100644 index 0000000..07ff5ea --- /dev/null +++ b/rollup.config.mjs @@ -0,0 +1,22 @@ +import fs from 'fs'; +import babel from '@rollup/plugin-babel'; + +const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf8')); + +process.env.BABEL_ENV = 'rollup'; + +export default { + input: './src/index.js', + output: [ + { format: 'cjs', file: pkg.main, exports: 'named' }, + { format: 'es', file: pkg.module }, + ], + + external: Object.keys(pkg.dependencies) + .concat(Object.keys(pkg.peerDependencies)), + plugins: [ + babel({ + babelHelpers: 'bundled', + }), + ], +}; From 442efcdb59cb46fad4fc9c94907afdd3202957d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Mon, 17 Oct 2022 12:05:48 +0200 Subject: [PATCH 3/3] ci: i guess we need node 14 for rollup --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efcea24..a5c6ff4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: node-version: [14.x, 16.x, 17.x] react-version: [17.x, 18.x] include: - - node-version: 12.x + - node-version: 14.x react-version: 16.0.0 runs-on: ubuntu-latest steps: