From 481f7431904c2060d2dde86835293a10b104aedb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 12:01:53 +0000 Subject: [PATCH 1/3] chore(deps): update dependency @typescript/native-preview to v7.0.0-dev.20260320.1 --- yarn.lock | 64 +++++++++++++++++++++++++++---------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/yarn.lock b/yarn.lock index 62d650952..110f35b50 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4650,66 +4650,66 @@ __metadata: languageName: node linkType: hard -"@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260316.1": - version: 7.0.0-dev.20260316.1 - resolution: "@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260316.1" +"@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260327.2": + version: 7.0.0-dev.20260327.2 + resolution: "@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260327.2" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260316.1": - version: 7.0.0-dev.20260316.1 - resolution: "@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260316.1" +"@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260327.2": + version: 7.0.0-dev.20260327.2 + resolution: "@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260327.2" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260316.1": - version: 7.0.0-dev.20260316.1 - resolution: "@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260316.1" +"@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260327.2": + version: 7.0.0-dev.20260327.2 + resolution: "@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260327.2" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260316.1": - version: 7.0.0-dev.20260316.1 - resolution: "@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260316.1" +"@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260327.2": + version: 7.0.0-dev.20260327.2 + resolution: "@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260327.2" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260316.1": - version: 7.0.0-dev.20260316.1 - resolution: "@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260316.1" +"@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260327.2": + version: 7.0.0-dev.20260327.2 + resolution: "@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260327.2" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260316.1": - version: 7.0.0-dev.20260316.1 - resolution: "@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260316.1" +"@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260327.2": + version: 7.0.0-dev.20260327.2 + resolution: "@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260327.2" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260316.1": - version: 7.0.0-dev.20260316.1 - resolution: "@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260316.1" +"@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260327.2": + version: 7.0.0-dev.20260327.2 + resolution: "@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260327.2" conditions: os=win32 & cpu=x64 languageName: node linkType: hard "@typescript/native-preview@npm:^7.0.0-0": - version: 7.0.0-dev.20260316.1 - resolution: "@typescript/native-preview@npm:7.0.0-dev.20260316.1" - dependencies: - "@typescript/native-preview-darwin-arm64": "npm:7.0.0-dev.20260316.1" - "@typescript/native-preview-darwin-x64": "npm:7.0.0-dev.20260316.1" - "@typescript/native-preview-linux-arm": "npm:7.0.0-dev.20260316.1" - "@typescript/native-preview-linux-arm64": "npm:7.0.0-dev.20260316.1" - "@typescript/native-preview-linux-x64": "npm:7.0.0-dev.20260316.1" - "@typescript/native-preview-win32-arm64": "npm:7.0.0-dev.20260316.1" - "@typescript/native-preview-win32-x64": "npm:7.0.0-dev.20260316.1" + version: 7.0.0-dev.20260327.2 + resolution: "@typescript/native-preview@npm:7.0.0-dev.20260327.2" + dependencies: + "@typescript/native-preview-darwin-arm64": "npm:7.0.0-dev.20260327.2" + "@typescript/native-preview-darwin-x64": "npm:7.0.0-dev.20260327.2" + "@typescript/native-preview-linux-arm": "npm:7.0.0-dev.20260327.2" + "@typescript/native-preview-linux-arm64": "npm:7.0.0-dev.20260327.2" + "@typescript/native-preview-linux-x64": "npm:7.0.0-dev.20260327.2" + "@typescript/native-preview-win32-arm64": "npm:7.0.0-dev.20260327.2" + "@typescript/native-preview-win32-x64": "npm:7.0.0-dev.20260327.2" dependenciesMeta: "@typescript/native-preview-darwin-arm64": optional: true @@ -4727,7 +4727,7 @@ __metadata: optional: true bin: tsgo: bin/tsgo.js - checksum: 10c0/7d880d350e2b66c4cc9496e458d25519e4165e0531c81f44c08081bb2f7bc617c9d28816920750a999d0228a0253a27a4f8de8a24779501589f6beaf78d3aaf0 + checksum: 10c0/9eb94b6f3ceb7e41575096eae1f05d16385cd9486be1e9a6a6765eaf554af233687131c99744201d4c006ae089b8be106cc72bc963247d837fc25f0b1eec1a89 languageName: node linkType: hard From b7bd34d67788f616ba9fdedfa9435ed3bb03f382 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Fri, 27 Mar 2026 13:54:14 +0100 Subject: [PATCH 2/3] fixup! chore(deps): update dependency @typescript/native-preview to v7.0.0-dev.20260320.1 --- packages/app/package.json | 4 ++-- packages/app/scripts/embed-manifest/validate.mjs | 2 +- packages/app/scripts/utils/parseargs.mjs | 4 ++-- .../{android-manifest.test.ts => android-manifest.test.mts} | 0 .../test/android/{autolink.test.ts => autolink.test.mts} | 0 .../{gradle-wrapper.test.ts => gradle-wrapper.test.mts} | 0 packages/app/test/android/{gradle.ts => gradle.mts} | 2 +- .../{test-app-util.test.ts => test-app-util.test.mts} | 2 +- ...nfigure-projects.test.ts => configure-projects.test.mts} | 0 .../test/configure/{console.test.ts => console.test.mts} | 0 .../{gatherConfig.test.ts => gatherConfig.test.mts} | 4 ++-- .../configure/{getAppName.test.ts => getAppName.test.mts} | 2 +- .../configure/{getConfig.test.ts => getConfig.test.mts} | 4 ++-- ...tPlatformPackage.test.ts => getPlatformPackage.test.mts} | 0 .../{isDestructive.test.ts => isDestructive.test.mts} | 2 +- packages/app/test/configure/{join.test.ts => join.test.mts} | 0 .../configure/{mergeConfig.test.ts => mergeConfig.test.mts} | 0 .../app/test/configure/{mockParams.ts => mockParams.mts} | 0 ...reactNativeConfig.test.ts => reactNativeConfig.test.mts} | 2 +- .../{removeAllFiles.test.ts => removeAllFiles.test.mts} | 2 +- ...ckageManifest.test.ts => updatePackageManifest.test.mts} | 2 +- .../{writeAllFiles.test.ts => writeAllFiles.test.mts} | 2 +- .../app/test/embed-manifest/{cpp.test.ts => cpp.test.mts} | 2 +- .../app/test/embed-manifest/{fixtures.ts => fixtures.mts} | 0 .../test/embed-manifest/{kotlin.test.ts => kotlin.test.mts} | 2 +- .../test/embed-manifest/{swift.test.ts => swift.test.mts} | 2 +- .../embed-manifest/{validate.test.ts => validate.test.mts} | 2 +- packages/app/test/{fs.mock.ts => fs.mock.mts} | 0 packages/app/test/{helpers.test.ts => helpers.test.mts} | 0 packages/app/test/ios/{app.test.ts => app.test.mts} | 2 +- .../ios/{assetsCatalog.test.ts => assetsCatalog.test.mts} | 2 +- .../ios/{entitlements.test.ts => entitlements.test.mts} | 2 +- .../app/test/ios/{features.test.ts => features.test.mts} | 0 .../app/test/ios/{infoPlist.test.ts => infoPlist.test.mts} | 2 +- .../ios/{localizations.test.ts => localizations.test.mts} | 2 +- .../{privacyManifest.test.ts => privacyManifest.test.mts} | 2 +- packages/app/test/ios/{xcode.test.ts => xcode.test.mts} | 2 +- packages/app/test/{pack.test.ts => pack.test.mts} | 0 packages/app/test/{template.ts => template.mts} | 0 .../{copyAndReplace.test.ts => copyAndReplace.test.mts} | 2 +- .../{findUserProjects.test.ts => findUserProjects.test.mts} | 0 .../{generateSolution.test.ts => generateSolution.test.mts} | 2 +- ...tBundleResources.test.ts => getBundleResources.test.mts} | 2 +- ...ldProperties.test.ts => parseMSBuildProperties.test.mts} | 0 .../{parseResources.test.ts => parseResources.test.mts} | 2 +- .../{replaceContent.test.ts => replaceContent.test.mts} | 0 packages/app/tsconfig.json | 6 ++---- yarn.lock | 4 ++-- 48 files changed, 36 insertions(+), 38 deletions(-) rename packages/app/test/android/{android-manifest.test.ts => android-manifest.test.mts} (100%) rename packages/app/test/android/{autolink.test.ts => autolink.test.mts} (100%) rename packages/app/test/android/{gradle-wrapper.test.ts => gradle-wrapper.test.mts} (100%) rename packages/app/test/android/{gradle.ts => gradle.mts} (98%) rename packages/app/test/android/{test-app-util.test.ts => test-app-util.test.mts} (99%) rename packages/app/test/{configure-projects.test.ts => configure-projects.test.mts} (100%) rename packages/app/test/configure/{console.test.ts => console.test.mts} (100%) rename packages/app/test/configure/{gatherConfig.test.ts => gatherConfig.test.mts} (99%) rename packages/app/test/configure/{getAppName.test.ts => getAppName.test.mts} (96%) rename packages/app/test/configure/{getConfig.test.ts => getConfig.test.mts} (97%) rename packages/app/test/configure/{getPlatformPackage.test.ts => getPlatformPackage.test.mts} (100%) rename packages/app/test/configure/{isDestructive.test.ts => isDestructive.test.mts} (98%) rename packages/app/test/configure/{join.test.ts => join.test.mts} (100%) rename packages/app/test/configure/{mergeConfig.test.ts => mergeConfig.test.mts} (100%) rename packages/app/test/configure/{mockParams.ts => mockParams.mts} (100%) rename packages/app/test/configure/{reactNativeConfig.test.ts => reactNativeConfig.test.mts} (95%) rename packages/app/test/configure/{removeAllFiles.test.ts => removeAllFiles.test.mts} (95%) rename packages/app/test/configure/{updatePackageManifest.test.ts => updatePackageManifest.test.mts} (97%) rename packages/app/test/configure/{writeAllFiles.test.ts => writeAllFiles.test.mts} (97%) rename packages/app/test/embed-manifest/{cpp.test.ts => cpp.test.mts} (99%) rename packages/app/test/embed-manifest/{fixtures.ts => fixtures.mts} (100%) rename packages/app/test/embed-manifest/{kotlin.test.ts => kotlin.test.mts} (99%) rename packages/app/test/embed-manifest/{swift.test.ts => swift.test.mts} (99%) rename packages/app/test/embed-manifest/{validate.test.ts => validate.test.mts} (99%) rename packages/app/test/{fs.mock.ts => fs.mock.mts} (100%) rename packages/app/test/{helpers.test.ts => helpers.test.mts} (100%) rename packages/app/test/ios/{app.test.ts => app.test.mts} (99%) rename packages/app/test/ios/{assetsCatalog.test.ts => assetsCatalog.test.mts} (99%) rename packages/app/test/ios/{entitlements.test.ts => entitlements.test.mts} (98%) rename packages/app/test/ios/{features.test.ts => features.test.mts} (100%) rename packages/app/test/ios/{infoPlist.test.ts => infoPlist.test.mts} (99%) rename packages/app/test/ios/{localizations.test.ts => localizations.test.mts} (97%) rename packages/app/test/ios/{privacyManifest.test.ts => privacyManifest.test.mts} (98%) rename packages/app/test/ios/{xcode.test.ts => xcode.test.mts} (99%) rename packages/app/test/{pack.test.ts => pack.test.mts} (100%) rename packages/app/test/{template.ts => template.mts} (100%) rename packages/app/test/windows/{copyAndReplace.test.ts => copyAndReplace.test.mts} (97%) rename packages/app/test/windows/{findUserProjects.test.ts => findUserProjects.test.mts} (100%) rename packages/app/test/windows/{generateSolution.test.ts => generateSolution.test.mts} (96%) rename packages/app/test/windows/{getBundleResources.test.ts => getBundleResources.test.mts} (98%) rename packages/app/test/windows/{parseMSBuildProperties.test.ts => parseMSBuildProperties.test.mts} (100%) rename packages/app/test/windows/{parseResources.test.ts => parseResources.test.mts} (98%) rename packages/app/test/windows/{replaceContent.test.ts => replaceContent.test.mts} (100%) diff --git a/packages/app/package.json b/packages/app/package.json index d0d3b74ca..6c1a7f737 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -80,15 +80,15 @@ "postpack": "node scripts/internal/pack.mts post", "set-react-version": "node scripts/internal/set-react-version.mts", "test": "node scripts/internal/test.mts", - "test:js": "node --no-warnings --test $(git ls-files '*.test.ts')", + "test:js": "node --no-warnings --test $(git ls-files '*.test.mts')", "test:matrix": "node scripts/testing/test-matrix.mts", "test:rb": "bundle exec ruby -Ilib:test -e \"Dir.glob('./test/test_*.rb').each { |file| require(file) }\"" }, "dependencies": { + "@isaacs/cliui": "^9.0.0", "@rnx-kit/react-native-host": "^0.5.15", "@rnx-kit/tools-react-native": "^2.1.0", "ajv": "^8.0.0", - "cliui": "^8.0.0", "fast-xml-parser": "^5.3.4", "prompts": "^2.4.0", "semver": "^7.3.5", diff --git a/packages/app/scripts/embed-manifest/validate.mjs b/packages/app/scripts/embed-manifest/validate.mjs index 298bcf4c6..58cf1b579 100755 --- a/packages/app/scripts/embed-manifest/validate.mjs +++ b/packages/app/scripts/embed-manifest/validate.mjs @@ -1,5 +1,5 @@ // @ts-check -import Ajv from "ajv"; +import { Ajv } from "ajv"; import * as nodefs from "node:fs"; import { readJSONFile } from "../helpers.js"; import { generateSchema } from "../schema.mjs"; diff --git a/packages/app/scripts/utils/parseargs.mjs b/packages/app/scripts/utils/parseargs.mjs index 096b4e478..d4f8e82b8 100644 --- a/packages/app/scripts/utils/parseargs.mjs +++ b/packages/app/scripts/utils/parseargs.mjs @@ -1,5 +1,5 @@ // @ts-check -import cliui from "cliui"; +import { cliui } from "@isaacs/cliui"; import * as fs from "node:fs"; import * as path from "node:path"; import { URL, fileURLToPath } from "node:url"; @@ -14,7 +14,7 @@ import * as util from "node:util"; * @returns {values is Args} */ function coerce(values, _options) { - return Boolean(typeof values === "object" && "help" in values); + return typeof values === "object" && Object.hasOwn(values, "help"); } /** diff --git a/packages/app/test/android/android-manifest.test.ts b/packages/app/test/android/android-manifest.test.mts similarity index 100% rename from packages/app/test/android/android-manifest.test.ts rename to packages/app/test/android/android-manifest.test.mts diff --git a/packages/app/test/android/autolink.test.ts b/packages/app/test/android/autolink.test.mts similarity index 100% rename from packages/app/test/android/autolink.test.ts rename to packages/app/test/android/autolink.test.mts diff --git a/packages/app/test/android/gradle-wrapper.test.ts b/packages/app/test/android/gradle-wrapper.test.mts similarity index 100% rename from packages/app/test/android/gradle-wrapper.test.ts rename to packages/app/test/android/gradle-wrapper.test.mts diff --git a/packages/app/test/android/gradle.ts b/packages/app/test/android/gradle.mts similarity index 98% rename from packages/app/test/android/gradle.ts rename to packages/app/test/android/gradle.mts index 966e985f2..363a35b64 100644 --- a/packages/app/test/android/gradle.ts +++ b/packages/app/test/android/gradle.mts @@ -8,7 +8,7 @@ import { gatherConfig, writeAllFiles } from "../../scripts/configure.mjs"; import { findNearest, readJSONFile } from "../../scripts/helpers.js"; import type { ConfigureParams } from "../../scripts/types.ts"; import { rm_r } from "../../scripts/utils/filesystem.mjs"; -import { templatePath } from "../template.ts"; +import { templatePath } from "../template.mts"; const GRADLE_TEST_TASK = "nodeTest"; const MKDIR_OPTIONS = { recursive: true, mode: 0o755 }; diff --git a/packages/app/test/android/test-app-util.test.ts b/packages/app/test/android/test-app-util.test.mts similarity index 99% rename from packages/app/test/android/test-app-util.test.ts rename to packages/app/test/android/test-app-util.test.mts index 76cd0310e..21bbfc2a3 100644 --- a/packages/app/test/android/test-app-util.test.ts +++ b/packages/app/test/android/test-app-util.test.mts @@ -6,7 +6,7 @@ import { reactNativeVersion, removeProject, runGradleWithProject, -} from "./gradle.ts"; +} from "./gradle.mts"; describe("test-app-util.gradle", () => { const defaultTestProject = "TestAppUtilTest"; diff --git a/packages/app/test/configure-projects.test.ts b/packages/app/test/configure-projects.test.mts similarity index 100% rename from packages/app/test/configure-projects.test.ts rename to packages/app/test/configure-projects.test.mts diff --git a/packages/app/test/configure/console.test.ts b/packages/app/test/configure/console.test.mts similarity index 100% rename from packages/app/test/configure/console.test.ts rename to packages/app/test/configure/console.test.mts diff --git a/packages/app/test/configure/gatherConfig.test.ts b/packages/app/test/configure/gatherConfig.test.mts similarity index 99% rename from packages/app/test/configure/gatherConfig.test.ts rename to packages/app/test/configure/gatherConfig.test.mts index 505deec06..ef90825b7 100644 --- a/packages/app/test/configure/gatherConfig.test.ts +++ b/packages/app/test/configure/gatherConfig.test.mts @@ -3,8 +3,8 @@ import { describe, it } from "node:test"; import { gatherConfig as gatherConfigActual } from "../../scripts/configure.mjs"; import { join } from "../../scripts/template.mjs"; import type { Configuration, ConfigureParams } from "../../scripts/types.ts"; -import { templatePath } from "../template.ts"; -import { mockParams } from "./mockParams.ts"; +import { templatePath } from "../template.mts"; +import { mockParams } from "./mockParams.mts"; describe("gatherConfig()", () => { const templateDir = templatePath.substring( diff --git a/packages/app/test/configure/getAppName.test.ts b/packages/app/test/configure/getAppName.test.mts similarity index 96% rename from packages/app/test/configure/getAppName.test.ts rename to packages/app/test/configure/getAppName.test.mts index 4ab7d94dd..f698d158f 100644 --- a/packages/app/test/configure/getAppName.test.ts +++ b/packages/app/test/configure/getAppName.test.mts @@ -1,7 +1,7 @@ import { equal } from "node:assert/strict"; import { afterEach, describe, it } from "node:test"; import { getAppName as getAppNameActual } from "../../scripts/configure.mjs"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; describe("getAppName()", () => { const getAppName: typeof getAppNameActual = (p) => getAppNameActual(p, fs); diff --git a/packages/app/test/configure/getConfig.test.ts b/packages/app/test/configure/getConfig.test.mts similarity index 97% rename from packages/app/test/configure/getConfig.test.ts rename to packages/app/test/configure/getConfig.test.mts index d78adc47e..bb958e2ee 100644 --- a/packages/app/test/configure/getConfig.test.ts +++ b/packages/app/test/configure/getConfig.test.mts @@ -6,8 +6,8 @@ import { getPlatformPackage, } from "../../scripts/configure.mjs"; import type { ConfigureParams, Platform } from "../../scripts/types.ts"; -import { templatePath } from "../template.ts"; -import { mockParams } from "./mockParams.ts"; +import { templatePath } from "../template.mts"; +import { mockParams } from "./mockParams.mts"; describe("getConfig()", () => { const getConfig: typeof getConfigActual = (params, platform) => diff --git a/packages/app/test/configure/getPlatformPackage.test.ts b/packages/app/test/configure/getPlatformPackage.test.mts similarity index 100% rename from packages/app/test/configure/getPlatformPackage.test.ts rename to packages/app/test/configure/getPlatformPackage.test.mts diff --git a/packages/app/test/configure/isDestructive.test.ts b/packages/app/test/configure/isDestructive.test.mts similarity index 98% rename from packages/app/test/configure/isDestructive.test.ts rename to packages/app/test/configure/isDestructive.test.mts index 987a4266f..c0f073644 100644 --- a/packages/app/test/configure/isDestructive.test.ts +++ b/packages/app/test/configure/isDestructive.test.mts @@ -1,7 +1,7 @@ import { equal, ok } from "node:assert/strict"; import { afterEach, describe, it } from "node:test"; import { isDestructive as isDestructiveActual } from "../../scripts/configure.mjs"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; describe("isDestructive()", () => { /** diff --git a/packages/app/test/configure/join.test.ts b/packages/app/test/configure/join.test.mts similarity index 100% rename from packages/app/test/configure/join.test.ts rename to packages/app/test/configure/join.test.mts diff --git a/packages/app/test/configure/mergeConfig.test.ts b/packages/app/test/configure/mergeConfig.test.mts similarity index 100% rename from packages/app/test/configure/mergeConfig.test.ts rename to packages/app/test/configure/mergeConfig.test.mts diff --git a/packages/app/test/configure/mockParams.ts b/packages/app/test/configure/mockParams.mts similarity index 100% rename from packages/app/test/configure/mockParams.ts rename to packages/app/test/configure/mockParams.mts diff --git a/packages/app/test/configure/reactNativeConfig.test.ts b/packages/app/test/configure/reactNativeConfig.test.mts similarity index 95% rename from packages/app/test/configure/reactNativeConfig.test.ts rename to packages/app/test/configure/reactNativeConfig.test.mts index a08cf4d38..0d89a72b4 100644 --- a/packages/app/test/configure/reactNativeConfig.test.ts +++ b/packages/app/test/configure/reactNativeConfig.test.mts @@ -2,7 +2,7 @@ import { equal, ok } from "node:assert/strict"; import { describe, it } from "node:test"; import { reactNativeConfig as reactNativeConfigActual } from "../../scripts/configure.mjs"; import type { ConfigureParams } from "../../scripts/types.ts"; -import { mockParams } from "./mockParams.ts"; +import { mockParams } from "./mockParams.mts"; describe("reactNativeConfig()", () => { const reactNativeConfig = (params: ConfigureParams): string => { diff --git a/packages/app/test/configure/removeAllFiles.test.ts b/packages/app/test/configure/removeAllFiles.test.mts similarity index 95% rename from packages/app/test/configure/removeAllFiles.test.ts rename to packages/app/test/configure/removeAllFiles.test.mts index 788ab5014..a11a3bfe9 100644 --- a/packages/app/test/configure/removeAllFiles.test.ts +++ b/packages/app/test/configure/removeAllFiles.test.mts @@ -1,7 +1,7 @@ import { ok } from "node:assert/strict"; import { after, beforeEach, describe, it } from "node:test"; import { removeAllFiles as removeAllFilesActual } from "../../scripts/configure.mjs"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; describe("removeAllFiles()", () => { const removeAllFiles: typeof removeAllFilesActual = (files, destination) => diff --git a/packages/app/test/configure/updatePackageManifest.test.ts b/packages/app/test/configure/updatePackageManifest.test.mts similarity index 97% rename from packages/app/test/configure/updatePackageManifest.test.ts rename to packages/app/test/configure/updatePackageManifest.test.mts index e6a09fb55..61b0b66f6 100644 --- a/packages/app/test/configure/updatePackageManifest.test.ts +++ b/packages/app/test/configure/updatePackageManifest.test.mts @@ -4,7 +4,7 @@ import { URL } from "node:url"; import { updatePackageManifest as updatePackageManifestActual } from "../../scripts/configure.mjs"; import { readJSONFile } from "../../scripts/helpers.js"; import type { Manifest } from "../../scripts/types.ts"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; function getExampleManifest() { const p = new URL("../../example/package.json", import.meta.url); diff --git a/packages/app/test/configure/writeAllFiles.test.ts b/packages/app/test/configure/writeAllFiles.test.mts similarity index 97% rename from packages/app/test/configure/writeAllFiles.test.ts rename to packages/app/test/configure/writeAllFiles.test.mts index 21f4aea9e..40cb654f6 100644 --- a/packages/app/test/configure/writeAllFiles.test.ts +++ b/packages/app/test/configure/writeAllFiles.test.mts @@ -3,7 +3,7 @@ import * as path from "node:path"; import { afterEach, describe, it } from "node:test"; import { writeAllFiles as writeAllFilesActual } from "../../scripts/configure.mjs"; import { readTextFile as readTextFileActual } from "../../scripts/helpers.js"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; describe("writeAllFiles()", () => { const readTextFile: typeof readTextFileActual = (p) => diff --git a/packages/app/test/embed-manifest/cpp.test.ts b/packages/app/test/embed-manifest/cpp.test.mts similarity index 99% rename from packages/app/test/embed-manifest/cpp.test.ts rename to packages/app/test/embed-manifest/cpp.test.mts index e1831c20b..22e149bc6 100644 --- a/packages/app/test/embed-manifest/cpp.test.ts +++ b/packages/app/test/embed-manifest/cpp.test.mts @@ -1,7 +1,7 @@ import { equal } from "node:assert/strict"; import { describe, it } from "node:test"; import { generate as generateActual } from "../../scripts/embed-manifest/cpp.mjs"; -import * as fixtures from "./fixtures.ts"; +import * as fixtures from "./fixtures.mts"; describe("embed manifest (C++)", () => { const generate = (json: Record) => generateActual(json, "0"); diff --git a/packages/app/test/embed-manifest/fixtures.ts b/packages/app/test/embed-manifest/fixtures.mts similarity index 100% rename from packages/app/test/embed-manifest/fixtures.ts rename to packages/app/test/embed-manifest/fixtures.mts diff --git a/packages/app/test/embed-manifest/kotlin.test.ts b/packages/app/test/embed-manifest/kotlin.test.mts similarity index 99% rename from packages/app/test/embed-manifest/kotlin.test.ts rename to packages/app/test/embed-manifest/kotlin.test.mts index 36c442c8a..d690d5216 100644 --- a/packages/app/test/embed-manifest/kotlin.test.ts +++ b/packages/app/test/embed-manifest/kotlin.test.mts @@ -1,7 +1,7 @@ import { equal } from "node:assert/strict"; import { describe, it } from "node:test"; import { generate as generateActual } from "../../scripts/embed-manifest/kotlin.mjs"; -import * as fixtures from "./fixtures.ts"; +import * as fixtures from "./fixtures.mts"; describe("embed manifest (Kotlin)", () => { const generate = (json: Record) => generateActual(json, "0"); diff --git a/packages/app/test/embed-manifest/swift.test.ts b/packages/app/test/embed-manifest/swift.test.mts similarity index 99% rename from packages/app/test/embed-manifest/swift.test.ts rename to packages/app/test/embed-manifest/swift.test.mts index 2cf3e33ff..7fd41784b 100644 --- a/packages/app/test/embed-manifest/swift.test.ts +++ b/packages/app/test/embed-manifest/swift.test.mts @@ -1,7 +1,7 @@ import { equal } from "node:assert/strict"; import { describe, it } from "node:test"; import { generate as generateActual } from "../../scripts/embed-manifest/swift.mjs"; -import * as fixtures from "./fixtures.ts"; +import * as fixtures from "./fixtures.mts"; describe("embed manifest (Swift)", () => { const generate = (json: Record) => generateActual(json, "0"); diff --git a/packages/app/test/embed-manifest/validate.test.ts b/packages/app/test/embed-manifest/validate.test.mts similarity index 99% rename from packages/app/test/embed-manifest/validate.test.ts rename to packages/app/test/embed-manifest/validate.test.mts index 856ad8c06..3a25d83a1 100644 --- a/packages/app/test/embed-manifest/validate.test.ts +++ b/packages/app/test/embed-manifest/validate.test.mts @@ -2,7 +2,7 @@ import { deepEqual, equal, match, notEqual } from "node:assert/strict"; import { afterEach, describe, it } from "node:test"; import { validate as validateActual } from "../../scripts/embed-manifest/validate.mjs"; import { findFile as findFileActual } from "../../scripts/helpers.js"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; describe("validate()", () => { const findFile: typeof findFileActual = (file, startDir = undefined) => diff --git a/packages/app/test/fs.mock.ts b/packages/app/test/fs.mock.mts similarity index 100% rename from packages/app/test/fs.mock.ts rename to packages/app/test/fs.mock.mts diff --git a/packages/app/test/helpers.test.ts b/packages/app/test/helpers.test.mts similarity index 100% rename from packages/app/test/helpers.test.ts rename to packages/app/test/helpers.test.mts diff --git a/packages/app/test/ios/app.test.ts b/packages/app/test/ios/app.test.mts similarity index 99% rename from packages/app/test/ios/app.test.ts rename to packages/app/test/ios/app.test.mts index 5a62d33b8..32156c971 100644 --- a/packages/app/test/ios/app.test.ts +++ b/packages/app/test/ios/app.test.mts @@ -10,7 +10,7 @@ import type { JSONObject, ProjectConfiguration, } from "../../scripts/types.ts"; -import { fs as mockfs, setMockFiles, toJSON } from "../fs.mock.ts"; +import { fs as mockfs, setMockFiles, toJSON } from "../fs.mock.mts"; const macosOnly = { skip: process.platform === "win32" }; diff --git a/packages/app/test/ios/assetsCatalog.test.ts b/packages/app/test/ios/assetsCatalog.test.mts similarity index 99% rename from packages/app/test/ios/assetsCatalog.test.ts rename to packages/app/test/ios/assetsCatalog.test.mts index 3822a4229..50f656fa6 100644 --- a/packages/app/test/ios/assetsCatalog.test.ts +++ b/packages/app/test/ios/assetsCatalog.test.mts @@ -4,7 +4,7 @@ import { afterEach, describe, it } from "node:test"; import { fileURLToPath } from "node:url"; import { generateAssetsCatalogs as generateAssetsCatalogsActual } from "../../ios/assetsCatalog.mjs"; import { readTextFile } from "../../scripts/helpers.js"; -import { fs as fsMock, setMockFiles, toJSON } from "../fs.mock.ts"; +import { fs as fsMock, setMockFiles, toJSON } from "../fs.mock.mts"; const macosOnly = { skip: process.platform === "win32" }; diff --git a/packages/app/test/ios/entitlements.test.ts b/packages/app/test/ios/entitlements.test.mts similarity index 98% rename from packages/app/test/ios/entitlements.test.ts rename to packages/app/test/ios/entitlements.test.mts index 1b375fbdd..f9221fa30 100644 --- a/packages/app/test/ios/entitlements.test.ts +++ b/packages/app/test/ios/entitlements.test.mts @@ -4,7 +4,7 @@ import { generateEntitlements as generateEntitlementsActual } from "../../ios/en import { readTextFile } from "../../scripts/helpers.js"; import type { JSONObject } from "../../scripts/types.ts"; import { mkdir_p } from "../../scripts/utils/filesystem.mjs"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; const macosOnly = { skip: process.platform === "win32" }; diff --git a/packages/app/test/ios/features.test.ts b/packages/app/test/ios/features.test.mts similarity index 100% rename from packages/app/test/ios/features.test.ts rename to packages/app/test/ios/features.test.mts diff --git a/packages/app/test/ios/infoPlist.test.ts b/packages/app/test/ios/infoPlist.test.mts similarity index 99% rename from packages/app/test/ios/infoPlist.test.ts rename to packages/app/test/ios/infoPlist.test.mts index 9f7f9f825..277f67644 100644 --- a/packages/app/test/ios/infoPlist.test.ts +++ b/packages/app/test/ios/infoPlist.test.mts @@ -4,7 +4,7 @@ import { generateInfoPlist as generateInfoPlistActual } from "../../ios/infoPlis import { readTextFile } from "../../scripts/helpers.js"; import type { JSONObject } from "../../scripts/types.ts"; import { mkdir_p } from "../../scripts/utils/filesystem.mjs"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; const macosOnly = { skip: process.platform === "win32" }; diff --git a/packages/app/test/ios/localizations.test.ts b/packages/app/test/ios/localizations.test.mts similarity index 97% rename from packages/app/test/ios/localizations.test.ts rename to packages/app/test/ios/localizations.test.mts index 739c4e552..96d32fb5b 100644 --- a/packages/app/test/ios/localizations.test.ts +++ b/packages/app/test/ios/localizations.test.mts @@ -8,7 +8,7 @@ import { import { projectPath } from "../../ios/utils.mjs"; import { readTextFile } from "../../scripts/helpers.js"; import type { ApplePlatform, JSONObject } from "../../scripts/types.ts"; -import { fs, setMockFiles, toJSON } from "../fs.mock.ts"; +import { fs, setMockFiles, toJSON } from "../fs.mock.mts"; const macosOnly = { skip: process.platform === "win32" }; diff --git a/packages/app/test/ios/privacyManifest.test.ts b/packages/app/test/ios/privacyManifest.test.mts similarity index 98% rename from packages/app/test/ios/privacyManifest.test.ts rename to packages/app/test/ios/privacyManifest.test.mts index 4df0356c6..48a644ec5 100644 --- a/packages/app/test/ios/privacyManifest.test.ts +++ b/packages/app/test/ios/privacyManifest.test.mts @@ -4,7 +4,7 @@ import { generatePrivacyManifest as generatePrivacyManifestActual } from "../../ import { readTextFile } from "../../scripts/helpers.js"; import type { JSONObject } from "../../scripts/types.ts"; import { mkdir_p } from "../../scripts/utils/filesystem.mjs"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; const macosOnly = { skip: process.platform === "win32" }; diff --git a/packages/app/test/ios/xcode.test.ts b/packages/app/test/ios/xcode.test.mts similarity index 99% rename from packages/app/test/ios/xcode.test.ts rename to packages/app/test/ios/xcode.test.mts index f9c55cd93..ab9993f1b 100644 --- a/packages/app/test/ios/xcode.test.ts +++ b/packages/app/test/ios/xcode.test.mts @@ -34,7 +34,7 @@ import type { JSONValue, ProjectConfiguration, } from "../../scripts/types.ts"; -import { fs, setMockFiles, toJSON } from "../fs.mock.ts"; +import { fs, setMockFiles, toJSON } from "../fs.mock.mts"; const macosOnly = { skip: process.platform === "win32" }; diff --git a/packages/app/test/pack.test.ts b/packages/app/test/pack.test.mts similarity index 100% rename from packages/app/test/pack.test.ts rename to packages/app/test/pack.test.mts diff --git a/packages/app/test/template.ts b/packages/app/test/template.mts similarity index 100% rename from packages/app/test/template.ts rename to packages/app/test/template.mts diff --git a/packages/app/test/windows/copyAndReplace.test.ts b/packages/app/test/windows/copyAndReplace.test.mts similarity index 97% rename from packages/app/test/windows/copyAndReplace.test.ts rename to packages/app/test/windows/copyAndReplace.test.mts index 8763273c5..8b712a3f9 100644 --- a/packages/app/test/windows/copyAndReplace.test.ts +++ b/packages/app/test/windows/copyAndReplace.test.mts @@ -2,7 +2,7 @@ import { equal, fail, match, rejects } from "node:assert/strict"; import { afterEach, describe, it } from "node:test"; import { readTextFile as readTextFileActual } from "../../scripts/helpers.js"; import { copyAndReplace as copyAndReplaceActual } from "../../windows/app.mjs"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; describe("copyAndReplace()", () => { const copyAndReplace: typeof copyAndReplaceActual = (src, dst, r) => diff --git a/packages/app/test/windows/findUserProjects.test.ts b/packages/app/test/windows/findUserProjects.test.mts similarity index 100% rename from packages/app/test/windows/findUserProjects.test.ts rename to packages/app/test/windows/findUserProjects.test.mts diff --git a/packages/app/test/windows/generateSolution.test.ts b/packages/app/test/windows/generateSolution.test.mts similarity index 96% rename from packages/app/test/windows/generateSolution.test.ts rename to packages/app/test/windows/generateSolution.test.mts index 75da4d83e..4bddd889e 100644 --- a/packages/app/test/windows/generateSolution.test.ts +++ b/packages/app/test/windows/generateSolution.test.mts @@ -2,7 +2,7 @@ import { equal } from "node:assert/strict"; import * as path from "node:path"; import { afterEach, beforeEach, describe, it } from "node:test"; import { generateSolution as generateSolutionActual } from "../../windows/app.mjs"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; describe("generateSolution()", () => { const generateSolution: typeof generateSolutionActual = (d, cfg) => diff --git a/packages/app/test/windows/getBundleResources.test.ts b/packages/app/test/windows/getBundleResources.test.mts similarity index 98% rename from packages/app/test/windows/getBundleResources.test.ts rename to packages/app/test/windows/getBundleResources.test.mts index d5ecc1fac..b3e382d19 100644 --- a/packages/app/test/windows/getBundleResources.test.ts +++ b/packages/app/test/windows/getBundleResources.test.mts @@ -2,7 +2,7 @@ import { deepEqual, equal, match } from "node:assert/strict"; import * as path from "node:path"; import { afterEach, describe, it } from "node:test"; import { getBundleResources as getBundleResourcesActual } from "../../windows/project.mjs"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; describe("getBundleResources()", () => { const getBundleResources: typeof getBundleResourcesActual = (p) => diff --git a/packages/app/test/windows/parseMSBuildProperties.test.ts b/packages/app/test/windows/parseMSBuildProperties.test.mts similarity index 100% rename from packages/app/test/windows/parseMSBuildProperties.test.ts rename to packages/app/test/windows/parseMSBuildProperties.test.mts diff --git a/packages/app/test/windows/parseResources.test.ts b/packages/app/test/windows/parseResources.test.mts similarity index 98% rename from packages/app/test/windows/parseResources.test.ts rename to packages/app/test/windows/parseResources.test.mts index 27cec18f7..bc1b438f4 100644 --- a/packages/app/test/windows/parseResources.test.ts +++ b/packages/app/test/windows/parseResources.test.mts @@ -1,7 +1,7 @@ import { deepEqual, equal, match } from "node:assert/strict"; import { afterEach, describe, it } from "node:test"; import { parseResources as parseResourcesActual } from "../../windows/project.mjs"; -import { fs, setMockFiles } from "../fs.mock.ts"; +import { fs, setMockFiles } from "../fs.mock.mts"; describe("parseResources()", () => { const parseResources: typeof parseResourcesActual = (r, p) => diff --git a/packages/app/test/windows/replaceContent.test.ts b/packages/app/test/windows/replaceContent.test.mts similarity index 100% rename from packages/app/test/windows/replaceContent.test.ts rename to packages/app/test/windows/replaceContent.test.mts diff --git a/packages/app/tsconfig.json b/packages/app/tsconfig.json index 802bc6799..2ec311a15 100644 --- a/packages/app/tsconfig.json +++ b/packages/app/tsconfig.json @@ -1,10 +1,8 @@ { - "extends": "@rnx-kit/tsconfig/tsconfig.esm.node.json", + "extends": "@rnx-kit/tsconfig/tsconfig.node.json", "compilerOptions": { - "target": "ES2022", - "module": "ES2022", + "target": "esnext", "allowImportingTsExtensions": true, - "moduleResolution": "Node", "noEmit": true, "lib": ["ES2022", "DOM"] }, diff --git a/yarn.lock b/yarn.lock index 110f35b50..4afc5ec51 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6258,7 +6258,7 @@ __metadata: languageName: node linkType: hard -"cliui@npm:^8.0.0, cliui@npm:^8.0.1": +"cliui@npm:^8.0.1": version: 8.0.1 resolution: "cliui@npm:8.0.1" dependencies: @@ -12188,6 +12188,7 @@ __metadata: "@babel/preset-env": "npm:^7.25.3" "@expo/config-plugins": "npm:^54.0.0" "@expo/json-file": "npm:~10.0.8" + "@isaacs/cliui": "npm:^9.0.0" "@react-native-community/cli": "npm:^20.0.0" "@react-native-community/cli-types": "npm:^20.0.0" "@react-native-community/template": "npm:^0.81.0" @@ -12205,7 +12206,6 @@ __metadata: "@types/semver": "npm:^7.3.6" "@typescript/native-preview": "npm:^7.0.0-0" ajv: "npm:^8.0.0" - cliui: "npm:^8.0.0" fast-xml-parser: "npm:^5.3.4" js-yaml: "npm:^4.1.0" memfs: "npm:^4.0.0" From 80e2a1abbc05f972ceba01a67723e891ca816e77 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Mon, 30 Mar 2026 11:28:29 +0200 Subject: [PATCH 3/3] fix test script --- .github/workflows/build.yml | 2 +- CONTRIBUTING.md | 2 +- packages/app/scripts/internal/test.mts | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f187dc0a6..3578cbbd6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -745,7 +745,7 @@ jobs: uses: ./.github/actions/yarn - name: Verify tarball content run: | - yarn test test/pack.test.ts + node --test test/pack.test.mts working-directory: packages/app - name: Release (dry run) if: ${{ github.ref != 'refs/heads/trunk' }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 06b8780fb..0cbdc1e8a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -183,7 +183,7 @@ If your files are missing, you can modify the `files` section in `package.json`. Also make sure that you update the test to include the new files: ```sh -node --test test/pack.test.mjs +node --test test/pack.test.mts ``` ## Testing Specific React Native Versions diff --git a/packages/app/scripts/internal/test.mts b/packages/app/scripts/internal/test.mts index 67bee4e90..cd1bad839 100644 --- a/packages/app/scripts/internal/test.mts +++ b/packages/app/scripts/internal/test.mts @@ -2,10 +2,14 @@ import { spawnSync } from "node:child_process"; type Language = "ruby" | "typescript"; +function isTypeScript(file: string): boolean { + return file.endsWith(".mts") || file.endsWith(".ts"); +} + function getTarget(files: string[]): Language | undefined { if (files.some((file) => file.endsWith(".rb"))) { return "ruby"; - } else if (files.some((file) => file.endsWith(".ts"))) { + } else if (files.some(isTypeScript)) { return "typescript"; } else { return undefined;