From bc5ffe11238c87b8415210ef96dee9fe09f6f399 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 9 Dec 2021 15:49:03 +0100 Subject: [PATCH] [MIRROR] Require Node 16, Disable experimental Yarn PnP ESM loader [MDB IGNORE] (#9974) * Require Node 16, Disable experimental Yarn PnP ESM loader (#63314) Fixes problems with building tgui on certain versions of Node. Bumps required NodeJS version to 16 (which is the current LTS) These two things are atomic, they're just bundled in one PR for convenience. * Require Node 16, Disable experimental Yarn PnP ESM loader Co-authored-by: Aleksej Komarov --- dependencies.sh | 4 ++-- tgui/.yarnrc.yml | 2 ++ tgui/README.md | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dependencies.sh b/dependencies.sh index d6386a54b44..4adbf82d34e 100644 --- a/dependencies.sh +++ b/dependencies.sh @@ -11,8 +11,8 @@ export BYOND_MINOR=1557 #SKYRAT EDIT CHANGE - Compiler failure due to insufficen export RUST_G_VERSION=0.5.0 #node version -export NODE_VERSION=12 -export NODE_VERSION_PRECISE=12.22.4 +export NODE_VERSION=16 +export NODE_VERSION_PRECISE=16.13.1 # SpacemanDMM git tag export SPACEMAN_DMM_VERSION=suite-1.7.1 diff --git a/tgui/.yarnrc.yml b/tgui/.yarnrc.yml index 11371e4e665..53846c71f31 100644 --- a/tgui/.yarnrc.yml +++ b/tgui/.yarnrc.yml @@ -10,6 +10,8 @@ plugins: - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs spec: "@yarnpkg/plugin-interactive-tools" +pnpEnableEsmLoader: false + preferAggregateCacheInfo: true preferInteractive: true diff --git a/tgui/README.md b/tgui/README.md index f6883b6d2e2..7364eb6622a 100644 --- a/tgui/README.md +++ b/tgui/README.md @@ -29,7 +29,8 @@ If you are using the tooling provided in this repo, everything is included! Feel However, if you want finer control over the installation or build process, you will need these: -- [Node v12.20+](https://nodejs.org/en/download/) +- [Node v16.13+](https://nodejs.org/en/download/) + - **LTS** release is recommended instead of latest - **DO NOT install Chocolatey if Node installer asks you to!** - [Yarn v1.22.4+](https://yarnpkg.com/getting-started/install) - You only need to run `npm install -g yarn`.