diff --git a/packages/api/cli/src/electron-forge-import.ts b/packages/api/cli/src/electron-forge-import.ts index 5acf0ae0c7..f22cefd892 100644 --- a/packages/api/cli/src/electron-forge-import.ts +++ b/packages/api/cli/src/electron-forge-import.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { api } from '@electron-forge/core'; import program from 'commander'; diff --git a/packages/api/cli/src/electron-forge-init.ts b/packages/api/cli/src/electron-forge-init.ts index 4acbc0b5a6..e68e76d015 100644 --- a/packages/api/cli/src/electron-forge-init.ts +++ b/packages/api/cli/src/electron-forge-init.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { api, InitOptions } from '@electron-forge/core'; import program from 'commander'; diff --git a/packages/api/cli/src/electron-forge-make.ts b/packages/api/cli/src/electron-forge-make.ts index 56cce2cbcc..0934ae65bb 100644 --- a/packages/api/cli/src/electron-forge-make.ts +++ b/packages/api/cli/src/electron-forge-make.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { api, MakeOptions } from '@electron-forge/core'; import { initializeProxy } from '@electron/get'; diff --git a/packages/api/cli/src/electron-forge-package.ts b/packages/api/cli/src/electron-forge-package.ts index f921493b1c..9c296a0bb7 100644 --- a/packages/api/cli/src/electron-forge-package.ts +++ b/packages/api/cli/src/electron-forge-package.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { api, PackageOptions } from '@electron-forge/core'; import { initializeProxy } from '@electron/get'; diff --git a/packages/api/cli/src/electron-forge-publish.ts b/packages/api/cli/src/electron-forge-publish.ts index ca808c0f12..06abfd5113 100644 --- a/packages/api/cli/src/electron-forge-publish.ts +++ b/packages/api/cli/src/electron-forge-publish.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { api, PublishOptions } from '@electron-forge/core'; import { initializeProxy } from '@electron/get'; diff --git a/packages/api/cli/src/electron-forge-start.ts b/packages/api/cli/src/electron-forge-start.ts index 21191d30f1..bdbeb25e0d 100644 --- a/packages/api/cli/src/electron-forge-start.ts +++ b/packages/api/cli/src/electron-forge-start.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { api, StartOptions } from '@electron-forge/core'; import { ElectronProcess } from '@electron-forge/shared-types'; diff --git a/packages/api/cli/src/util/check-system.ts b/packages/api/cli/src/util/check-system.ts index 8f2b49b92a..5ba4ce6e1b 100644 --- a/packages/api/cli/src/util/check-system.ts +++ b/packages/api/cli/src/util/check-system.ts @@ -1,6 +1,6 @@ -import { exec } from 'child_process'; -import os from 'os'; -import path from 'path'; +import { exec } from 'node:child_process'; +import os from 'node:os'; +import path from 'node:path'; import { utils as forgeUtils } from '@electron-forge/core'; import { ForgeListrTask } from '@electron-forge/shared-types'; diff --git a/packages/api/cli/src/util/working-dir.ts b/packages/api/cli/src/util/working-dir.ts index 754af76487..34f7db3df7 100644 --- a/packages/api/cli/src/util/working-dir.ts +++ b/packages/api/cli/src/util/working-dir.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import fs from 'fs-extra'; diff --git a/packages/api/cli/test/cli_spec.ts b/packages/api/cli/test/cli_spec.ts index 259bdd5dcf..11d17b051f 100644 --- a/packages/api/cli/test/cli_spec.ts +++ b/packages/api/cli/test/cli_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { spawn } from '@malept/cross-spawn-promise'; import chai, { expect } from 'chai'; diff --git a/packages/api/core/src/api/import.ts b/packages/api/core/src/api/import.ts index 0759560e64..c6e02d3ba5 100644 --- a/packages/api/core/src/api/import.ts +++ b/packages/api/core/src/api/import.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { safeYarnOrNpm, updateElectronDependency } from '@electron-forge/core-utils'; import { ForgeListrOptions, ForgeListrTaskFn } from '@electron-forge/shared-types'; diff --git a/packages/api/core/src/api/init-scripts/init-git.ts b/packages/api/core/src/api/init-scripts/init-git.ts index 4285b3691d..930de91430 100644 --- a/packages/api/core/src/api/init-scripts/init-git.ts +++ b/packages/api/core/src/api/init-scripts/init-git.ts @@ -1,4 +1,4 @@ -import { exec } from 'child_process'; +import { exec } from 'node:child_process'; import debug from 'debug'; diff --git a/packages/api/core/src/api/init-scripts/init-link.ts b/packages/api/core/src/api/init-scripts/init-link.ts index cd42418a27..af9151bb51 100644 --- a/packages/api/core/src/api/init-scripts/init-link.ts +++ b/packages/api/core/src/api/init-scripts/init-link.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { safeYarnOrNpm, yarnOrNpmSpawn } from '@electron-forge/core-utils'; import { ForgeListrTask } from '@electron-forge/shared-types'; diff --git a/packages/api/core/src/api/init-scripts/init-npm.ts b/packages/api/core/src/api/init-scripts/init-npm.ts index c7e34f796e..d9ec16e2f3 100644 --- a/packages/api/core/src/api/init-scripts/init-npm.ts +++ b/packages/api/core/src/api/init-scripts/init-npm.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { safeYarnOrNpm } from '@electron-forge/core-utils'; import { ForgeListrTask } from '@electron-forge/shared-types'; diff --git a/packages/api/core/src/api/init.ts b/packages/api/core/src/api/init.ts index 29c514215b..4e444ac3c5 100644 --- a/packages/api/core/src/api/init.ts +++ b/packages/api/core/src/api/init.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { safeYarnOrNpm } from '@electron-forge/core-utils'; import { ForgeTemplate } from '@electron-forge/shared-types'; diff --git a/packages/api/core/src/api/make.ts b/packages/api/core/src/api/make.ts index c03b43e5ad..887c1026e5 100644 --- a/packages/api/core/src/api/make.ts +++ b/packages/api/core/src/api/make.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { getElectronVersion } from '@electron-forge/core-utils'; import { MakerBase } from '@electron-forge/maker-base'; diff --git a/packages/api/core/src/api/package.ts b/packages/api/core/src/api/package.ts index 3d7e1ca9af..56be31abbb 100644 --- a/packages/api/core/src/api/package.ts +++ b/packages/api/core/src/api/package.ts @@ -1,5 +1,5 @@ -import path from 'path'; -import { promisify } from 'util'; +import path from 'node:path'; +import { promisify } from 'node:util'; import { getElectronVersion, listrCompatibleRebuildHook } from '@electron-forge/core-utils'; import { ForgeArch, ForgeListrTask, ForgeListrTaskDefinition, ForgeListrTaskFn, ForgePlatform, ResolvedForgeConfig } from '@electron-forge/shared-types'; diff --git a/packages/api/core/src/api/publish.ts b/packages/api/core/src/api/publish.ts index 0dc3ed2d23..fffe178714 100644 --- a/packages/api/core/src/api/publish.ts +++ b/packages/api/core/src/api/publish.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { PublisherBase } from '@electron-forge/publisher-base'; import { diff --git a/packages/api/core/src/api/start.ts b/packages/api/core/src/api/start.ts index be7380b3d7..c347c5d43b 100644 --- a/packages/api/core/src/api/start.ts +++ b/packages/api/core/src/api/start.ts @@ -1,4 +1,4 @@ -import { spawn, SpawnOptions } from 'child_process'; +import { spawn, SpawnOptions } from 'node:child_process'; import { getElectronVersion, listrCompatibleRebuildHook } from '@electron-forge/core-utils'; import { diff --git a/packages/api/core/src/util/download-to-file.ts b/packages/api/core/src/util/download-to-file.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/api/core/src/util/electron-executable.ts b/packages/api/core/src/util/electron-executable.ts index 3d37e0b2e3..f8e6d0e79b 100644 --- a/packages/api/core/src/util/electron-executable.ts +++ b/packages/api/core/src/util/electron-executable.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { getElectronModulePath } from '@electron-forge/core-utils'; import logSymbols from 'log-symbols'; diff --git a/packages/api/core/src/util/forge-config.ts b/packages/api/core/src/util/forge-config.ts index 39fb672252..8cdc60cbec 100644 --- a/packages/api/core/src/util/forge-config.ts +++ b/packages/api/core/src/util/forge-config.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ForgeConfig, ResolvedForgeConfig } from '@electron-forge/shared-types'; import fs from 'fs-extra'; diff --git a/packages/api/core/src/util/import-search.ts b/packages/api/core/src/util/import-search.ts index 1eb4a9ffa3..3a32266ecb 100644 --- a/packages/api/core/src/util/import-search.ts +++ b/packages/api/core/src/util/import-search.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import debug from 'debug'; diff --git a/packages/api/core/src/util/linux-installer.ts b/packages/api/core/src/util/linux-installer.ts index 4930ded1fd..52e0837fbe 100644 --- a/packages/api/core/src/util/linux-installer.ts +++ b/packages/api/core/src/util/linux-installer.ts @@ -1,5 +1,5 @@ -import { spawnSync } from 'child_process'; -import { promisify } from 'util'; +import { spawnSync } from 'node:child_process'; +import { promisify } from 'node:util'; import sudoPrompt from 'sudo-prompt'; diff --git a/packages/api/core/src/util/out-dir.ts b/packages/api/core/src/util/out-dir.ts index 09565724b7..7c7b126f47 100644 --- a/packages/api/core/src/util/out-dir.ts +++ b/packages/api/core/src/util/out-dir.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ResolvedForgeConfig } from '@electron-forge/shared-types'; diff --git a/packages/api/core/src/util/publish-state.ts b/packages/api/core/src/util/publish-state.ts index 9fe2f04b71..6cc5c3e477 100644 --- a/packages/api/core/src/util/publish-state.ts +++ b/packages/api/core/src/util/publish-state.ts @@ -1,5 +1,5 @@ -import crypto from 'crypto'; -import path from 'path'; +import crypto from 'node:crypto'; +import path from 'node:path'; import { ForgeMakeResult } from '@electron-forge/shared-types'; import fs from 'fs-extra'; diff --git a/packages/api/core/src/util/read-package-json.ts b/packages/api/core/src/util/read-package-json.ts index edd180e6bc..af6f5da363 100644 --- a/packages/api/core/src/util/read-package-json.ts +++ b/packages/api/core/src/util/read-package-json.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ResolvedForgeConfig } from '@electron-forge/shared-types'; import fs from 'fs-extra'; diff --git a/packages/api/core/src/util/resolve-dir.ts b/packages/api/core/src/util/resolve-dir.ts index cc77eda72a..7c9e4ba112 100644 --- a/packages/api/core/src/util/resolve-dir.ts +++ b/packages/api/core/src/util/resolve-dir.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { getElectronVersion } from '@electron-forge/core-utils'; import debug from 'debug'; diff --git a/packages/api/core/src/util/upgrade-forge-config.ts b/packages/api/core/src/util/upgrade-forge-config.ts index e73f373efd..b690ca3095 100644 --- a/packages/api/core/src/util/upgrade-forge-config.ts +++ b/packages/api/core/src/util/upgrade-forge-config.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ForgeConfig, ForgePlatform, IForgeResolvableMaker, IForgeResolvablePublisher } from '@electron-forge/shared-types'; diff --git a/packages/api/core/test/fast/electron-executable_spec.ts b/packages/api/core/test/fast/electron-executable_spec.ts index d891167225..036f9e5a39 100644 --- a/packages/api/core/test/fast/electron-executable_spec.ts +++ b/packages/api/core/test/fast/electron-executable_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import chai, { expect } from 'chai'; import { createSandbox } from 'sinon'; diff --git a/packages/api/core/test/fast/forge-config_spec.ts b/packages/api/core/test/fast/forge-config_spec.ts index ade49b3a97..cba79451a3 100644 --- a/packages/api/core/test/fast/forge-config_spec.ts +++ b/packages/api/core/test/fast/forge-config_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ResolvedForgeConfig } from '@electron-forge/shared-types'; import { expect } from 'chai'; diff --git a/packages/api/core/test/fast/make_spec.ts b/packages/api/core/test/fast/make_spec.ts index 47cca20bf7..0f86706569 100644 --- a/packages/api/core/test/fast/make_spec.ts +++ b/packages/api/core/test/fast/make_spec.ts @@ -1,4 +1,4 @@ -import * as path from 'path'; +import * as path from 'node:path'; import { ForgeMakeResult } from '@electron-forge/shared-types'; import { expect } from 'chai'; diff --git a/packages/api/core/test/fast/out-dir_spec.ts b/packages/api/core/test/fast/out-dir_spec.ts index 04ebab5648..59ee73be36 100644 --- a/packages/api/core/test/fast/out-dir_spec.ts +++ b/packages/api/core/test/fast/out-dir_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ResolvedForgeConfig } from '@electron-forge/shared-types'; import { expect } from 'chai'; diff --git a/packages/api/core/test/fast/publish_spec.ts b/packages/api/core/test/fast/publish_spec.ts index f5d5a43334..1ee5d55d98 100644 --- a/packages/api/core/test/fast/publish_spec.ts +++ b/packages/api/core/test/fast/publish_spec.ts @@ -1,5 +1,5 @@ -import os from 'os'; -import path from 'path'; +import os from 'node:os'; +import path from 'node:path'; import { ForgeConfigPublisher, IForgePublisher } from '@electron-forge/shared-types'; import { expect } from 'chai'; diff --git a/packages/api/core/test/fast/read-package-json_spec.ts b/packages/api/core/test/fast/read-package-json_spec.ts index 50ae2f1fe1..4d08fab575 100644 --- a/packages/api/core/test/fast/read-package-json_spec.ts +++ b/packages/api/core/test/fast/read-package-json_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ResolvedForgeConfig } from '@electron-forge/shared-types'; import { expect } from 'chai'; diff --git a/packages/api/core/test/fast/resolve-dir_spec.ts b/packages/api/core/test/fast/resolve-dir_spec.ts index f90b521be4..5ae8f3d2b7 100644 --- a/packages/api/core/test/fast/resolve-dir_spec.ts +++ b/packages/api/core/test/fast/resolve-dir_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { expect } from 'chai'; diff --git a/packages/api/core/test/fast/start_spec.ts b/packages/api/core/test/fast/start_spec.ts index 1fd42cfd12..aa88d58060 100644 --- a/packages/api/core/test/fast/start_spec.ts +++ b/packages/api/core/test/fast/start_spec.ts @@ -36,7 +36,7 @@ describe('start', () => { '../util/read-package-json': { readMutatedPackageJson: () => Promise.resolve(packageJSON), }, - child_process: { + 'node:child_process': { spawn: spawnStub, }, }).default; diff --git a/packages/api/core/test/fast/upgrade-forge-config_spec.ts b/packages/api/core/test/fast/upgrade-forge-config_spec.ts index 5e95123a64..ba197dcd98 100644 --- a/packages/api/core/test/fast/upgrade-forge-config_spec.ts +++ b/packages/api/core/test/fast/upgrade-forge-config_spec.ts @@ -1,4 +1,4 @@ -import assert from 'assert'; +import assert from 'node:assert'; import { ForgeConfig, IForgeResolvableMaker, IForgeResolvablePublisher } from '@electron-forge/shared-types'; import { expect } from 'chai'; diff --git a/packages/api/core/test/slow/api_spec_slow.ts b/packages/api/core/test/slow/api_spec_slow.ts index 95c627adaf..ae89b7b6f2 100644 --- a/packages/api/core/test/slow/api_spec_slow.ts +++ b/packages/api/core/test/slow/api_spec_slow.ts @@ -1,6 +1,6 @@ -import assert from 'assert'; -import { execSync } from 'child_process'; -import path from 'path'; +import assert from 'node:assert'; +import { execSync } from 'node:child_process'; +import path from 'node:path'; import { yarnOrNpmSpawn } from '@electron-forge/core-utils'; import { createDefaultCertificate } from '@electron-forge/maker-appx'; diff --git a/packages/api/core/test/slow/init_git_spec_slow.ts b/packages/api/core/test/slow/init_git_spec_slow.ts index c29e1938f7..1134e087f7 100644 --- a/packages/api/core/test/slow/init_git_spec_slow.ts +++ b/packages/api/core/test/slow/init_git_spec_slow.ts @@ -1,6 +1,6 @@ -import { execSync } from 'child_process'; -import os from 'os'; -import path from 'path'; +import { execSync } from 'node:child_process'; +import os from 'node:os'; +import path from 'node:path'; import { expect } from 'chai'; import fs from 'fs-extra'; diff --git a/packages/api/core/test/slow/install-dependencies_spec_slow.ts b/packages/api/core/test/slow/install-dependencies_spec_slow.ts index 8f5b71a99d..805e47d64f 100644 --- a/packages/api/core/test/slow/install-dependencies_spec_slow.ts +++ b/packages/api/core/test/slow/install-dependencies_spec_slow.ts @@ -1,5 +1,5 @@ -import os from 'os'; -import path from 'path'; +import os from 'node:os'; +import path from 'node:path'; import { expect } from 'chai'; import fs from 'fs-extra'; diff --git a/packages/maker/appx/src/MakerAppX.ts b/packages/maker/appx/src/MakerAppX.ts index 9b6a057775..ae09dd7dd3 100644 --- a/packages/maker/appx/src/MakerAppX.ts +++ b/packages/maker/appx/src/MakerAppX.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/maker/appx/test/MakerAppX_spec.ts b/packages/maker/appx/test/MakerAppX_spec.ts index 9375c82556..6cfddb62c0 100644 --- a/packages/maker/appx/test/MakerAppX_spec.ts +++ b/packages/maker/appx/test/MakerAppX_spec.ts @@ -1,5 +1,5 @@ -import { tmpdir } from 'os'; -import { join } from 'path'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; import { expect } from 'chai'; import fs from 'fs-extra'; diff --git a/packages/maker/base/src/Maker.ts b/packages/maker/base/src/Maker.ts index 672e88c73e..73e07c4559 100644 --- a/packages/maker/base/src/Maker.ts +++ b/packages/maker/base/src/Maker.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ForgeArch, ForgePlatform, IForgeMaker, ResolvedForgeConfig } from '@electron-forge/shared-types'; import fs from 'fs-extra'; diff --git a/packages/maker/base/test/ensure-output_spec.ts b/packages/maker/base/test/ensure-output_spec.ts index eab29e3cdd..0ee54c11f7 100644 --- a/packages/maker/base/test/ensure-output_spec.ts +++ b/packages/maker/base/test/ensure-output_spec.ts @@ -1,5 +1,5 @@ -import os from 'os'; -import path from 'path'; +import os from 'node:os'; +import path from 'node:path'; import { expect } from 'chai'; import fs from 'fs-extra'; diff --git a/packages/maker/deb/src/MakerDeb.ts b/packages/maker/deb/src/MakerDeb.ts index e1d38e010e..b92c11276d 100644 --- a/packages/maker/deb/src/MakerDeb.ts +++ b/packages/maker/deb/src/MakerDeb.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgeArch, ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/maker/deb/test/MakerDeb_spec.ts b/packages/maker/deb/test/MakerDeb_spec.ts index a184912bd6..e762844851 100644 --- a/packages/maker/deb/test/MakerDeb_spec.ts +++ b/packages/maker/deb/test/MakerDeb_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgeArch } from '@electron-forge/shared-types'; diff --git a/packages/maker/dmg/src/MakerDMG.ts b/packages/maker/dmg/src/MakerDMG.ts index 3c6c6b2d3f..60c8a15dcc 100644 --- a/packages/maker/dmg/src/MakerDMG.ts +++ b/packages/maker/dmg/src/MakerDMG.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/maker/dmg/test/MakerDMG_spec.ts b/packages/maker/dmg/test/MakerDMG_spec.ts index 698613ed59..5c8a07a53d 100644 --- a/packages/maker/dmg/test/MakerDMG_spec.ts +++ b/packages/maker/dmg/test/MakerDMG_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { expect } from 'chai'; diff --git a/packages/maker/flatpak/src/MakerFlatpak.ts b/packages/maker/flatpak/src/MakerFlatpak.ts index 0bd63ab5e0..76e66cb717 100644 --- a/packages/maker/flatpak/src/MakerFlatpak.ts +++ b/packages/maker/flatpak/src/MakerFlatpak.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgeArch, ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/maker/flatpak/test/MakerFlatpak_spec.ts b/packages/maker/flatpak/test/MakerFlatpak_spec.ts index cd88a9ef9e..bd056d089e 100644 --- a/packages/maker/flatpak/test/MakerFlatpak_spec.ts +++ b/packages/maker/flatpak/test/MakerFlatpak_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgeArch } from '@electron-forge/shared-types'; diff --git a/packages/maker/pkg/src/MakerPKG.ts b/packages/maker/pkg/src/MakerPKG.ts index da28845166..1754d0c5a0 100644 --- a/packages/maker/pkg/src/MakerPKG.ts +++ b/packages/maker/pkg/src/MakerPKG.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/maker/pkg/test/MakerPKG_spec.ts b/packages/maker/pkg/test/MakerPKG_spec.ts index 0d9efde9ce..da82fd293d 100644 --- a/packages/maker/pkg/test/MakerPKG_spec.ts +++ b/packages/maker/pkg/test/MakerPKG_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { expect } from 'chai'; diff --git a/packages/maker/rpm/src/MakerRpm.ts b/packages/maker/rpm/src/MakerRpm.ts index 47bb2f4774..c4b778711c 100644 --- a/packages/maker/rpm/src/MakerRpm.ts +++ b/packages/maker/rpm/src/MakerRpm.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgeArch, ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/maker/rpm/test/MakerRpm_spec.ts b/packages/maker/rpm/test/MakerRpm_spec.ts index dc8ecfa362..d6b73ea703 100644 --- a/packages/maker/rpm/test/MakerRpm_spec.ts +++ b/packages/maker/rpm/test/MakerRpm_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgeArch } from '@electron-forge/shared-types'; diff --git a/packages/maker/snap/src/MakerSnap.ts b/packages/maker/snap/src/MakerSnap.ts index 5e126dd144..3fe33bbe0c 100644 --- a/packages/maker/snap/src/MakerSnap.ts +++ b/packages/maker/snap/src/MakerSnap.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/maker/snap/test/MakerSnap_spec.ts b/packages/maker/snap/test/MakerSnap_spec.ts index 3a6baf723b..1329b30935 100644 --- a/packages/maker/snap/test/MakerSnap_spec.ts +++ b/packages/maker/snap/test/MakerSnap_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { expect } from 'chai'; diff --git a/packages/maker/squirrel/src/MakerSquirrel.ts b/packages/maker/squirrel/src/MakerSquirrel.ts index 60b954a945..d19de3a4d5 100644 --- a/packages/maker/squirrel/src/MakerSquirrel.ts +++ b/packages/maker/squirrel/src/MakerSquirrel.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/maker/wix/src/MakerWix.ts b/packages/maker/wix/src/MakerWix.ts index d0abea7fe3..715df6f114 100644 --- a/packages/maker/wix/src/MakerWix.ts +++ b/packages/maker/wix/src/MakerWix.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/maker/zip/src/MakerZIP.ts b/packages/maker/zip/src/MakerZIP.ts index 0772ebdece..91433fd044 100644 --- a/packages/maker/zip/src/MakerZIP.ts +++ b/packages/maker/zip/src/MakerZIP.ts @@ -1,5 +1,5 @@ -import path from 'path'; -import { promisify } from 'util'; +import path from 'node:path'; +import { promisify } from 'node:util'; import { MakerBase, MakerOptions } from '@electron-forge/maker-base'; import { ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/maker/zip/test/MakerZip_spec.ts b/packages/maker/zip/test/MakerZip_spec.ts index 17f8073e38..ed68e22757 100644 --- a/packages/maker/zip/test/MakerZip_spec.ts +++ b/packages/maker/zip/test/MakerZip_spec.ts @@ -1,5 +1,5 @@ -import os from 'os'; -import path from 'path'; +import os from 'node:os'; +import path from 'node:path'; import { expect } from 'chai'; import fs from 'fs-extra'; diff --git a/packages/plugin/fuses/src/FusesPlugin.ts b/packages/plugin/fuses/src/FusesPlugin.ts index 8eec47c35e..557de25b76 100644 --- a/packages/plugin/fuses/src/FusesPlugin.ts +++ b/packages/plugin/fuses/src/FusesPlugin.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { namedHookWithTaskFn, PluginBase } from '@electron-forge/plugin-base'; import { ForgeMultiHookMap, ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/plugin/fuses/src/util/getElectronExecutablePath.ts b/packages/plugin/fuses/src/util/getElectronExecutablePath.ts index 1757f93a92..fcf9f0cabf 100644 --- a/packages/plugin/fuses/src/util/getElectronExecutablePath.ts +++ b/packages/plugin/fuses/src/util/getElectronExecutablePath.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/plugin/fuses/test/FusesPlugin_spec_slow.ts b/packages/plugin/fuses/test/FusesPlugin_spec_slow.ts index 2bd6905e58..15622cecc9 100644 --- a/packages/plugin/fuses/test/FusesPlugin_spec_slow.ts +++ b/packages/plugin/fuses/test/FusesPlugin_spec_slow.ts @@ -1,5 +1,5 @@ -import fs from 'fs'; -import path from 'path'; +import fs from 'node:fs'; +import path from 'node:path'; import { CrossSpawnOptions, spawn } from '@malept/cross-spawn-promise'; import { expect } from 'chai'; diff --git a/packages/plugin/local-electron/test/LocalElectronPlugin_spec.ts b/packages/plugin/local-electron/test/LocalElectronPlugin_spec.ts index ea1f90e2df..af08e1cd4b 100644 --- a/packages/plugin/local-electron/test/LocalElectronPlugin_spec.ts +++ b/packages/plugin/local-electron/test/LocalElectronPlugin_spec.ts @@ -1,5 +1,5 @@ -import os from 'os'; -import path from 'path'; +import os from 'node:os'; +import path from 'node:path'; import { ResolvedForgeConfig } from '@electron-forge/shared-types'; import { expect } from 'chai'; diff --git a/packages/plugin/vite/test/VitePlugin_spec.ts b/packages/plugin/vite/test/VitePlugin_spec.ts index c0119fe652..af6ef4f5d0 100644 --- a/packages/plugin/vite/test/VitePlugin_spec.ts +++ b/packages/plugin/vite/test/VitePlugin_spec.ts @@ -1,5 +1,5 @@ -import * as os from 'os'; -import * as path from 'path'; +import * as os from 'node:os'; +import * as path from 'node:path'; import { ResolvedForgeConfig } from '@electron-forge/shared-types'; import { IgnoreFunction } from '@electron/packager'; diff --git a/packages/plugin/webpack/src/WebpackConfig.ts b/packages/plugin/webpack/src/WebpackConfig.ts index 6af6672e33..35a72ac255 100644 --- a/packages/plugin/webpack/src/WebpackConfig.ts +++ b/packages/plugin/webpack/src/WebpackConfig.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import debug from 'debug'; import HtmlWebpackPlugin from 'html-webpack-plugin'; diff --git a/packages/plugin/webpack/src/WebpackPlugin.ts b/packages/plugin/webpack/src/WebpackPlugin.ts index c2381abf21..b2888f07da 100644 --- a/packages/plugin/webpack/src/WebpackPlugin.ts +++ b/packages/plugin/webpack/src/WebpackPlugin.ts @@ -1,6 +1,6 @@ -import crypto from 'crypto'; -import http from 'http'; -import path from 'path'; +import crypto from 'node:crypto'; +import http from 'node:http'; +import path from 'node:path'; import { pipeline } from 'stream/promises'; import { getElectronVersion, listrCompatibleRebuildHook } from '@electron-forge/core-utils'; diff --git a/packages/plugin/webpack/test/AssetRelocatorPatch_spec.ts b/packages/plugin/webpack/test/AssetRelocatorPatch_spec.ts index f4679b001b..bb11e37168 100644 --- a/packages/plugin/webpack/test/AssetRelocatorPatch_spec.ts +++ b/packages/plugin/webpack/test/AssetRelocatorPatch_spec.ts @@ -1,5 +1,5 @@ -import http from 'http'; -import path from 'path'; +import http from 'node:http'; +import path from 'node:path'; import { spawn } from '@malept/cross-spawn-promise'; import { expect } from 'chai'; diff --git a/packages/plugin/webpack/test/WebpackConfig_spec.ts b/packages/plugin/webpack/test/WebpackConfig_spec.ts index 8e691d13e3..fed43ffae5 100644 --- a/packages/plugin/webpack/test/WebpackConfig_spec.ts +++ b/packages/plugin/webpack/test/WebpackConfig_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { expect } from 'chai'; import { Configuration, Entry } from 'webpack'; diff --git a/packages/plugin/webpack/test/WebpackPlugin_spec.ts b/packages/plugin/webpack/test/WebpackPlugin_spec.ts index 54a2ea6a13..20d4557004 100644 --- a/packages/plugin/webpack/test/WebpackPlugin_spec.ts +++ b/packages/plugin/webpack/test/WebpackPlugin_spec.ts @@ -1,5 +1,5 @@ -import * as os from 'os'; -import * as path from 'path'; +import * as os from 'node:os'; +import * as path from 'node:path'; import { ResolvedForgeConfig } from '@electron-forge/shared-types'; import { IgnoreFunction } from '@electron/packager'; diff --git a/packages/publisher/base-static/src/PublisherStatic.ts b/packages/publisher/base-static/src/PublisherStatic.ts index 6bf8d452c9..4dfc247682 100644 --- a/packages/publisher/base-static/src/PublisherStatic.ts +++ b/packages/publisher/base-static/src/PublisherStatic.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { PublisherBase, PublisherOptions } from '@electron-forge/publisher-base'; import { ForgeArch, ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/publisher/bitbucket/src/PublisherBitbucket.ts b/packages/publisher/bitbucket/src/PublisherBitbucket.ts index 61d3ba88a8..522eccaf43 100644 --- a/packages/publisher/bitbucket/src/PublisherBitbucket.ts +++ b/packages/publisher/bitbucket/src/PublisherBitbucket.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { PublisherBase, PublisherOptions } from '@electron-forge/publisher-base'; import FormData from 'form-data'; diff --git a/packages/publisher/electron-release-server/src/PublisherERS.ts b/packages/publisher/electron-release-server/src/PublisherERS.ts index 20495f41bc..d88e49325d 100644 --- a/packages/publisher/electron-release-server/src/PublisherERS.ts +++ b/packages/publisher/electron-release-server/src/PublisherERS.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { PublisherBase, PublisherOptions } from '@electron-forge/publisher-base'; import { ForgeArch, ForgePlatform } from '@electron-forge/shared-types'; diff --git a/packages/publisher/github/src/util/github.ts b/packages/publisher/github/src/util/github.ts index f632dc08d8..2b837314ce 100644 --- a/packages/publisher/github/src/util/github.ts +++ b/packages/publisher/github/src/util/github.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { OctokitOptions } from '@octokit/core/dist-types/types.d'; import { retry } from '@octokit/plugin-retry'; diff --git a/packages/publisher/nucleus/src/PublisherNucleus.ts b/packages/publisher/nucleus/src/PublisherNucleus.ts index e0107884ad..fca6fbce07 100644 --- a/packages/publisher/nucleus/src/PublisherNucleus.ts +++ b/packages/publisher/nucleus/src/PublisherNucleus.ts @@ -1,5 +1,5 @@ -import fs from 'fs'; -import path from 'path'; +import fs from 'node:fs'; +import path from 'node:path'; import { PublisherBase, PublisherOptions } from '@electron-forge/publisher-base'; import debug from 'debug'; diff --git a/packages/publisher/s3/src/PublisherS3.ts b/packages/publisher/s3/src/PublisherS3.ts index d76764866f..d5994538ad 100644 --- a/packages/publisher/s3/src/PublisherS3.ts +++ b/packages/publisher/s3/src/PublisherS3.ts @@ -1,5 +1,5 @@ -import fs from 'fs'; -import path from 'path'; +import fs from 'node:fs'; +import path from 'node:path'; import { PutObjectCommandInput, S3Client } from '@aws-sdk/client-s3'; import { Progress, Upload } from '@aws-sdk/lib-storage'; diff --git a/packages/publisher/snapcraft/src/PublisherSnapcraft.ts b/packages/publisher/snapcraft/src/PublisherSnapcraft.ts index 8ce42ea413..d77574f160 100644 --- a/packages/publisher/snapcraft/src/PublisherSnapcraft.ts +++ b/packages/publisher/snapcraft/src/PublisherSnapcraft.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { PublisherBase, PublisherOptions } from '@electron-forge/publisher-base'; import fs from 'fs-extra'; diff --git a/packages/template/base/src/BaseTemplate.ts b/packages/template/base/src/BaseTemplate.ts index dd4818e86c..40275a6137 100644 --- a/packages/template/base/src/BaseTemplate.ts +++ b/packages/template/base/src/BaseTemplate.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ForgeListrTaskDefinition, ForgeTemplate, InitTemplateOptions } from '@electron-forge/shared-types'; import debug from 'debug'; diff --git a/packages/template/vite-typescript/src/ViteTypeScriptTemplate.ts b/packages/template/vite-typescript/src/ViteTypeScriptTemplate.ts index 78fe789f71..dd163cab02 100644 --- a/packages/template/vite-typescript/src/ViteTypeScriptTemplate.ts +++ b/packages/template/vite-typescript/src/ViteTypeScriptTemplate.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ForgeListrTaskDefinition, InitTemplateOptions } from '@electron-forge/shared-types'; import { BaseTemplate } from '@electron-forge/template-base'; diff --git a/packages/template/vite-typescript/tmpl/main.ts b/packages/template/vite-typescript/tmpl/main.ts index 87d1373816..352f594c0b 100644 --- a/packages/template/vite-typescript/tmpl/main.ts +++ b/packages/template/vite-typescript/tmpl/main.ts @@ -1,5 +1,5 @@ import { app, BrowserWindow } from 'electron'; -import path from 'path'; +import path from 'node:path'; import started from 'electron-squirrel-startup'; // Handle creating/removing shortcuts on Windows when installing/uninstalling. diff --git a/packages/template/vite/src/ViteTemplate.ts b/packages/template/vite/src/ViteTemplate.ts index 45c64c586c..660fa38add 100644 --- a/packages/template/vite/src/ViteTemplate.ts +++ b/packages/template/vite/src/ViteTemplate.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ForgeListrTaskDefinition, InitTemplateOptions } from '@electron-forge/shared-types'; import { BaseTemplate } from '@electron-forge/template-base'; diff --git a/packages/template/vite/test/ViteTemplate_spec.ts b/packages/template/vite/test/ViteTemplate_spec.ts index 4c82f58137..0b64d14f1b 100644 --- a/packages/template/vite/test/ViteTemplate_spec.ts +++ b/packages/template/vite/test/ViteTemplate_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import * as testUtils from '@electron-forge/test-utils'; import { expect } from 'chai'; diff --git a/packages/template/webpack-typescript/src/WebpackTypeScriptTemplate.ts b/packages/template/webpack-typescript/src/WebpackTypeScriptTemplate.ts index 749ac3ec8f..7d2e61881c 100644 --- a/packages/template/webpack-typescript/src/WebpackTypeScriptTemplate.ts +++ b/packages/template/webpack-typescript/src/WebpackTypeScriptTemplate.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ForgeListrTaskDefinition, InitTemplateOptions } from '@electron-forge/shared-types'; import { BaseTemplate } from '@electron-forge/template-base'; diff --git a/packages/template/webpack-typescript/test/WebpackTypeScript_spec_slow.ts b/packages/template/webpack-typescript/test/WebpackTypeScript_spec_slow.ts index bb78fae16c..6704ffd38c 100644 --- a/packages/template/webpack-typescript/test/WebpackTypeScript_spec_slow.ts +++ b/packages/template/webpack-typescript/test/WebpackTypeScript_spec_slow.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { yarnOrNpmSpawn } from '@electron-forge/core-utils'; import * as testUtils from '@electron-forge/test-utils'; diff --git a/packages/template/webpack/src/WebpackTemplate.ts b/packages/template/webpack/src/WebpackTemplate.ts index bde2bb63c5..d9ac8d2aee 100644 --- a/packages/template/webpack/src/WebpackTemplate.ts +++ b/packages/template/webpack/src/WebpackTemplate.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import { ForgeListrTaskDefinition, InitTemplateOptions } from '@electron-forge/shared-types'; import { BaseTemplate } from '@electron-forge/template-base'; diff --git a/packages/template/webpack/test/WebpackTemplate_spec.ts b/packages/template/webpack/test/WebpackTemplate_spec.ts index 2f182b66f3..be13672374 100644 --- a/packages/template/webpack/test/WebpackTemplate_spec.ts +++ b/packages/template/webpack/test/WebpackTemplate_spec.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import * as testUtils from '@electron-forge/test-utils'; import { expect } from 'chai'; diff --git a/packages/utils/core-utils/src/electron-version.ts b/packages/utils/core-utils/src/electron-version.ts index 16caf0aac6..871b7fa1ab 100644 --- a/packages/utils/core-utils/src/electron-version.ts +++ b/packages/utils/core-utils/src/electron-version.ts @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import debug from 'debug'; import findUp from 'find-up'; diff --git a/packages/utils/core-utils/src/rebuild.ts b/packages/utils/core-utils/src/rebuild.ts index 853063d1b8..4a85bdb1a4 100644 --- a/packages/utils/core-utils/src/rebuild.ts +++ b/packages/utils/core-utils/src/rebuild.ts @@ -1,5 +1,5 @@ -import * as cp from 'child_process'; -import * as path from 'path'; +import * as cp from 'node:child_process'; +import * as path from 'node:path'; import { ForgeArch, ForgeListrTask, ForgePlatform } from '@electron-forge/shared-types'; import { RebuildOptions } from '@electron/rebuild'; diff --git a/packages/utils/core-utils/test/electron-version_spec.ts b/packages/utils/core-utils/test/electron-version_spec.ts index 931715d580..a664cc5aff 100644 --- a/packages/utils/core-utils/test/electron-version_spec.ts +++ b/packages/utils/core-utils/test/electron-version_spec.ts @@ -1,5 +1,5 @@ -import os from 'os'; -import path from 'path'; +import os from 'node:os'; +import path from 'node:path'; import { expect } from 'chai'; import fs from 'fs-extra'; diff --git a/packages/utils/test-utils/src/index.ts b/packages/utils/test-utils/src/index.ts index df03c252d4..aa77d74857 100644 --- a/packages/utils/test-utils/src/index.ts +++ b/packages/utils/test-utils/src/index.ts @@ -1,5 +1,5 @@ -import os from 'os'; -import path from 'path'; +import os from 'node:os'; +import path from 'node:path'; import { ExitError, spawn } from '@malept/cross-spawn-promise'; import { expect } from 'chai'; diff --git a/packages/utils/tracer/src/index.ts b/packages/utils/tracer/src/index.ts index 78360bea70..2a27c40bf9 100644 --- a/packages/utils/tracer/src/index.ts +++ b/packages/utils/tracer/src/index.ts @@ -1,4 +1,4 @@ -import * as fs from 'fs'; +import * as fs from 'node:fs'; import { Fields, Tracer } from 'chrome-trace-event'; diff --git a/packages/utils/types/src/index.ts b/packages/utils/types/src/index.ts index 6c1f36db17..50fa3b29b7 100644 --- a/packages/utils/types/src/index.ts +++ b/packages/utils/types/src/index.ts @@ -1,4 +1,4 @@ -import { ChildProcess } from 'child_process'; +import { ChildProcess } from 'node:child_process'; import { autoTrace } from '@electron-forge/tracer'; import { ArchOption, Options as ElectronPackagerOptions, TargetPlatform } from '@electron/packager'; diff --git a/packages/utils/web-multi-logger/src/Logger.ts b/packages/utils/web-multi-logger/src/Logger.ts index f9633e2759..cc215312da 100644 --- a/packages/utils/web-multi-logger/src/Logger.ts +++ b/packages/utils/web-multi-logger/src/Logger.ts @@ -1,5 +1,5 @@ -import http from 'http'; -import path from 'path'; +import http from 'node:http'; +import path from 'node:path'; import express from 'express'; import ews from 'express-ws'; diff --git a/tools/fix-deps.ts b/tools/fix-deps.ts index 984e565c5a..6e2e9040df 100644 --- a/tools/fix-deps.ts +++ b/tools/fix-deps.ts @@ -1,4 +1,4 @@ -import * as path from 'path'; +import * as path from 'node:path'; import * as fs from 'fs-extra'; diff --git a/tools/gen-ts-glue.ts b/tools/gen-ts-glue.ts index 0e160a01f0..53207858ab 100644 --- a/tools/gen-ts-glue.ts +++ b/tools/gen-ts-glue.ts @@ -12,8 +12,8 @@ * file (like index.ts) to redirect to the right file. */ -import { promises as fs } from 'fs'; -import path from 'path'; +import { promises as fs } from 'node:fs'; +import path from 'node:path'; import { getPackageInfo } from './utils'; diff --git a/tools/gen-tsconfigs.ts b/tools/gen-tsconfigs.ts index 6bc7325db6..46d397ae9d 100644 --- a/tools/gen-tsconfigs.ts +++ b/tools/gen-tsconfigs.ts @@ -1,5 +1,5 @@ -import { promises as fs } from 'fs'; -import * as path from 'path'; +import { promises as fs } from 'node:fs'; +import * as path from 'node:path'; import { getPackageInfo } from './utils'; diff --git a/tools/position-docs.ts b/tools/position-docs.ts index faf9d6c8cb..1ad1dfc497 100644 --- a/tools/position-docs.ts +++ b/tools/position-docs.ts @@ -1,4 +1,4 @@ -import * as path from 'path'; +import * as path from 'node:path'; import glob from 'fast-glob'; import * as fs from 'fs-extra'; diff --git a/tools/sync-readmes.ts b/tools/sync-readmes.ts index 46a0a67b7e..b0c9397163 100644 --- a/tools/sync-readmes.ts +++ b/tools/sync-readmes.ts @@ -1,4 +1,4 @@ -import * as path from 'path'; +import * as path from 'node:path'; import * as fs from 'fs-extra'; import { Listr } from 'listr2'; diff --git a/tools/test-dist.ts b/tools/test-dist.ts index d76aa80cb1..4751525b3d 100644 --- a/tools/test-dist.ts +++ b/tools/test-dist.ts @@ -1,4 +1,4 @@ -import * as path from 'path'; +import * as path from 'node:path'; import chalk from 'chalk'; import * as fs from 'fs-extra'; diff --git a/tools/update-node-version.ts b/tools/update-node-version.ts index 8ecb38c52c..cb5dfd16fc 100644 --- a/tools/update-node-version.ts +++ b/tools/update-node-version.ts @@ -1,6 +1,6 @@ #!/usr/bin/env ts-node -import path from 'path'; +import path from 'node:path'; import { readJsonSync, writeJsonSync } from 'fs-extra'; diff --git a/tools/utils.ts b/tools/utils.ts index 849a2299e8..55df642b1e 100644 --- a/tools/utils.ts +++ b/tools/utils.ts @@ -1,4 +1,4 @@ -import * as path from 'path'; +import * as path from 'node:path'; import * as fs from 'fs-extra'; diff --git a/typings/sudo-prompt/index.d.ts b/typings/sudo-prompt/index.d.ts index 4e159b0b87..1917dbf542 100644 --- a/typings/sudo-prompt/index.d.ts +++ b/typings/sudo-prompt/index.d.ts @@ -1,4 +1,4 @@ -import { PromiseWithChild } from 'child_process'; +import { PromiseWithChild } from 'node:child_process'; // Copied from https://github.com/jorangreef/sudo-prompt/pull/124 // TODO: Remove this if/when that PR gets merged/released