Skip to content

Commit

Permalink
Fix esm module import and add typings
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Sep 21, 2024
1 parent dac5542 commit 2f9a0f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/download.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module '@xhmikosr/downloader' {
export { default, DownloadOptions } from '@types/download'
}
5 changes: 1 addition & 4 deletions src/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'node:fs/promises'
import path from 'node:path'
import { format } from 'node:util'

import type { DownloadOptions } from 'download'
import downloadBundle, { DownloadOptions } from '@xhmikosr/downloader'
import logger from '@wdio/logger'
import { setGlobalDispatcher, request, ProxyAgent } from 'undici'
import { download } from '@vscode/test-electron'
Expand All @@ -21,9 +21,6 @@ import type {
Bundle
} from './types.js'

// eslint-disable-next-line @typescript-eslint/no-var-requires
const downloadBundle: typeof import('download') = require('@xhmikosr/downloader')

interface BundleInformation {
chromedriver: string
vscode: string
Expand Down

0 comments on commit 2f9a0f1

Please sign in to comment.