Skip to content

Commit

Permalink
feat: change bin
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Nov 9, 2023
1 parent 3c3c9d8 commit 77b40f1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lighthouse-plugin-ecoindex/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ async function captureReport() {
console.log(`Mesure(s) finished 👋`)
}

export { captureReport }
captureReport()

/**
* Coerce output CLI input to `LH.SharedFlagsSettings['output']` or throw if not possible.
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-plugin-ecoindex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"main": "./plugin.js",
"bin": {
"lighthouse-ecoindex": "./index.js"
"lighthouse-ecoindex": "./bin.js"
},
"version": "0.3.1",
"type": "module",
Expand Down
2 changes: 0 additions & 2 deletions lighthouse-plugin-ecoindex/plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import captureReport from './index.js'
export default {
// Additional audits to run on information Lighthouse gathered.
audits: [
Expand Down Expand Up @@ -43,4 +42,3 @@ export default {
],
},
}
export { captureReport as helper }

0 comments on commit 77b40f1

Please sign in to comment.