Skip to content

Commit

Permalink
fix: execa cannot pass a var only.
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed Jan 18, 2024
1 parent 9dc4b6b commit 639c92e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lvr",
"type": "module",
"version": "1.12.1",
"version": "1.7.1",
"private": false,
"description": "My own release cli tool.",
"author": "lvjiaxuan <471501748@qq.com> (https://github.com/lvjiaxuan)",
Expand Down Expand Up @@ -74,11 +74,10 @@
"yargs": "^17.7.2"
},
"simple-git-hooks": {
"pre-commit": "nlx lint-staged --concurrent false"
"pre-commit": ["nr typecheck", "nlx lint-staged --concurrent false"]
},
"lint-staged": {
"*": "eslint --fix",
"*.?([cm])ts?(x)": "nr typecheck"
"*": "eslint --fix"
},
"lv": {
"release": {
Expand Down
2 changes: 1 addition & 1 deletion src/command/bump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export async function bump(options: Option) {
let commitTagName: string

if (rootBumpVersion)
commitTagName = `v${ rootBumpVersion }`
commitTagName = `v${rootBumpVersion}`
else if (!isMonorepo)
commitTagName = `v${pkgsJson[0]!.bumpVersion}`
else if (pkgsJson.length > 1)
Expand Down
11 changes: 8 additions & 3 deletions src/command/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ export async function publish(options: PublishOption) {

setOutput('isWorkspace', isWorkspace)

const publishCommand = `pnpm publish${isWorkspace ? ' -r --report-summary' : ''} --no-git-checks`
info(`${p.blue(publishCommand)}\n`)
await $$`pnpm publish --no-git-checks`
const publishArgs = ['--no-git-checks']
if (isWorkspace) {
publishArgs.unshift('--report-summary')
publishArgs.unshift('-r')
}

info(p.blue(`pnpm publish ${publishArgs.join(' ')}\n`))
await $$`pnpm publish ${publishArgs}`

if (options.syncCnpm) {
let publishedNames: string[] = []
Expand Down
2 changes: 1 addition & 1 deletion src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function formatSection(commits: Commit[], sectionName: string, options: Markdown
'',
]

const scopes = groupBy(commits, 'scope')!
const scopes = groupBy(commits, 'scope')
let useScopeGroup = true

// group scopes only when one of the scope have multiple commits
Expand Down

0 comments on commit 639c92e

Please sign in to comment.