Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Fix #449 (Downgrade fkill to use CJS)
Browse files Browse the repository at this point in the history
  • Loading branch information
reis committed Sep 27, 2022
1 parent 92bfd8c commit b6f764a
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 118 deletions.
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ const { WebSocketServer } = require('ws');
const open_ = require('open');
const pf = require('portfinder');

// Lazy-loaded.
/** @type {import('fkill').default} */
let fkill;
const fkill = require('fkill');

const {
updateFiles,
Expand Down Expand Up @@ -89,8 +87,6 @@ const listen = (port) => {
const cleanExit = async (svr) => {
log('Killing any dangling processes...', false);

fkill ??= (await import('fkill')).default;

try {
await fkill(['adb', 'java', 'aapt2'], {
forceAfterTimeout: 5000,
Expand Down
Loading

0 comments on commit b6f764a

Please sign in to comment.