This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user