Skip to content

Commit

Permalink
refactor(cli): Remove dependency to @ionic/utils-process (#7614)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Aug 14, 2024
1 parent 035685d commit f3239c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 8 additions & 1 deletion cli/src/tasks/run.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { sleepForever } from '@ionic/utils-process';
import { columnar } from '@ionic/utils-terminal';

import { runAndroid } from '../android/run';
Expand Down Expand Up @@ -163,3 +162,11 @@ function createRunnablePlatformFilter(
return platform =>
platform === config.ios.name || platform === config.android.name;
}

async function sleepForever(): Promise<never> {
return new Promise<never>(() => {
setInterval(() => {
/* do nothing */
}, 1000);
});
}

0 comments on commit f3239c4

Please sign in to comment.