From 7d478bbda3697b5b17c47c919e8767ecb7cbabe1 Mon Sep 17 00:00:00 2001 From: npenin Date: Sat, 16 Nov 2024 04:36:51 +0100 Subject: [PATCH] fix: autostart --- packages/pm/src/commands/$init.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/pm/src/commands/$init.ts b/packages/pm/src/commands/$init.ts index 21178dacb..8d25dcb42 100644 --- a/packages/pm/src/commands/$init.ts +++ b/packages/pm/src/commands/$init.ts @@ -137,7 +137,8 @@ export default async function (this: State, container: RunningContainer & pmCont { await eachAsync(this.config.mapping.extract(), async (mapping, name) => { - await container.dispatch('start', name, { autostart: true, wait: true }, { args: mapping.cli }) + if (mapping.autostart) + await container.dispatch('start', name, { autostart: true, wait: true }, { args: mapping.cli || [] }) }); }