diff --git a/.cz-adapter.cjs b/.cz-adapter.cjs new file mode 100644 index 000000000..26aaeb2a0 --- /dev/null +++ b/.cz-adapter.cjs @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2024, Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * A workaround for: + * + * https://github.com/conventional-changelog/commitlint/issues/3949 + */ + +exports.prompter = async (inquirerIns, commit) => { + ; (await import('@commitlint/cz-commitlint')).prompter(inquirerIns, commit) +} diff --git a/.cz.json b/.cz.json index 556c39f1a..969a73b86 100644 --- a/.cz.json +++ b/.cz.json @@ -1,3 +1,3 @@ { - "path": "@commitlint/cz-commitlint" + "path": "./.cz-adapter.cjs" }