Skip to content

Commit

Permalink
Add entry point in package root [refactor]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Apr 30, 2023
1 parent c93a5ab commit d4ccb9c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* --------------------
* yauzl-promise module
* Entry point
* ------------------*/

'use strict';

// Exports

module.exports = require('./lib/index.js');
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* --------------------
* yauzl-promise module
* Entry point
* ------------------*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "yauzl-promise",
"version": "2.1.3",
"description": "yauzl unzipping with Promises",
"main": "./lib/",
"main": "index.js",
"author": {
"name": "Overlook Motel"
},
Expand Down
2 changes: 1 addition & 1 deletion test/all.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const chai = require('chai'),
EventEmitter = require('events'),
Bluebird = require('bluebird'),
yauzlOriginal = require('yauzl'),
yauzl = require('../lib/');
yauzl = require('../index.js');

// Init
chai.config.includeStack = true;
Expand Down

0 comments on commit d4ccb9c

Please sign in to comment.