diff --git a/astro.config.js b/astro.config.ts similarity index 100% rename from astro.config.js rename to astro.config.ts diff --git a/package.json b/package.json index d4907d7..82e8429 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "version": "1.0.0", "author": "Sebastian Barrenechea (https://github.com/barrenechea)", "license": "ISC", - "type": "module", "engines": { "node": ">=20.0.0", "npm": ">=8.0.0" @@ -62,4 +61,4 @@ "astro lint" ] } -} +} \ No newline at end of file diff --git a/src/templates/Base.astro b/src/templates/Base.astro index 99595a8..aa06e8a 100644 --- a/src/templates/Base.astro +++ b/src/templates/Base.astro @@ -66,7 +66,7 @@ const filteredTitle = ogOverride || title.replace(' - Barrenechea', '');
{t('nav.fork')} { let files: string[] = []; diff --git a/tools/translateContent.ts b/tools/translateContent.ts index 34480d5..3222084 100644 --- a/tools/translateContent.ts +++ b/tools/translateContent.ts @@ -13,8 +13,8 @@ import { model } from './llm.ts'; import { translate } from './translator.ts'; // Derive the directory name from the current file's URL -const __dirname = path.dirname(fileURLToPath(`${import.meta.url}/../`)); -const contentDir = path.join(__dirname, 'src', 'content'); +const dirname = path.dirname(fileURLToPath(`${import.meta.url}/../`)); +const contentDir = path.join(dirname, 'src', 'content'); /** * Helper function to translate a file