Skip to content

Commit 9528d0f

Browse files
committed
attempt to fix circular dependency error
1 parent f4327c6 commit 9528d0f

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

src/managers/application/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { assertPathLike, assertString } from "@/assertions/literal";
22
import {
33
Application,
4-
BaseApplication,
54
Collection,
65
SimpleApplicationStatus,
76
SquareCloudAPI,
87
SquareCloudAPIError,
98
User,
109
} from "@/index";
10+
import { BaseApplication } from "@/structures/application/base";
1111
import { RESTPostAPIApplicationUploadResult } from "@squarecloud/api-types/v2";
1212
import FormData from "form-data";
1313
import { readFile } from "fs/promises";

src/structures/application/application.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { assertApplication } from "@/assertions/application";
2-
import { ApplicationStatus, BaseApplication, SquareCloudAPI } from "@/index";
2+
import { ApplicationStatus, SquareCloudAPI } from "@/index";
33
import {
44
ApplicationBackupManager,
55
ApplicationCacheManager,
66
ApplicationDeploysManager,
77
ApplicationFilesManager,
88
} from "@/managers";
99
import { APIApplication, ApplicationLanguage } from "@squarecloud/api-types/v2";
10+
import { BaseApplication } from "./base";
1011
import { WebsiteApplication } from "./website";
1112

1213
/**

src/structures/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export * from "./application/application";
22
export * from "./application/website";
3-
export * from "./application/base";
43
export * from "./collection";
54
export * from "./error";
65
export * from "./status";

src/structures/user.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { assertUserInfo } from "@/assertions/user";
22
import { UserPlan } from "@/types/user";
33
import { APIUserInfo } from "@squarecloud/api-types/v2";
4-
import { BaseApplication, Collection, SquareCloudAPI } from "..";
4+
import { Collection, SquareCloudAPI } from "..";
5+
import { BaseApplication } from "./application/base";
56

67
/**
78
* Represents a Square Cloud user

tsup.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"target": "es2020",
2+
"target": "node18",
33
"format": ["cjs", "esm"],
44
"outDir": "lib",
55
"splitting": false,

0 commit comments

Comments
 (0)