Skip to content

Commit

Permalink
fix: autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
npenin committed Nov 16, 2024
1 parent 0e8345d commit 7d478bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/pm/src/commands/$init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || [] })
});
}

Expand Down

0 comments on commit 7d478bb

Please sign in to comment.