Merge "build(npm): update Node.js and all packages" into integration

This commit is contained in:
Bipin Ravi 2024-02-28 17:32:28 +01:00 committed by TrustedFirmware Code Review
commit fa45e03c38
5 changed files with 1527 additions and 3684 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, Arm Limited. All rights reserved.
* Copyright (c) 2021-2024, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -8,10 +8,9 @@
"use strict";
const fs = require("fs");
const yaml = require("js-yaml");
const { "trailer-exists": trailerExists } = require("@commitlint/rules").default;
import fs from "fs";
import rules from "@commitlint/rules";
import yaml from "js-yaml";
/*
* The types and scopes accepted by both Commitlint and Commitizen are defined by the changelog
@ -37,7 +36,7 @@ function getTypes(sections) {
function getScopes(subsections) {
return subsections.flatMap(subsection => {
const scope = subsection.scope ? [ subsection.scope ] : [];
const scope = subsection.scope ? [subsection.scope] : [];
const subscopes = getScopes(subsection.subsections || []);
return scope.concat(subscopes);
@ -47,13 +46,13 @@ function getScopes(subsections) {
const types = getTypes(changelog.sections).sort(); /* Sort alphabetically */
const scopes = getScopes(changelog.subsections).sort(); /* Sort alphabetically */
module.exports = {
export default {
extends: ["@commitlint/config-conventional"],
plugins: [
{
rules: {
"signed-off-by-exists": trailerExists,
"change-id-exists": trailerExists,
"signed-off-by-exists": rules["trailer-exists"],
"change-id-exists": rules["trailer-exists"],
},
},
],
@ -64,7 +63,7 @@ module.exports = {
"change-id-exists": [1, "always", "Change-Id:"], /* Warning */
"signed-off-by-exists": [1, "always", "Signed-off-by:"], /* Warning */
"type-case": [2, "always", "lower-case" ], /* Error */
"type-case": [2, "always", "lower-case"], /* Error */
"type-enum": [2, "always", types], /* Error */
"scope-case": [2, "always", "lower-case"], /* Error */

2
.nvmrc
View file

@ -1 +1 @@
v16.17.1
v20.11.1

5175
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -2,22 +2,23 @@
"name": "trusted-firmware-a",
"version": "2.10.0",
"license": "BSD-3-Clause",
"type": "module",
"private": true,
"scripts": {
"postinstall": "husky install",
"release": "standard-version"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20"
},
"devDependencies": {
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"@commitlint/cz-commitlint": "^16.1.0",
"commitizen": "^4.2.4",
"@commitlint/cli": "^19.0.0",
"@commitlint/config-conventional": "^19.0.0",
"@commitlint/cz-commitlint": "^19.0.0",
"commitizen": "^4.3.0",
"conventional-changelog-tf-a": "file:tools/conventional-changelog-tf-a",
"husky": "^7.0.4",
"husky": "^9.0.11",
"js-yaml": "^4.1.0",
"standard-version": "^9.3.2"
"standard-version": "^9.5.0"
}
}