From 7a20fb5ea847751258754663f7ef7c26c3389781 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Thu, 29 Aug 2024 12:25:07 +0200 Subject: [PATCH] fs -> node:fs --- packages/cli/src/copy-assets.ts | 10 +++++----- .../cli/test/copy-assets/assembleAarBundle.test.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/cli/src/copy-assets.ts b/packages/cli/src/copy-assets.ts index 7a0c43fa0..5df313313 100644 --- a/packages/cli/src/copy-assets.ts +++ b/packages/cli/src/copy-assets.ts @@ -9,11 +9,11 @@ import { import { findUp } from "@rnx-kit/tools-node/path"; import type { AllPlatforms } from "@rnx-kit/tools-react-native"; import { parsePlatform } from "@rnx-kit/tools-react-native"; -import type { SpawnSyncOptions } from "child_process"; -import { spawnSync } from "child_process"; -import * as nodefs from "fs"; -import * as os from "os"; -import * as path from "path"; +import type { SpawnSyncOptions } from "node:child_process"; +import { spawnSync } from "node:child_process"; +import * as nodefs from "node:fs"; +import * as os from "node:os"; +import * as path from "node:path"; import { ensureDir } from "./helpers/filesystem"; export type AndroidArchive = { diff --git a/packages/cli/test/copy-assets/assembleAarBundle.test.ts b/packages/cli/test/copy-assets/assembleAarBundle.test.ts index ab0c2bc53..74104a882 100644 --- a/packages/cli/test/copy-assets/assembleAarBundle.test.ts +++ b/packages/cli/test/copy-assets/assembleAarBundle.test.ts @@ -1,9 +1,9 @@ import { mockFS } from "@rnx-kit/tools-filesystem/mocks"; -import * as child_process from "child_process"; +import * as child_process from "node:child_process"; import * as path from "node:path"; import { assembleAarBundle } from "../../src/copy-assets"; -jest.mock("child_process"); +jest.mock("node:child_process"); jest.unmock("@rnx-kit/console"); describe("copy-assets/assembleAarBundle()", () => {