for #2543 BREAKING CHANGE: semantic-release is now ESM-only. since it is used through its own executable, the impact on consuming projects should be minimal BREAKING CHANGE: references to plugin files in configs need to include the file extension because of executing in an ESM context
15 lines
371 B
JavaScript
15 lines
371 B
JavaScript
import SemanticReleaseError from '@semantic-release/error';
|
|
|
|
class InheritedError extends SemanticReleaseError {
|
|
constructor(message, code) {
|
|
super(message);
|
|
Error.captureStackTrace(this, this.constructor);
|
|
this.name = this.constructor.name;
|
|
this.code = code;
|
|
}
|
|
}
|
|
|
|
export default () => {
|
|
throw new InheritedError('Inherited error', 'EINHERITED');
|
|
}
|