mirror of
https://github.com/pockethost/pockethost.git
synced 2025-09-16 05:30:17 +00:00
fix(pockethost): -e param default
This commit is contained in:
parent
7931204f19
commit
52b70cbe76
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user