Skip to content

Commit 46062ba

Browse files
committed
updates to create nodev22 compatible code
1 parent 8ef3ec7 commit 46062ba

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

config/bis_checknodeversion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ let minor=parseInt(s[1]);
2626
let ok=false;
2727

2828

29-
if (major >= 18 && major <= 22) {
29+
if (major >= 14 && major <= 22) {
3030
ok=true;
3131
} else {
32-
console.log(`----\n---- You are using an incompatible version of node (either newer than 18 or older than 22 ) (actual version=${v})\n`);
32+
console.log(`----\n---- You are using an incompatible version of node (either newer than 14 or older than 22 ) (actual version=${v})\n`);
3333
process.exit(1);
3434
}
3535

config/bis_gulputils.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,8 @@ var getWebpackCommand=function(source,internal,external,out,indir,minify,outdir,
286286

287287

288288
let cmd= webpackcmd+' --entry '+source+' --output-filename '+tmpout+' --output-path '+outdir+' --config config'+join+'webpack.config_devel.js';
289-
if (!debug)
290-
cmd+=' --sort-modules-by size ';
291-
292289
if (debug)
293-
cmd+=' --verbose --display-modules --display-origins';
294-
else
295-
cmd+=' --display-max-modules 20';
290+
cmd+=' --stats detailed';
296291

297292
if (tmpout.indexOf('bislib')>=0)
298293
cmd+=' --bisinternal '+internal+' --bisexternal '+external;

config/bisweb_pathconfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ let minor=parseInt(s[1]);
2727

2828
let ok=false;
2929

30-
if (major >= 18 && major <= 22) {
30+
if (major >= 14 && major <= 22) {
3131
ok=true;
3232
} else {
33-
console.log(`----\n---- You are using an incompatible version of node (either newer than 18 or older than 22 ) (actual version=${v})\n`);
33+
console.log(`----\n---- You are using an incompatible version of node (either newer than 14 or older than 22 ) (actual version=${v})\n`);
3434
process.exit(1);
3535
}
3636

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,11 @@
8484
"jsdoc": "3.6.3",
8585
"mocha": "5.2.0",
8686
"modclean": "3.0.0-beta.1",
87-
"string-replace-webpack-plugin": "0.1.3",
8887
"temp": "0.8.3",
8988
"uglify-es": "3.3.9",
9089
"unzipper": "0.10.11",
91-
"webpack": "4.28.1",
92-
"webpack-cli": "3.2.1"
90+
"webpack": "^5.97.0",
91+
"webpack-cli": "^5.1.4"
9392
},
9493
"bioimagesuiteweb": {
9594
"info": "private entries maintained by hand. User by webpack to define externals",

0 commit comments

Comments
 (0)