Skip to content

Commit

Permalink
Change how module re-exported
Browse files Browse the repository at this point in the history
  • Loading branch information
adeyahya committed May 30, 2017
1 parent d0f2d0c commit 9918cd3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
.DS_Store
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "regenr",
"version": "1.1.0",
"version": "1.1.1",
"description": "ReactJs Generator",
"repository": "adeyahya/regenr",
"author": "Ade Yahya <[email protected]> (http://ihavemind.com/)",
Expand Down
2 changes: 1 addition & 1 deletion template.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var template = (() => {
var getIndex = (componentName, privateRep) => {
privateRep = privateRep || options.privateRep

return `export default "./${componentName}.js"`
return `module.exports = require("./${componentName}.js")`
}

var getReact = (componentName, style, cssModules) => {
Expand Down

0 comments on commit 9918cd3

Please sign in to comment.