Skip to content

Commit

Permalink
Fix package outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Skelton committed Mar 21, 2022
1 parent 38a41f9 commit 4d174d2
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-toes-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'axe-reporter-html': patch
---

Add missing type declarations.
5 changes: 5 additions & 0 deletions .changeset/tiny-boats-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'axe-reporter-html': patch
---

Add missing template to output directory.
2 changes: 0 additions & 2 deletions .npmignore

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"types": "lib/index.d.ts",
"files": [
"src",
"lib"
"lib",
"template.ejs"
],
"scripts": {
"lint": "eslint .",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function prepareResults({ inapplicable, passes, violations }: AxeResults) {
}

export default async function createHTMLReport(results: AxeResults) {
const templatePath = path.join(__dirname, './template.ejs')
const templatePath = path.join(__dirname, '../template.ejs')
const template = await fs.readFile(templatePath, 'utf8')

return ejs.render(template, prepareResults(results))
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"noEmit": false
},
"include": ["src"]
Expand Down

0 comments on commit 4d174d2

Please sign in to comment.