From f3239c466bb89c172c8cf2b31f511df951cf7854 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Wed, 14 Aug 2024 11:46:58 +0200 Subject: [PATCH] refactor(cli): Remove dependency to @ionic/utils-process (#7614) --- cli/package.json | 1 - cli/src/tasks/run.ts | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cli/package.json b/cli/package.json index 6b0ead48d..d17d3c9ec 100644 --- a/cli/package.json +++ b/cli/package.json @@ -46,7 +46,6 @@ "dependencies": { "@ionic/cli-framework-output": "^2.2.5", "@ionic/utils-fs": "^3.1.6", - "@ionic/utils-process": "^2.1.11", "@ionic/utils-subprocess": "2.1.11", "@ionic/utils-terminal": "^2.3.3", "commander": "^9.3.0", diff --git a/cli/src/tasks/run.ts b/cli/src/tasks/run.ts index c814de4b7..7c789bfe4 100644 --- a/cli/src/tasks/run.ts +++ b/cli/src/tasks/run.ts @@ -1,4 +1,3 @@ -import { sleepForever } from '@ionic/utils-process'; import { columnar } from '@ionic/utils-terminal'; import { runAndroid } from '../android/run'; @@ -163,3 +162,11 @@ function createRunnablePlatformFilter( return platform => platform === config.ios.name || platform === config.android.name; } + +async function sleepForever(): Promise { + return new Promise(() => { + setInterval(() => { + /* do nothing */ + }, 1000); + }); +}