Skip to content

Commit

Permalink
fix(commit): commitlint template error (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov authored Jan 6, 2025
1 parent 58e11cb commit 572f508
Show file tree
Hide file tree
Showing 9 changed files with 730 additions and 695 deletions.
10 changes: 5 additions & 5 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
diff --git a/writerOpts.js b/writerOpts.js
index 991947b85e2eac0e0ae246037624276882abb741..805d7e29d3472a8ce2f5b852871c546eecb86bfd 100644
--- a/writerOpts.js
+++ b/writerOpts.js
@@ -1,22 +1,14 @@
'use strict'

const compareFunc = require('compare-func')
-const { readFile } = require('fs').promises
-const { resolve } = require('path')

async function createWriterOpts () {
- const [template, header, commit, footer] = await Promise.all([
- readFile(resolve(__dirname, './templates/template.hbs'), 'utf-8'),
- readFile(resolve(__dirname, './templates/header.hbs'), 'utf-8'),
- readFile(resolve(__dirname, './templates/commit.hbs'), 'utf-8'),
- readFile(resolve(__dirname, './templates/footer.hbs'), 'utf-8')
- ])
const writerOpts = getWriterOpts()

- writerOpts.mainTemplate = template
- writerOpts.headerPartial = header
- writerOpts.commitPartial = commit
- writerOpts.footerPartial = footer
+ writerOpts.mainTemplate = ''
+ writerOpts.headerPartial = ''
+ writerOpts.commitPartial = ''
+ writerOpts.footerPartial = ''

return writerOpts
}

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion code/code-commit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@commitlint/read": "19.4.0",
"@commitlint/rules": "19.4.1",
"@commitlint/types": "19.0.3",
"conventional-changelog-angular": "patch:conventional-changelog-angular@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-angular-npm-8.0.0-80898aa2c5.patch",
"conventional-changelog-angular": "patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch",
"conventional-commits-parser": "6.0.0"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"resolutions": {
"@yarnpkg/builder": "patch:@yarnpkg/builder@npm%3A4.1.2#~/.yarn/patches/@yarnpkg-builder-npm-4.1.2-2648882e59.patch",
"clipanion": "4.0.0-rc.2",
"conventional-changelog-angular@npm:^7.0.0": "patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch",
"conventional-changelog-angular@npm:^8.0.0": "patch:conventional-changelog-angular@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-angular-npm-8.0.0-80898aa2c5.patch",
"conventional-changelog-core@npm:^8.0.0": "patch:conventional-changelog-core@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-core-npm-8.0.0-3fbb6b301e.patch",
"conventional-changelog-writer@npm:^8.0.0": "patch:conventional-changelog-writer@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-writer-npm-8.0.0-356cbecdca.patch",
Expand Down
17 changes: 13 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ __metadata:
"@commitlint/types": "npm:19.0.3"
"@types/conventional-commits-parser": "npm:5.0.0"
"@types/node": "npm:22.9.0"
conventional-changelog-angular: "patch:conventional-changelog-angular@npm%3A8.0.0#~/.yarn/patches/conventional-changelog-angular-npm-8.0.0-80898aa2c5.patch"
conventional-changelog-angular: "patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch"
conventional-commits-parser: "npm:6.0.0"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -5597,6 +5597,15 @@ __metadata:
languageName: node
linkType: hard

"conventional-changelog-angular@npm:7.0.0":
version: 7.0.0
resolution: "conventional-changelog-angular@npm:7.0.0"
dependencies:
compare-func: "npm:^2.0.0"
checksum: 10/e7966d2fee5475e76263f30f8b714b2b592b5bf556df225b7091e5090831fc9a20b99598a7d2997e19c2ef8118c0a3150b1eba290786367b0f55a5ccfa804ec9
languageName: node
linkType: hard

"conventional-changelog-angular@npm:8.0.0":
version: 8.0.0
resolution: "conventional-changelog-angular@npm:8.0.0"
Expand All @@ -5606,12 +5615,12 @@ __metadata:
languageName: node
linkType: hard

"conventional-changelog-angular@npm:^7.0.0":
"conventional-changelog-angular@patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch":
version: 7.0.0
resolution: "conventional-changelog-angular@npm:7.0.0"
resolution: "conventional-changelog-angular@patch:conventional-changelog-angular@npm%3A7.0.0#~/.yarn/patches/conventional-changelog-angular-npm-7.0.0-de5edb79f0.patch::version=7.0.0&hash=89143f"
dependencies:
compare-func: "npm:^2.0.0"
checksum: 10/e7966d2fee5475e76263f30f8b714b2b592b5bf556df225b7091e5090831fc9a20b99598a7d2997e19c2ef8118c0a3150b1eba290786367b0f55a5ccfa804ec9
checksum: 10/3a1ad0a1dcf3c6484fb0fea0f7f8f2ab8e0bb224c082aabdd38dde63f18182ae0802aa71a0761ad3cc863b39d4354b7a3dcfbc80e2c998942ddde09628d432af
languageName: node
linkType: hard

Expand Down
1,358 changes: 679 additions & 679 deletions yarn/cli/dist/yarn.mjs

Large diffs are not rendered by default.

0 comments on commit 572f508

Please sign in to comment.