From dbbfbedc53d54bbf0e50a73be1a68cf9f01229f6 Mon Sep 17 00:00:00 2001 From: buzz Date: Sat, 1 Jun 2024 15:01:34 +0200 Subject: [PATCH] fix(deps): support Node.js 18 Closes #155 --- babel.config.cjs | 2 +- gulp/default.ts | 5 +---- package.json | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/babel.config.cjs b/babel.config.cjs index 554292e..0c38b0d 100644 --- a/babel.config.cjs +++ b/babel.config.cjs @@ -15,7 +15,7 @@ const babel = (api) => { api.cache(true) const browserTarget = '> 0.25%, not dead' - const nodeTarget = { node: '20' } + const nodeTarget = { node: '18.0' } const buildMixin = { ignore: ['./__tests__', './**/*.d.ts'], diff --git a/gulp/default.ts b/gulp/default.ts index fa9240c..26dd2f8 100644 --- a/gulp/default.ts +++ b/gulp/default.ts @@ -10,10 +10,7 @@ import babel from './transpile/babel.ts' import rollup from './transpile/rollup.ts' const defaultTask = gulp.series([ - gulp.parallel([ - generateTypes, - gulp.series([download, gulp.series([zenlib, mediainfolib, wasm])]), - ]), + gulp.parallel([generateTypes, gulp.series([download, zenlib, mediainfolib, wasm])]), gulp.parallel([babel, declaration, rollup]), ]) defaultTask.displayName = 'default' diff --git a/package.json b/package.json index f19768a..d3acba0 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "packageManager": "pnpm@9.1.2", "engines": { - "node": ">=20.13.1" + "node": ">=18.0.0" }, "bin": { "mediainfo.js": "./dist/esm/cli.js"