Skip to content

Commit 73e7008

Browse files
authored
fix(ci): declare unrun as devDependency where tsdown uses it (#368)
1 parent 12d2d9f commit 73e7008

7 files changed

Lines changed: 100 additions & 719 deletions

File tree

examples/plugin-a11y-checker/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"solid-js": "catalog:devtools",
2929
"tsdown": "catalog:build",
3030
"unocss": "catalog:build",
31+
"unrun": "catalog:build",
3132
"vite": "catalog:build",
3233
"vite-plugin-solid": "catalog:devtools"
3334
}

examples/plugin-file-explorer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"serve": "catalog:devtools",
3737
"tsdown": "catalog:build",
3838
"unocss": "catalog:build",
39+
"unrun": "catalog:build",
3940
"vite": "catalog:build"
4041
}
4142
}

examples/plugin-git-ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"devDependencies": {
2929
"serve": "catalog:devtools",
3030
"tsdown": "catalog:build",
31+
"unrun": "catalog:build",
3132
"vite": "catalog:build"
3233
}
3334
}

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"tsdown": "catalog:build",
8585
"typescript": "catalog:devtools",
8686
"unplugin-vue": "catalog:build",
87+
"unrun": "catalog:build",
8788
"vite": "catalog:build",
8889
"vue": "catalog:deps",
8990
"vue-router": "catalog:playground",

packages/rolldown/src/app/components/code/DiffEditor.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import type * as Monaco from 'modern-monaco/editor-core'
3+
import type { SplitpanesResizePayload } from 'splitpanes'
34
import { isDark } from '@vitejs/devtools-ui/composables/dark'
45
import { Pane, Splitpanes } from 'splitpanes'
56
import { computed, nextTick, onBeforeUnmount, onMounted, useTemplateRef, watch } from 'vue'
@@ -223,14 +224,14 @@ const leftPanelSize = computed(() => {
223224
: settings.value.codeviewerDiffPanelSize
224225
})
225226
226-
function onUpdate(size: number) {
227+
function onUpdate({ prevPane }: SplitpanesResizePayload) {
227228
fromEditor?.layout()
228229
toEditor?.layout()
229230
230-
if (props.oneColumn)
231+
if (props.oneColumn || !prevPane)
231232
return
232233
233-
settings.value.codeviewerDiffPanelSize = size
234+
settings.value.codeviewerDiffPanelSize = prevPane.size
234235
}
235236
236237
onBeforeUnmount(() => {
@@ -243,7 +244,7 @@ onBeforeUnmount(() => {
243244
</script>
244245

245246
<template>
246-
<Splitpanes @resize="onUpdate($event.prevPane.size)">
247+
<Splitpanes @resize="onUpdate">
247248
<Pane v-show="!oneColumn" min-size="10" :size="leftPanelSize">
248249
<div ref="fromEl" h-inherit />
249250
</Pane>

pnpm-lock.yaml

Lines changed: 90 additions & 715 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ catalogs:
5353
turbo: ^2.9.15
5454
unocss: ^66.7.0
5555
unplugin-vue: ^7.2.0
56+
unrun: ^0.3.0
5657
vite: ^8.0.14
5758
deps:
5859
'@devframes/hub': ^0.5.2

0 commit comments

Comments
 (0)