Skip to content

Commit

Permalink
fix: fix module entry path directory
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Jul 27, 2018
1 parent c46b9b4 commit 8ee9a4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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": "r-server",
"version": "0.0.0-development",
"description": "A lightweight, extensible node.js web-server with inbuilt routing-engine, static file server, file upload handler, request body parser, middleware support and lots more",
"main": "index.js",
"main": "lib/main.js",
"scripts": {
"test": "BABEL_ENV=test nyc mocha --recursive",
"watch-test": "npm run test -- -w",
Expand Down
3 changes: 3 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export default {

/**
* returns an app instance
*@param {string} [configPath] - an optional relative path to a user defined config file
* defaults to .rsvrc.json
*@returns {RServerApp}
*/
instance(configPath) {
return new RServerApp(configPath);
Expand Down

0 comments on commit 8ee9a4c

Please sign in to comment.