mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-24 15:48:06 -05:00
feat!: throw a not implemented error on the ci command (#6261)
ref #6100
This commit is contained in:
6
.changeset/brave-hornets-tie.md
Normal file
6
.changeset/brave-hornets-tie.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-installation": major
|
||||
"pnpm": major
|
||||
---
|
||||
|
||||
Throw a "not implemented" error on the "pnpm ci" command.
|
||||
25
pkg-manager/plugin-commands-installation/src/ci.ts
Normal file
25
pkg-manager/plugin-commands-installation/src/ci.ts
Normal 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')
|
||||
}
|
||||
@@ -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 }
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user