Skip to content

Commit 2650ad9

Browse files
committed
fix: fix imports to allow executing TypeScript directly
1 parent 5520ec9 commit 2650ad9

File tree

109 files changed

+233
-215
lines changed

Some content is hidden

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

109 files changed

+233
-215
lines changed

.changeset/fifty-candies-spend.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@rnx-kit/tools-android": patch
3+
"@rnx-kit/tools-apple": patch
4+
---
5+
6+
Fixed import statements so that the TypeScript code can be used directly

.github/workflows/align-deps.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ jobs:
2626
- name: Install package dependencies
2727
run: |
2828
yarn
29-
- name: "Build `@rnx-kit/align-deps`"
30-
run: |
31-
yarn build --dependencies
32-
working-directory: packages/align-deps
3329
- name: Look for new React Native release candidates
3430
id: find-release-candidate
3531
env:

incubator/@react-native-webapis/battery-status/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { BatteryStatus } from "./NativeBatteryStatus";
2-
import { NativeBatteryStatus } from "./NativeBatteryStatus";
1+
import type { BatteryStatus } from "./NativeBatteryStatus.ts";
2+
import { NativeBatteryStatus } from "./NativeBatteryStatus.ts";
33

44
function getBattery(): Promise<BatteryStatus> {
55
return new Promise((resolve) => {

incubator/@react-native-webapis/web-storage/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { makeLocalStorage } from "./localStorage";
2-
import { makeSessionStorage } from "./sessionStorage";
1+
import { makeLocalStorage } from "./localStorage.ts";
2+
import { makeSessionStorage } from "./sessionStorage.ts";
33

44
const window = global.window || {};
55

incubator/@react-native-webapis/web-storage/src/localStorage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { NativeWebStorage } from "./NativeWebStorage";
2-
import type { StoragePolyfill } from "./types";
1+
import { NativeWebStorage } from "./NativeWebStorage.ts";
2+
import type { StoragePolyfill } from "./types.ts";
33

44
export function makeLocalStorage() {
55
const localStorage: StoragePolyfill = {

incubator/@react-native-webapis/web-storage/src/sessionStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { StoragePolyfill } from "./types";
1+
import type { StoragePolyfill } from "./types.ts";
22

33
export function makeSessionStorage() {
44
const store = new Map<string, string>();

incubator/@react-native-webapis/web-storage/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Spec } from "./NativeWebStorage";
1+
import type { Spec } from "./NativeWebStorage.ts";
22

33
export type StoragePolyfill = {
44
_isPolyfilledBy: {

incubator/lint-lockfile/src/workspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as fs from "node:fs";
55
import * as path from "node:path";
66
import { noDuplicatesRule } from "./rules/noDuplicates.ts";
77
import { noWorkspacePackageFromNpmRule } from "./rules/noWorkspacePackageFromNpm.ts";
8-
import type { Lockfile, Rule, Workspace } from "./types";
8+
import type { Lockfile, Rule, Workspace } from "./types.ts";
99
import { loadLockfile as loadYarnLockfile } from "./yarn/lockfile.ts";
1010

1111
function loadLockfile(lockfilePath: string): Lockfile {

incubator/polyfills/test/dependency.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { equal, match, notEqual } from "node:assert/strict";
22
import * as os from "node:os";
33
import * as path from "node:path";
44
import { describe, it } from "node:test";
5-
import { getDependencyPolyfills, resolvePath } from "../src/dependency";
5+
import { getDependencyPolyfills, resolvePath } from "../src/dependency.ts";
66

77
describe("getDependencyPolyfills()", () => {
88
it("collects polyfills from included valid packages", (t) => {

incubator/tools-typescript/src/tsconfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
} from "@rnx-kit/tools-packages";
66
import path from "node:path";
77
import ts from "typescript";
8-
import { getDiagnosticWriter } from "./diagnostics";
8+
import { getDiagnosticWriter } from "./diagnostics.ts";
99

1010
type ConfigsByPath = Map<string, ts.ParsedCommandLine>;
1111
const DEFAULT_CONFIG_NAME = "tsconfig.json";

0 commit comments

Comments
 (0)