feat!: throw a not implemented error on the ci command (#6261)

ref #6100
This commit is contained in:
Zoltan Kochan
2023-03-23 04:18:01 +02:00
committed by GitHub
parent cfb6bb3bfe
commit cae85dbb19
4 changed files with 35 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/plugin-commands-installation": major
"pnpm": major
---
Throw a "not implemented" error on the "pnpm ci" command.

View File

@@ -0,0 +1,25 @@
import { docsUrl } from '@pnpm/cli-utils'
import { PnpmError } from '@pnpm/error'
import renderHelp from 'render-help'
export const rcOptionsTypes = () => ({})
export const cliOptionsTypes = () => ({})
export const shorthands = {}
export const commandNames = ['ci', 'clean-install', 'ic', 'install-clean']
export function help () {
return renderHelp({
aliases: ['clean-install', 'ic', 'install-clean'],
description: 'Clean install a project',
descriptionLists: [],
url: docsUrl('ci'),
usages: ['pnpm ci'],
})
}
export async function handler (opts: unknown) {
throw new PnpmError('CI_NOT_IMPLEMENTED', 'The ci command is not implemented yet')
}

View File

@@ -1,4 +1,5 @@
import * as add from './add'
import * as ci from './ci'
import * as dedupe from './dedupe'
import * as install from './install'
import * as fetch from './fetch'
@@ -9,4 +10,4 @@ import * as unlink from './unlink'
import * as update from './update'
import * as importCommand from './import'
export { add, dedupe, fetch, install, link, prune, remove, unlink, update, importCommand }
export { add, ci, dedupe, fetch, install, link, prune, remove, unlink, update, importCommand }

View File

@@ -5,7 +5,7 @@ import { config, getCommand, setCommand } from '@pnpm/plugin-commands-config'
import { doctor } from '@pnpm/plugin-commands-doctor'
import { env } from '@pnpm/plugin-commands-env'
import { deploy } from '@pnpm/plugin-commands-deploy'
import { add, dedupe, fetch, install, link, prune, remove, unlink, update, importCommand } from '@pnpm/plugin-commands-installation'
import { add, ci, dedupe, fetch, install, link, prune, remove, unlink, update, importCommand } from '@pnpm/plugin-commands-installation'
import { list, ll, why } from '@pnpm/plugin-commands-listing'
import { licenses } from '@pnpm/plugin-commands-licenses'
import { outdated } from '@pnpm/plugin-commands-outdated'
@@ -103,6 +103,7 @@ const commands: CommandDefinition[] = [
add,
audit,
bin,
ci,
config,
dedupe,
getCommand,