UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

38 lines 1.05 kB
import { PackageDescriptor } from "./PackageDescriptor.js"; /** * Provides an abstraction of a package stored in a file. */ export class PackageFileDescriptor extends PackageDescriptor { /** * Initializes a new instance of the {@link PackageFileDescriptor `PackageFileDescriptor`} class. * * @param options * The options of the descriptor. */ constructor(options) { super(options); /** * The filename of the package */ this.fileName = null; if ((options.FileName !== null) && (options.FileName !== undefined)) { this.FileName = options.FileName; } } /** * The filename of the package. * * Keep in mind to provide the file using the {@link Package.AdditionalFiles `Package.AdditionalFiles`}-property. */ get FileName() { return this.fileName; } /** * @inheritdoc */ set FileName(value) { this.fileName = value; } } //# sourceMappingURL=PackageFileDescriptor.js.map