Skip to content

Commit

Permalink
refactor: Harmonize project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Sep 25, 2017
1 parent cbdaee3 commit 524775e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
10 changes: 0 additions & 10 deletions .npmignore

This file was deleted.

10 changes: 10 additions & 0 deletions index.js
@@ -0,0 +1,10 @@
module.exports = SemanticReleaseError;

SemanticReleaseError.prototype = new Error();

function SemanticReleaseError(message, code) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
this.code = code;
}
7 changes: 5 additions & 2 deletions package.json
@@ -1,6 +1,7 @@
{
"name": "semantic-release-error",
"description": "errors with more than just a message",
"version": "0.0.0-development",
"author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
"bugs": {
"url": "https://github.com/semantic-release/error/issues"
Expand All @@ -19,13 +20,16 @@
"standard": "^10.0.3",
"tap": "^10.7.2"
},
"files": [
"index.js"
],
"homepage": "https://github.com/semantic-release/error#readme",
"keywords": [
"error",
"semantic-release"
],
"license": "MIT",
"main": "src/index.js",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/semantic-release/error.git"
Expand All @@ -38,5 +42,4 @@
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "nyc tap --no-cov test/*.js"
},
"version": "0.0.0-development"
}
9 changes: 0 additions & 9 deletions src/index.js

This file was deleted.

0 comments on commit 524775e

Please sign in to comment.