UNPKG

@levimc-lse/scaffold

Version:

A utility for assisting in the development of Legacy Script Engine plugins.

21 lines (20 loc) 780 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TypeScriptConfigurationMissingError = void 0; class TypeScriptConfigurationMissingError extends Error { constructor(filePath, missingProperty) { const message = `${filePath} is missing the required property \`${missingProperty}\`.`; super(message); this.msg = message; this.missingProperty = missingProperty; } getMessage() { return this.msg; } getSuggestion() { const suggestion = new Array(); suggestion.push(`Try checking if tsconfig.json includes the \`${this.missingProperty}\` configuration.`); return suggestion; } } exports.TypeScriptConfigurationMissingError = TypeScriptConfigurationMissingError;