Skip to content

Commit

Permalink
fix(commands): fix alias simplified to null treated as invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed May 10, 2024
1 parent 02bc617 commit b82f45b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/commands/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/plugin-commands",
"description": "Override Command Config for Koishi",
"version": "3.5.2",
"version": "3.5.4",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion plugins/commands/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Override: Schema<Override> = Schema.object({
filter: Schema.any(),
}),
Schema.transform(false, () => ({ filter: false })),
])),
]).default({} as any)),
Schema.transform(Schema.array(String), (aliases) => {
return Object.fromEntries(aliases.map((name) => [name, {}]))
}),
Expand Down

0 comments on commit b82f45b

Please sign in to comment.