@dong-victor/dsh-better-sidebar-starter 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1076,7 +1076,7 @@ async function upsertConfig(cwd, input) {
|
|
|
1076
1076
|
const existing = configs[idx];
|
|
1077
1077
|
const updated = {
|
|
1078
1078
|
...existing,
|
|
1079
|
-
name: input.name,
|
|
1079
|
+
name: input.name ?? existing.name,
|
|
1080
1080
|
type: input.type ?? existing.type,
|
|
1081
1081
|
command: input.command ?? existing.command,
|
|
1082
1082
|
cwd: input.cwd ?? existing.cwd,
|
|
@@ -1093,7 +1093,7 @@ async function upsertConfig(cwd, input) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
const config = {
|
|
1095
1095
|
id: input.id ?? randomUUID(),
|
|
1096
|
-
name: input.name,
|
|
1096
|
+
name: input.name ?? "",
|
|
1097
1097
|
type: input.type ?? "custom",
|
|
1098
1098
|
command: input.command ?? "",
|
|
1099
1099
|
cwd: input.cwd ?? ".",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dong-victor/dsh-better-sidebar-starter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "dsh-better-sidebar 的运行配置插件:模仿 IntelliJ IDEA 运行/调试配置,支持 npm/springboot/python/custom 命令执行、历史保存、快捷启动、实时日志查看,单 Tab 内分栏布局(左配置树 + 右日志流)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|