From f19e35db2062e68f52d780c3aa1e09efd4d8b9b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Nikoli=C4=87?= Date: Sat, 23 Mar 2024 16:17:26 +0100 Subject: [PATCH] Upgrade Rollup Closes #212. --- generators/app/templates/_package.json | 14 +++++++------- test/index.js | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/generators/app/templates/_package.json b/generators/app/templates/_package.json index d6d1374..293e91f 100644 --- a/generators/app/templates/_package.json +++ b/generators/app/templates/_package.json @@ -93,7 +93,7 @@ "nodemon": "^2.0.6", "nyc": "^15.1.0"<% } %><% if ( automatedTests && codeCoverage && browserModule && !sassModule ) { %><% if ( bundlingTool === 'webpack' ) { %>, "@jsdevtools/coverage-istanbul-loader": "^3.0.5"<% } %><% if ( bundlingTool === 'rollup' ) { %>, - "rollup-plugin-istanbul": "^3.0.0"<% } %>, + "rollup-plugin-istanbul": "^5.0.0"<% } %>, "karma-coverage": "^2.0.3"<% } %><% if ( codeCoverageService ) { %>, "coveralls": "^2.11.11"<% } %><% if ( manualTests || integrationTests ) { %>, "del": "^6.0.0", @@ -133,15 +133,15 @@ "@babel/runtime": "^7.2.0"<% } %><% if ( automatedTests ) { %><% if ( !browserModule || (browserModule && integrationTests) ) { %>, "@babel/register": "^7.0.0"<% } %><% if ( codeCoverage ) { %><% if ( !browserModule && !sassModule ) { %>, "babel-plugin-istanbul": "^6.0.0"<% } %><% } %><% } %><% } %>, - "rollup": "^2.32.1"<% if ( !transpile && typescript && typescriptMode === 'full' ) { %>, - "@rollup/plugin-typescript": "^8.2.3"<% } %><% if ( transpile ) { %>, - "@rollup/plugin-babel": "^5.2.1"<% } %><% if ( bundlingTool === 'rollup' || (transpile && typescript && typescriptMode === 'full') ) { %>, - "@rollup/plugin-node-resolve": "^9.0.0"<% } %><% if ( bundlingTool === 'rollup' ) { %>, - "@rollup/plugin-commonjs": "^15.1.0", + "rollup": "^4.13.0"<% if ( !transpile && typescript && typescriptMode === 'full' ) { %>, + "@rollup/plugin-typescript": "^11.1.6"<% } %><% if ( transpile ) { %>, + "@rollup/plugin-babel": "^6.0.4"<% } %><% if ( bundlingTool === 'rollup' || (transpile && typescript && typescriptMode === 'full') ) { %>, + "@rollup/plugin-node-resolve": "^15.2.3"<% } %><% if ( bundlingTool === 'rollup' ) { %>, + "@rollup/plugin-commonjs": "^25.0.7", "rollup-plugin-node-builtins": "^2.1.2", "rollup-plugin-node-globals": "^1.4.0"<% } %><% if ( vanillaJsWidget ) { %>, "eslint-plugin-html": "^6.0.0", - "rollup-plugin-svelte": "^6.1.0", + "rollup-plugin-svelte": "^7.2.0", "svelte": "^2.16.1"<% } %><% if ( typescript ) { %>, "typescript": "^4.3.5", "cpy": "^8.1.2", diff --git a/test/index.js b/test/index.js index 58baead..0880860 100644 --- a/test/index.js +++ b/test/index.js @@ -885,7 +885,7 @@ describe('Transpile', function () { prepublishOnly: 'npm run build' }, devDependencies: { - 'rollup': '^2.32.1', + 'rollup': '^4.13.0', '@babel/preset-env': '^7.12.1' } }); @@ -1128,8 +1128,8 @@ describe('ES Modules, transpile', function () { prepublishOnly: 'npm run build' }, devDependencies: { - rollup: '^2.32.1', - '@rollup/plugin-babel': '^5.2.1' + rollup: '^4.13.0', + '@rollup/plugin-babel': '^6.0.4' } }); }); @@ -1348,13 +1348,13 @@ describe('Bundling tool, Rollup, automated tests', function () { it('should fill package.json with correct information', function () { assert.jsonFileContent('package.json', { devDependencies: { - rollup: '^2.32.1', - '@rollup/plugin-babel': '^5.2.1', - '@rollup/plugin-node-resolve': '^9.0.0', - '@rollup/plugin-commonjs': '^15.1.0', + rollup: '^4.13.0', + '@rollup/plugin-babel': '^6.0.4', + '@rollup/plugin-node-resolve': '^15.2.3', + '@rollup/plugin-commonjs': '^25.0.7', 'rollup-plugin-node-builtins': '^2.1.2', 'rollup-plugin-node-globals': '^1.4.0', - 'rollup-plugin-istanbul': '^3.0.0', + 'rollup-plugin-istanbul': '^5.0.0', 'karma-rollup-preprocessor': '^7.0.0' } }); @@ -1384,7 +1384,7 @@ describe('Bundling tool, Rollup, manual tests', function () { it('should fill package.json with correct information', function () { assert.jsonFileContent('package.json', { devDependencies: { - rollup: '^2.32.1', + rollup: '^4.13.0', 'postcss': '^8.3.11', 'rollup-plugin-postcss': '^4.0.1', 'rollup-plugin-serve': '^1.0.3', @@ -1447,7 +1447,7 @@ describe('Vanilla JS widget', function () { it('should fill package.json with correct information', function () { assert.jsonFileContent('package.json', { devDependencies: { - 'rollup-plugin-svelte': '^6.1.0', + 'rollup-plugin-svelte': '^7.2.0', 'svelte': '^2.16.1' } });