diff --git a/lighthouse-plugin-ecoindex/bin.js b/lighthouse-plugin-ecoindex/bin.js index 37565c76..ff9d989a 100644 --- a/lighthouse-plugin-ecoindex/bin.js +++ b/lighthouse-plugin-ecoindex/bin.js @@ -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. diff --git a/lighthouse-plugin-ecoindex/package.json b/lighthouse-plugin-ecoindex/package.json index b21c116b..b6691401 100644 --- a/lighthouse-plugin-ecoindex/package.json +++ b/lighthouse-plugin-ecoindex/package.json @@ -9,7 +9,7 @@ }, "main": "./plugin.js", "bin": { - "lighthouse-ecoindex": "./index.js" + "lighthouse-ecoindex": "./bin.js" }, "version": "0.3.1", "type": "module", diff --git a/lighthouse-plugin-ecoindex/plugin.js b/lighthouse-plugin-ecoindex/plugin.js index 2fa4d6ea..c5c641b1 100644 --- a/lighthouse-plugin-ecoindex/plugin.js +++ b/lighthouse-plugin-ecoindex/plugin.js @@ -1,4 +1,3 @@ -import captureReport from './index.js' export default { // Additional audits to run on information Lighthouse gathered. audits: [ @@ -43,4 +42,3 @@ export default { ], }, } -export { captureReport as helper }