UNPKG

@wocker/ws

Version:

Docker workspace for web projects

16 lines (15 loc) 486 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Plugin = void 0; const core_1 = require("@wocker/core"); class Plugin { constructor(type) { this.type = type; const pluginName = Reflect.getMetadata(core_1.PLUGIN_NAME_METADATA, this.type); if (!pluginName || typeof pluginName !== "string") { throw new Error("Invalid plugin package"); } this.name = pluginName; } } exports.Plugin = Plugin;