MM-53989 Upgrade to Node 18 and NPM 9 (#24283)

* MM-53989 Update to Node 18 and NPM 9

* MM-53989 Remove skip_integrity_check.js

* Force e2e-test/cypress to use its version of TS for types package

* Update .nvmrc

* Update .nvmrc lineending

* Update server.override.yml

---------

Co-authored-by: M-ZubairAhmed <m-zubairahmed@protonmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Harrison Healey
2023-08-28 14:37:05 -04:00
committed by GitHub
parent 053041cd2c
commit 8235b5bb44
7 changed files with 17 additions and 170 deletions

View File

@@ -1,14 +0,0 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const fs = require('fs');
const content = JSON.parse(fs.readFileSync('package-lock.json', 'utf-8'));
// Skip integrity check for mmjstool, which differs on Apple Silicon M1.
// @see https://github.com/npm/cli/issues/2846
delete content.dependencies.mmjstool.integrity;
delete content.packages['node_modules/mmjstool'].integrity;
delete content.dependencies.marked.integrity;
delete content.packages['node_modules/marked'].integrity;
fs.writeFileSync('package-lock.json', JSON.stringify(content, null, 2) + '\n');