diff --git a/.gitignore b/.gitignore index 7afe557..e4bc455 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules lib tmp +npm-debug.log diff --git a/package.json b/package.json index f6bab18..0fe0009 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "scripts": { "benchmark": "grunt benchmark", "test": "grunt test", - "prepublish": "grunt build" + "prepublish": "grunt build", + "preinstall": "grunt build" }, "devDependencies": { "coffee-script": "~1.6.3", diff --git a/src/index.litcoffee b/src/index.litcoffee index 5073fbc..4a772b3 100644 --- a/src/index.litcoffee +++ b/src/index.litcoffee @@ -112,7 +112,7 @@ Add a single row. @_startRow() for key, col in @cellMap - @_addCell(row[key] || "", col + 1) + @_addCell((if row[key] == 0 then 0 else row[key] || ""), col + 1) @_endRow() ##### addRows(rows: Array)