UNPKG

@levimc-lse/scaffold

Version:

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

21 lines (20 loc) 763 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NodeJsConfigurationMissingError = void 0; class NodeJsConfigurationMissingError 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 package.json includes the \`${this.missingProperty}\` configuration.`); return suggestion; } } exports.NodeJsConfigurationMissingError = NodeJsConfigurationMissingError;