Skip to content

Commit

Permalink
feat(deps): use git-cliff from npm instead of relying on native ins…
Browse files Browse the repository at this point in the history
…tall (#68)

BREAKING CHANGE: `@favware/cliff-jumper` v2 uses `v1.1.2` of git-cliff, refer to the changelog of git cliff for their breaking changes at v1.x
  • Loading branch information
RealShadowNova committed Mar 5, 2023
1 parent f725495 commit 0494e92
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"colorette": "^2.0.19",
"commander": "^10.0.0",
"conventional-recommended-bump": "^6.1.0",
"git-cliff": "^1.1.2",
"js-yaml": "^4.1.0",
"semver": "^7.3.8",
"typescript": "^4.9.5"
Expand All @@ -67,7 +68,7 @@
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"lint-staged": "^13.1.3",
"lint-staged": "^13.1.2",
"pinst": "^3.0.0",
"prettier": "^2.8.4",
"pretty-quick": "^3.1.3",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/update-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function updateChangelog(options: Options, newVersion: string) {
return doActionAndLog('Updating Changelog', () => {
if (!options.dryRun) {
execSync(
`git cliff --tag ${options.tagTemplate} --prepend ./CHANGELOG.md -u -c ./cliff.toml ${
`npx git cliff --tag ${options.tagTemplate} --prepend ./CHANGELOG.md -u -c ./cliff.toml ${
isNullishOrEmpty(repositoryRootDirectory) ? '' : `-r ${repositoryRootDirectory}/ --include-path "${options.packagePath}/*"`
}`
);
Expand Down
76 changes: 74 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,10 @@ __metadata:
eslint: ^8.35.0
eslint-config-prettier: ^8.6.0
eslint-plugin-prettier: ^4.2.1
git-cliff: ^1.1.2
husky: ^8.0.3
js-yaml: ^4.1.0
lint-staged: ^13.1.3
lint-staged: ^13.1.2
pinst: ^3.0.0
prettier: ^2.8.4
pretty-quick: ^3.1.3
Expand Down Expand Up @@ -2258,6 +2259,77 @@ __metadata:
languageName: node
linkType: hard

"git-cliff-darwin-arm64@npm:1.1.2":
version: 1.1.2
resolution: "git-cliff-darwin-arm64@npm:1.1.2"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"git-cliff-darwin-x64@npm:1.1.2":
version: 1.1.2
resolution: "git-cliff-darwin-x64@npm:1.1.2"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"git-cliff-linux-arm64@npm:1.1.2":
version: 1.1.2
resolution: "git-cliff-linux-arm64@npm:1.1.2"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard

"git-cliff-linux-x64@npm:1.1.2":
version: 1.1.2
resolution: "git-cliff-linux-x64@npm:1.1.2"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard

"git-cliff-windows-arm64@npm:1.1.2":
version: 1.1.2
resolution: "git-cliff-windows-arm64@npm:1.1.2"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"git-cliff-windows-x64@npm:1.1.2":
version: 1.1.2
resolution: "git-cliff-windows-x64@npm:1.1.2"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"git-cliff@npm:^1.1.2":
version: 1.1.2
resolution: "git-cliff@npm:1.1.2"
dependencies:
git-cliff-darwin-arm64: 1.1.2
git-cliff-darwin-x64: 1.1.2
git-cliff-linux-arm64: 1.1.2
git-cliff-linux-x64: 1.1.2
git-cliff-windows-arm64: 1.1.2
git-cliff-windows-x64: 1.1.2
dependenciesMeta:
git-cliff-darwin-arm64:
optional: true
git-cliff-darwin-x64:
optional: true
git-cliff-linux-arm64:
optional: true
git-cliff-linux-x64:
optional: true
git-cliff-windows-arm64:
optional: true
git-cliff-windows-x64:
optional: true
bin:
git-cliff: lib/index.js
checksum: 5098c6bbc7417ed161bf56be428c2d7dbb3b7e215ae42ec127f057b52d2951cad8f6b12b66d462ca4bccbae9908413a69cb73037c4cd1b1e4639175ae742a287
languageName: node
linkType: hard

"git-raw-commits@npm:^2.0.0, git-raw-commits@npm:^2.0.8":
version: 2.0.11
resolution: "git-raw-commits@npm:2.0.11"
Expand Down Expand Up @@ -2811,7 +2883,7 @@ __metadata:
languageName: node
linkType: hard

"lint-staged@npm:^13.1.3":
"lint-staged@npm:^13.1.2":
version: 13.1.3
resolution: "lint-staged@npm:13.1.3"
dependencies:
Expand Down

0 comments on commit 0494e92

Please sign in to comment.