Skip to content

Commit

Permalink
Removed unnecessary lib/index.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nataniel López committed Oct 9, 2019
1 parent 50fe5d8 commit 9458819
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `emit()` method validates microservice-call response code

### Removed
- unnecessary `index.js`
- unnecessary `index.js` file
- unnecessary `lib/index.js` file

### Changed
- `main` js file from `index.js` to `lib/index.js`
9 changes: 0 additions & 9 deletions lib/index.js

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "@janiscommerce/event-emitter",
"version": "1.0.0",
"description": "A package for emit events",
"main": "lib/index.js",
"main": "lib/event-emitter.js",
"scripts": {
"test": "export TEST_ENV=true; mocha --exit -R nyan --recursive tests/",
"test-ci": "nyc --reporter=html --reporter=text mocha --recursive tests/",
"watch-test": "export TEST_ENV=true; mocha --exit -R nyan -w --recursive tests/",
"coverage": "nyc npm test",
"lint": "eslint lib/index.js lib/ tests/"
"lint": "eslint lib/ tests/"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion tests/event-emitter-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ const assert = require('assert');
const sandbox = require('sinon').createSandbox();
const MicroserviceCall = require('@janiscommerce/microservice-call');

const { EventEmitter, EventEmitterError } = require('./../lib');
const EventEmitter = require('./../lib/event-emitter');
const EventEmitterError = require('./../lib/event-emitter-error');

const setEnvVars = () => {
process.env.JANIS_SERVICE_NAME = 'some-service';
Expand Down

0 comments on commit 9458819

Please sign in to comment.