diff --git a/lib/commands/file-movement.js b/lib/commands/file-movement.js index 2bd28dcd..0c540411 100644 --- a/lib/commands/file-movement.js +++ b/lib/commands/file-movement.js @@ -1,5 +1,5 @@ import _ from 'lodash'; -import path from 'path'; +import path from 'node:path'; import { errors } from 'appium/driver'; import { fs, mkdirp, util, zip } from 'appium/support'; import { MODIFY_FS_FEATURE } from '../constants'; diff --git a/lib/commands/powershell.js b/lib/commands/powershell.js index 9b09c752..e6041314 100644 --- a/lib/commands/powershell.js +++ b/lib/commands/powershell.js @@ -1,7 +1,7 @@ import _ from 'lodash'; import { fs, tempDir } from 'appium/support'; import { exec } from 'teen_process'; -import path from 'path'; +import path from 'node:path'; import B from 'bluebird'; const EXECUTION_POLICY = { diff --git a/lib/installer.ts b/lib/installer.ts index 9a5fb3dc..e65059cd 100644 --- a/lib/installer.ts +++ b/lib/installer.ts @@ -1,6 +1,6 @@ import _ from 'lodash'; import { fs, tempDir } from 'appium/support'; -import path from 'path'; +import path from 'node:path'; import { exec } from 'teen_process'; import { log } from './logger'; import { queryRegistry, type RegEntry } from './registry'; diff --git a/lib/winappdriver.ts b/lib/winappdriver.ts index ea342b76..1ff034bc 100644 --- a/lib/winappdriver.ts +++ b/lib/winappdriver.ts @@ -6,7 +6,7 @@ import { JWProxy, errors } from 'appium/driver'; import { SubProcess } from 'teen_process'; import { getWADExecutablePath } from './installer'; import { waitForCondition } from 'asyncbox'; -import { execSync } from 'child_process'; +import { execSync } from 'node:child_process'; import { util } from 'appium/support'; import { findAPortNotInUse, checkPortStatus } from 'portscanner'; import { desiredCapConstraints } from './desired-caps'; @@ -364,5 +364,5 @@ export type WindowsDriverCaps = { createSessionTimeout?: number; prerun?: {command?: string; script?: string}; postrun?: {command?: string; script?: string}; -} +}; diff --git a/package.json b/package.json index 626450af..c236b59f 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "koffi": "^2.8.1" }, "devDependencies": { - "@appium/eslint-config-appium-ts": "^2.0.0-rc.1", + "@appium/eslint-config-appium-ts": "^3.0.0", "@appium/tsconfig": "^1.0.0-rc.1", "@appium/types": "^1.0.0-rc.1", "@semantic-release/changelog": "^6.0.1", diff --git a/test/e2e/commands/file-movement-e2e-specs.ts b/test/e2e/commands/file-movement-e2e-specs.ts index 9e924e9f..45d4769c 100644 --- a/test/e2e/commands/file-movement-e2e-specs.ts +++ b/test/e2e/commands/file-movement-e2e-specs.ts @@ -1,6 +1,6 @@ import { remote as wdio } from 'webdriverio'; import type { Browser } from 'webdriverio'; -import path from 'path'; +import path from 'node:path'; import { tempDir, fs } from 'appium/support'; import { isAdmin } from '../../../lib/installer'; import { buildWdIoOptions } from '../helpers';