From 9d5215e554104070d67d552800122103976c295b Mon Sep 17 00:00:00 2001 From: Cherrie Chang Date: Wed, 30 Oct 2024 13:50:22 -0400 Subject: [PATCH] clean up errors --- packages/config/generateCitation.js | 9 ++++----- packages/config/rollup.js | 4 ---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/config/generateCitation.js b/packages/config/generateCitation.js index 3cc4224141..cbe329c43c 100644 --- a/packages/config/generateCitation.js +++ b/packages/config/generateCitation.js @@ -16,14 +16,13 @@ export default function generateCitation() { const rawCff = fs.readFileSync("./CITATION.cff", "utf-8").toString(); const cffData = yaml.parse(rawCff); if (cffData["preferred-citation"]) { - console.log("Found 'preferred-citation' in CITATION.cff"); preferredCitation = true; - } else { - console.log("No 'preferred-citation' found in CITATION.cff"); } return yaml.stringify(rawCff); } catch (error) { - console.log(`Error finding CITATION.cff: ${error.message}`); + console.log( + `No CITATION.cff file found: ${error.message}. If you would like to include a citation, please create a CITATION.cff file in the root of your repository.` + ); return null; } })(); @@ -61,7 +60,7 @@ export default function generateCitation() { }); return citationBibtex; } catch (error) { - console.log(`Error converting CITATION.cff to bibtex string: ${error.message}`); + console.log(`Error converting CITATION.cff to BibTex string: ${error.message}`); return null; } })(); diff --git a/packages/config/rollup.js b/packages/config/rollup.js index f731b3258d..35850ca610 100644 --- a/packages/config/rollup.js +++ b/packages/config/rollup.js @@ -45,10 +45,6 @@ const makeConfig = ({ /** @type{import("rollup-plugin-esbuild").Options} */ const esBuildPluginOptions = { - // define: { - // __APACITATION_: JSON.stringify(citationData.apa), - // __BIBTEXCITATION__: JSON.stringify(citationData.bibtex), - // }, loaders: { ".json": "json" }, };