Skip to content

Commit 7779d43

Browse files
authored
Merge pull request #21 from NoTaskStudios/fix/import-extension-inconsistency
fix/import extension inconsistency
2 parents a43c943 + a5b8a9e commit 7779d43

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/events/hubEventEmitter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EventEmitter } from "events";
2-
import { InstallerEventType, InstallerEvent, InstallerStatus } from "../types/unity.ts";
3-
import { UnityHubEventParser } from "./hubEventParser.ts";
2+
import { InstallerEventType, InstallerEvent, InstallerStatus } from "../types/unity.js";
3+
import { UnityHubEventParser } from "./hubEventParser.js";
44

55
export interface InstallerEmitter extends EventEmitter {
66
on(event: InstallerEventType.Progress, listener: (info: InstallerEvent[]) => void): this;

src/events/hubEventParser.ts

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

33
export class UnityHubEventParser {
44
private static errorPatterns = [/Error:.*/];

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export { default as UnityHub } from "./unityHub.ts";
2-
export { default as UnityEditor } from "./unityEditor.ts";
3-
export { UnityHubInstallerEvent } from "./events/hubEventEmitter.ts";
1+
export { default as UnityHub } from "./unityHub.js";
2+
export { default as UnityEditor } from "./unityEditor.js";
3+
export { UnityHubInstallerEvent } from "./events/hubEventEmitter.js";
44

5-
export * from "./types/unity.ts";
5+
export * from "./types/unity.js";

src/unityHub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from "./types/unity.js";
1111
import { CommandOptions, CommandResult, executeCommand } from "./utils/commandExecutor.js";
1212
import { getUnityChangeset } from "unity-changeset";
13-
import { UnityHubInstallerEvent } from "./events/hubEventEmitter.ts";
13+
import { UnityHubInstallerEvent } from "./events/hubEventEmitter.js";
1414

1515
/**
1616
* Class for interacting with Unity Hub via command line interface

0 commit comments

Comments
 (0)