mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
install-node: Upgrade Node.js from 22.17.1 to 22.18.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
cd4cc1a4b1
commit
8de55e7cc1
@@ -1,18 +1,18 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
version=22.17.1
|
version=22.18.0
|
||||||
arch="$(uname -m)"
|
arch="$(uname -m)"
|
||||||
|
|
||||||
case $arch in
|
case $arch in
|
||||||
x86_64)
|
x86_64)
|
||||||
tarball="node-v$version-linux-x64.tar.xz"
|
tarball="node-v$version-linux-x64.tar.xz"
|
||||||
sha256=ff04bc7c3ed7699ceb708dbaaf3580d899ff8bf67f17114f979e83aa74fc5a49
|
sha256=c1bfeecf1d7404fa74728f9db72e697decbd8119ccc6f5a294d795756dfcfca7
|
||||||
;;
|
;;
|
||||||
|
|
||||||
aarch64)
|
aarch64)
|
||||||
tarball="node-v$version-linux-arm64.tar.xz"
|
tarball="node-v$version-linux-arm64.tar.xz"
|
||||||
sha256=a5bb879af2fe70e7b5dc5e0bbadecba88e87f45bd8e62c0c57b5c815a4cbbaa6
|
sha256=04fca1b9afecf375f26b41d65d52aa1703a621abea5a8948c7d1e351e85edade
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@@ -63,7 +63,7 @@ options = parser.parse_args()
|
|||||||
|
|
||||||
|
|
||||||
def run_single_test(test_file: str, test_number: int, total_tests: int) -> int:
|
def run_single_test(test_file: str, test_number: int, total_tests: int) -> int:
|
||||||
cmd = ["node", "--experimental-strip-types", "--no-warnings=ExperimentalWarning", test_file]
|
cmd = ["node", test_file]
|
||||||
|
|
||||||
test_name = os.path.basename(test_file)
|
test_name = os.path.basename(test_file)
|
||||||
cmd_str = shlex.join(cmd)
|
cmd_str = shlex.join(cmd)
|
||||||
|
@@ -14,12 +14,7 @@ os.chdir(os.path.join(os.path.dirname(__file__), "../web"))
|
|||||||
from scripts.lib.zulip_tools import get_config, get_config_file
|
from scripts.lib.zulip_tools import get_config, get_config_file
|
||||||
from version import ZULIP_VERSION
|
from version import ZULIP_VERSION
|
||||||
|
|
||||||
webpack_command = [
|
webpack_command = ["node", "../node_modules/webpack-cli/bin/cli.js"]
|
||||||
"node",
|
|
||||||
"--experimental-strip-types",
|
|
||||||
"--no-warnings=ExperimentalWarning",
|
|
||||||
"../node_modules/webpack-cli/bin/cli.js",
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def build_for_prod_or_puppeteer(quiet: bool, config_name: str | None = None) -> NoReturn:
|
def build_for_prod_or_puppeteer(quiet: bool, config_name: str | None = None) -> NoReturn:
|
||||||
@@ -31,6 +26,7 @@ def build_for_prod_or_puppeteer(quiet: bool, config_name: str | None = None) ->
|
|||||||
webpack_args = [
|
webpack_args = [
|
||||||
*webpack_command,
|
*webpack_command,
|
||||||
"build",
|
"build",
|
||||||
|
"--disable-interpret",
|
||||||
"--mode=production",
|
"--mode=production",
|
||||||
f"--env=ZULIP_VERSION={ZULIP_VERSION}",
|
f"--env=ZULIP_VERSION={ZULIP_VERSION}",
|
||||||
]
|
]
|
||||||
@@ -61,6 +57,7 @@ def build_for_dev_server(host: str, port: str, minify: bool, disable_host_check:
|
|||||||
webpack_args = [
|
webpack_args = [
|
||||||
*webpack_command,
|
*webpack_command,
|
||||||
"serve",
|
"serve",
|
||||||
|
"--disable-interpret",
|
||||||
# webpack-cli has a bug where it ignores --watch-poll with
|
# webpack-cli has a bug where it ignores --watch-poll with
|
||||||
# multi-config, and we don't need the katex part anyway.
|
# multi-config, and we don't need the katex part anyway.
|
||||||
"--config-name=frontend",
|
"--config-name=frontend",
|
||||||
|
@@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 425
|
|||||||
# historical commits sharing the same major version, in which case a
|
# historical commits sharing the same major version, in which case a
|
||||||
# minor version bump suffices.
|
# minor version bump suffices.
|
||||||
|
|
||||||
PROVISION_VERSION = (340, 4) # bumped 2025-08-13 to upgrade Python requirements
|
PROVISION_VERSION = (341, 0) # bumped 2025-08-14 to upgrade Node.js
|
||||||
|
Reference in New Issue
Block a user