diff --git a/.changeset/weak-pandas-bow.md b/.changeset/weak-pandas-bow.md new file mode 100644 index 00000000..bf3183c8 --- /dev/null +++ b/.changeset/weak-pandas-bow.md @@ -0,0 +1,5 @@ +--- +'pockethost': patch +--- + +Fixed bug where --extra-plugins was not defaulting to '' correctly diff --git a/packages/pockethost/src/cli/index.ts b/packages/pockethost/src/cli/index.ts index 5d9c9267..4241588c 100755 --- a/packages/pockethost/src/cli/index.ts +++ b/packages/pockethost/src/cli/index.ts @@ -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