From 77b40f1ef481f3ef6f17c5567448121eda25af2b Mon Sep 17 00:00:00 2001 From: Renaud Heluin Date: Thu, 9 Nov 2023 15:39:53 +0000 Subject: [PATCH] feat: change bin --- lighthouse-plugin-ecoindex/bin.js | 2 +- lighthouse-plugin-ecoindex/package.json | 2 +- lighthouse-plugin-ecoindex/plugin.js | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) 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 }