Skip to content

Commit

Permalink
Ignore Excel owner files when converting XLS to Xform
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Jun 11, 2017
1 parent a8fa839 commit 4a4add5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ This tool expects a project to be sctructured as follows:
* support Google Sheets forms
* support Collect forms
* make form upload sequential
* ignore Excel temp files when converting to XML - ~$clinic.xlsx
* make error logs shorter
* add PNGout as somehow part of the form conversion step. But make sure it's cleanly separated from XML processing step
* remove `beta-` prefix from `--version` output
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medic-configurer-beta",
"version": "1.0.50",
"version": "1.0.51",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/lib/convert-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = (project, subDirectory, options) => {

return fs.readdir(formsDir)
.filter(name => name.endsWith('.xlsx'))
.filter(name => !name.startsWith('~$')) // ignore Excel "owner files"
.filter(name => !options.forms || options.forms.includes(fs.withoutExtension(name)))
.reduce((promiseChain, xls) => {
const originalSourcePath = `${formsDir}/${xls}`;
Expand Down

0 comments on commit 4a4add5

Please sign in to comment.