fix(package): add template to files list

This commit is contained in:
Julien Fontanet
2017-01-27 19:16:04 +01:00
parent 4c47cc6ea8
commit 6839b4d8a4
3 changed files with 3 additions and 2 deletions

View File

@@ -27,7 +27,8 @@
"main": "dist/",
"bin": {},
"files": [
"dist/"
"dist/",
"report.html.tpl"
],
"engines": {
"node": ">=4"

View File

@@ -31,7 +31,7 @@ const pWriteFile = promisify(writeFile)
const currDate = new Date().toISOString().slice(0, 10)
const absolutePath = process.platform === 'linux' ? `file://${__dirname}` : `${__dirname}`
const htmlPath = `${__dirname}/../templates/xoReport.html`
const htmlPath = `${__dirname}/report.html.tpl`
const imgVates = `${absolutePath}/../images/logo.png` // Only absolute path is supported
const imgXo = `${absolutePath}/../images/xo.png`