Skip to content

Commit a808291

Browse files
chore(deps): update dependency @typescript/native-preview to v7.0.0-dev.20260320.1 (#2714)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tommy Nguyen <4123478+tido64@users.noreply.github.com>
1 parent ab8605b commit a808291

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+75
-73
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ jobs:
745745
uses: ./.github/actions/yarn
746746
- name: Verify tarball content
747747
run: |
748-
yarn test test/pack.test.ts
748+
node --test test/pack.test.mts
749749
working-directory: packages/app
750750
- name: Release (dry run)
751751
if: ${{ github.ref != 'refs/heads/trunk' }}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

packages/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@
8080
"postpack": "node scripts/internal/pack.mts post",
8181
"set-react-version": "node scripts/internal/set-react-version.mts",
8282
"test": "node scripts/internal/test.mts",
83-
"test:js": "node --no-warnings --test $(git ls-files '*.test.ts')",
83+
"test:js": "node --no-warnings --test $(git ls-files '*.test.mts')",
8484
"test:matrix": "node scripts/testing/test-matrix.mts",
8585
"test:rb": "bundle exec ruby -Ilib:test -e \"Dir.glob('./test/test_*.rb').each { |file| require(file) }\""
8686
},
8787
"dependencies": {
88+
"@isaacs/cliui": "^9.0.0",
8889
"@rnx-kit/react-native-host": "^0.5.15",
8990
"@rnx-kit/tools-react-native": "^2.1.0",
9091
"ajv": "^8.0.0",
91-
"cliui": "^8.0.0",
9292
"fast-xml-parser": "^5.3.4",
9393
"prompts": "^2.4.0",
9494
"semver": "^7.3.5",

packages/app/scripts/embed-manifest/validate.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
import Ajv from "ajv";
2+
import { Ajv } from "ajv";
33
import * as nodefs from "node:fs";
44
import { readJSONFile } from "../helpers.js";
55
import { generateSchema } from "../schema.mjs";

packages/app/scripts/internal/test.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ import { spawnSync } from "node:child_process";
22

33
type Language = "ruby" | "typescript";
44

5+
function isTypeScript(file: string): boolean {
6+
return file.endsWith(".mts") || file.endsWith(".ts");
7+
}
8+
59
function getTarget(files: string[]): Language | undefined {
610
if (files.some((file) => file.endsWith(".rb"))) {
711
return "ruby";
8-
} else if (files.some((file) => file.endsWith(".ts"))) {
12+
} else if (files.some(isTypeScript)) {
913
return "typescript";
1014
} else {
1115
return undefined;

packages/app/scripts/utils/parseargs.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
import cliui from "cliui";
2+
import { cliui } from "@isaacs/cliui";
33
import * as fs from "node:fs";
44
import * as path from "node:path";
55
import { URL, fileURLToPath } from "node:url";
@@ -14,7 +14,7 @@ import * as util from "node:util";
1414
* @returns {values is Args<O>}
1515
*/
1616
function coerce(values, _options) {
17-
return Boolean(typeof values === "object" && "help" in values);
17+
return typeof values === "object" && Object.hasOwn(values, "help");
1818
}
1919

2020
/**
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { gatherConfig, writeAllFiles } from "../../scripts/configure.mjs";
88
import { findNearest, readJSONFile } from "../../scripts/helpers.js";
99
import type { ConfigureParams } from "../../scripts/types.ts";
1010
import { rm_r } from "../../scripts/utils/filesystem.mjs";
11-
import { templatePath } from "../template.ts";
11+
import { templatePath } from "../template.mts";
1212

1313
const GRADLE_TEST_TASK = "nodeTest";
1414
const MKDIR_OPTIONS = { recursive: true, mode: 0o755 };

0 commit comments

Comments
 (0)