mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-08 05:43:53 +00:00
Merge "build(npm): update Node.js and all packages" into integration
This commit is contained in:
commit
fa45e03c38
5 changed files with 1527 additions and 3684 deletions
|
@ -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
2
.nvmrc
|
@ -1 +1 @@
|
|||
v16.17.1
|
||||
v20.11.1
|
||||
|
|
5175
package-lock.json
generated
5175
package-lock.json
generated
File diff suppressed because it is too large
Load diff
15
package.json
15
package.json
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue