mirror of
https://github.com/pockethost/pockethost.git
synced 2026-03-11 19:24:46 +00:00
fix(pockethost): -e param default
This commit is contained in:
5
.changeset/weak-pandas-bow.md
Normal file
5
.changeset/weak-pandas-bow.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'pockethost': patch
|
||||
---
|
||||
|
||||
Fixed bug where --extra-plugins was not defaulting to '' correctly
|
||||
@@ -36,11 +36,13 @@ export const main = async () => {
|
||||
|
||||
const argv = minimist<{ e: string }>(process.argv.slice(2), {
|
||||
alias: { e: 'extra-plugins' },
|
||||
default: { e: '' },
|
||||
})
|
||||
const extraPlugins = argv.e
|
||||
.split(/,/)
|
||||
.map((s) => s.trim())
|
||||
.filter((v) => !!v)
|
||||
|
||||
await loadPlugins([pockethost, ...uniq(PH_PLUGINS()), ...extraPlugins])
|
||||
|
||||
program
|
||||
|
||||
Reference in New Issue
Block a user