Skip to content

Commit 2530ba9

Browse files
committed
update
1 parent 2159074 commit 2530ba9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/components/Package/DeprecatePackageModal.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import type { NewOperation } from '~/composables/useConnector'
3+
import type Modal from '~/components/Modal.client.vue'
34
45
const props = withDefaults(
56
defineProps<{
@@ -86,7 +87,7 @@ async function handleDeprecate() {
8687
}
8788
}
8889
89-
const dialogRef = ref<HTMLDialogElement>()
90+
const dialogRef = ref<InstanceType<typeof Modal> | undefined>()
9091
9192
function open() {
9293
deprecateError.value = null

cli/src/npm-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ export async function packageDeprecate(
456456
}
457457

458458
const target = version ? `${pkg}@${version}` : pkg
459-
const args = ['deprecate', target, reason]
459+
const args = ['deprecate', target, reasonText]
460460

461461
if (options?.dryRun) {
462462
args.push('--dry-run')

0 commit comments

Comments
 (0)