Skip to content

Commit

Permalink
fix: add zx-semrel
Browse files Browse the repository at this point in the history
  • Loading branch information
dimonka83 committed Oct 31, 2023
1 parent a5ab1ff commit a9a2805
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/semrel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"homepage": "https://qiwi.github.io/packasso",
"dependencies": {
"@packasso/core": "workspace:*",
"zx-bulk-release": "2.11.5"
"zx-bulk-release": "2.11.5",
"zx-semrel": "1.21.3"
},
"type": "module",
"exports": "./src/main/ts/index.ts",
Expand Down
12 changes: 12 additions & 0 deletions packages/semrel/src/main/ts/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ const install: Install = {
access: 'public',
},
},
}
: {},
pkg.leaf
? {
'.releaserc.json': {
changelog: 'changelog',
npmFetch: true,
Expand Down Expand Up @@ -51,5 +55,13 @@ program(
preset ? root.absPath : root,
)
}
if (root.unit) {
await execute(
cmd('zx-semrel', {
'dry-run': dryRun,
}),
preset ? root.absPath : root,
)
}
}),
)
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3285,6 +3285,7 @@ __metadata:
dependencies:
"@packasso/core": "workspace:*"
zx-bulk-release: 2.11.5
zx-semrel: 1.21.3
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -19611,6 +19612,17 @@ __metadata:
languageName: node
linkType: hard

"zx-semrel@npm:1.21.3":
version: 1.21.3
resolution: "zx-semrel@npm:1.21.3"
dependencies:
zx: ^7.1.1
bin:
zx-semrel: cli.mjs
checksum: 191047fea2ebf9507719c5a0d6383d649a423fc4c492e4605e2c77d81fc9b8cafd2e6b8a8ceb52324ec88e58b2687dbe4efdfe4c1582fa5b9cae01b5f8591219
languageName: node
linkType: hard

"zx@npm:^7.1.1":
version: 7.2.3
resolution: "zx@npm:7.2.3"
Expand Down

0 comments on commit a9a2805

Please sign in to comment.