Skip to content

Commit

Permalink
feat: remove --recursive of publish
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed Jan 17, 2024
1 parent 2daf8b2 commit e3cf931
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
6 changes: 1 addition & 5 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ void (yargs(hideBin(process.argv)) as Argv<AllOption>)
}).command({
command: 'publish',
describe: 'Publish on CI environment.',
builder: y => y.option('recursive', {
alias: 'r',
boolean: true,
describe: 'Publish all packages from the workspace.',
}).option('sync-cnpm', {
builder: y => y.option('sync-cnpm', {
boolean: true,
}),
handler: async (args) => {
Expand Down
7 changes: 0 additions & 7 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,4 @@ export interface MarkdownOption {

export interface PublishOption {
syncCnpm?: boolean

/**
* @see https://pnpm.io/cli/publish#--recursive--r
*
* Publish all packages from the workspace.
*/
recursive?: boolean
}

0 comments on commit e3cf931

Please sign in to comment.