UNPKG

@levimc-lse/scaffold

Version:

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

20 lines (19 loc) 660 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NodeJsConfigurationFileNotFoundError = void 0; class NodeJsConfigurationFileNotFoundError extends Error { constructor(fileDirectory) { const message = `Could not find package.json in ${fileDirectory}.`; super(message); this.msg = message; } getMessage() { return this.msg; } getSuggestion() { const suggestion = new Array(); suggestion.push("Try `npm init` to initialize the project."); return suggestion; } } exports.NodeJsConfigurationFileNotFoundError = NodeJsConfigurationFileNotFoundError;