@manuth/generator-wsc-package
Version:
A Generator for WoltLab Suite Core Packages.
35 lines • 921 B
JavaScript
import { join } from "node:path";
import { fileURLToPath } from "node:url";
import { Package } from "@manuth/package-json-editor";
/**
* Provides constants for this package.
*/
export class Constants {
/**
* Gets the metadata of this package.
*/
static get Package() {
if (this.package === null) {
this.package = new Package(join(fileURLToPath(new URL(".", import.meta.url)), "..", "..", "package.json"));
}
return this.package;
}
/**
* Gets the dependencies of this package.
*/
static get Dependencies() {
if (this.dependencies === null) {
this.dependencies = this.Package.AllDependencies;
}
return this.dependencies;
}
}
/**
* The metadata of this package.
*/
Constants.package = null;
/**
* The dependencies of this package.
*/
Constants.dependencies = null;
//# sourceMappingURL=Constants.js.map