Skip to content

Commit

Permalink
Entry point file [refactor]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Oct 5, 2020
1 parent 24dfbcc commit 8f16390
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .npmignore

This file was deleted.

9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* --------------------
* got-resume module
* ------------------*/

'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 @@
/* --------------------
* got-resume module
* Entry point
* ------------------*/

'use strict';
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
"name": "got-resume",
"version": "1.4.6",
"description": "Fetch via HTTP/HTTPS using got with automatic resume after network failures",
"main": "./lib/",
"main": "index.js",
"exports": {
".": "./index.js"
},
"files": [
"lib/**/*.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 @@ -10,7 +10,7 @@ const chai = require('chai'),
{expect} = chai,
pathJoin = require('path').join,
fs = require('fs-extra-promise'),
gotResume = require('../lib');
gotResume = require('../index.js');

// Constants
const URL_PREFIX = 'https://raw.githubusercontent.com/overlookmotel/got-resume/master/test/files/';
Expand Down

0 comments on commit 8f16390

Please sign in to comment.