refactor: rework BuildSystem and Platorm with enum
test / test (push) Failing after 5m53s

This commit is contained in:
2026-10-28 00:41:52 +03:00
parent 428f9d100e
commit 0672f2a1e0
9 changed files with 65 additions and 52 deletions
+4 -3
View File
@@ -1,12 +1,13 @@
import path from "path";
import type { Config } from "../../core/config";
import type { Platform } from "../../core/type";
export class Target {
public config: Config;
public platform: string;
public platform: Platform;
public target: string;
constructor(config: Config, platform: string) {
constructor(config: Config, platform: Platform) {
this.config = config;
this.platform = platform;
this.target = "target";
@@ -20,7 +21,7 @@ export class Target {
throw "Not Implemented";
}
resolveTargetPath(platform = this.platform): string {
resolveTargetPath(platform: Platform | string = this.platform): string {
return path.resolve(this.target, this.config.name, platform);
}