-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct entry resolution in manifest.json handling based on pack…
…age.json
- Loading branch information
Showing
5 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { CliLoggableError } from "../cli/CliLoggableError"; | ||
|
||
|
||
export class NodeJsConfigurationMainError extends Error implements CliLoggableError { | ||
private static MESSAGE: string = "The `main` configuration in package.json is incorrect."; | ||
|
||
public constructor() { | ||
super(NodeJsConfigurationMainError.MESSAGE); | ||
} | ||
|
||
public getMessage(): string { | ||
return NodeJsConfigurationMainError.MESSAGE; | ||
} | ||
|
||
public getSuggestion(): Array<string> { | ||
const suggestion: Array<string> = new Array<string>(); | ||
|
||
suggestion.push("Ensure the `main` field is set to be relative to the project's working directory."); | ||
|
||
return suggestion; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters