fix bin path

This commit is contained in:
ido 2014-11-17 10:14:32 +02:00
parent 077cf75b25
commit 980cb66b67
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
"description": "Light weight templates for react -> write html get valid react code",
"main": "./src/reactTemplates.js",
"bin": {
"rt": "./bin/rt.js"
"rt": "./src/cli.js"
},
"scripts": {
"test": "node test/src/test.js"

View File

@ -168,9 +168,9 @@ function addIfNotThere(array, obj) {
}
function hasNonSimpleChildren(node) {
return _.any(node.children,function (child) {
return child.type === 'tag' && child.attribs[templateProp];
});
return _.any(node.children, function (child) {
return child.type === 'tag' && child.attribs[templateProp];
});
}
function convertHtmlToReact(node, context) {