diff --git a/package.json b/package.json index bd24f01..ba04582 100644 --- a/package.json +++ b/package.json @@ -20,11 +20,11 @@ "devDependencies": { "argparse": "2.0.1", "chrome-remote-interface": "0.33.2", - "esbuild": "0.21.5", + "esbuild": "0.23.0", "esbuild-plugin-copy": "2.1.1", "esbuild-plugin-replace": "1.4.0", "esbuild-sass-plugin": "3.3.1", - "esbuild-wasm": "0.21.3", + "esbuild-wasm": "0.23.0", "eslint": "8.57.0", "eslint-config-standard": "17.1.0", "eslint-config-standard-jsx": "11.0.0", diff --git a/packaging/cockpit-starter-kit.spec.in b/packaging/cockpit-starter-kit.spec.in index 2295055..14cd470 100644 --- a/packaging/cockpit-starter-kit.spec.in +++ b/packaging/cockpit-starter-kit.spec.in @@ -10,7 +10,9 @@ BuildArch: noarch %if ! 0%{?suse_version} ExclusiveArch: %{nodejs_arches} noarch %endif -BuildRequires: nodejs +%if ! 0%{?rhel} || 0%{?rhel} >= 10 +BuildRequires: nodejs >= 18 +%endif BuildRequires: make %if 0%{?suse_version} # Suse's package has a different name @@ -33,8 +35,8 @@ Cockpit Starter Kit Example Module %prep %autosetup -n %{name} -a 1 # ignore pre-built bundle in release tarball and rebuild it -# but keep it in RHEL/CentOS-8, as that has a too old nodejs -%if ! 0%{?rhel} || 0%{?rhel} >= 9 +# but keep it in RHEL/CentOS-8/9, as that has a too old nodejs +%if ! 0%{?rhel} || 0%{?rhel} >= 10 rm -rf dist %endif