fix(package): add template to files list
This commit is contained in:
@@ -27,7 +27,8 @@
|
||||
"main": "dist/",
|
||||
"bin": {},
|
||||
"files": [
|
||||
"dist/"
|
||||
"dist/",
|
||||
"report.html.tpl"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
|
||||
@@ -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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user