diff --git a/packages/languages/index.ts b/packages/languages/index.ts deleted file mode 100644 index e47b7a4df..000000000 --- a/packages/languages/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { Language } from "./src/types"; -export { language } from "./src/language"; -export { wikiLink } from "./src/wikiLink"; -export { LANGUAGES_ISO_639_1 } from "./src/languages_iso_639_1"; -export { LANGUAGES_ISO_639_3 } from "./src/languages_iso_639_3"; diff --git a/packages/languages/package.json b/packages/languages/package.json index cadf17e1c..7d1403c32 100644 --- a/packages/languages/package.json +++ b/packages/languages/package.json @@ -24,7 +24,7 @@ "format": "prettier --write .", "format:check": "prettier --check .", "prepublishOnly": "pnpm run build", - "build": "tsup", + "build": "tsup src/index.ts --format cjs,esm --clean", "test": "vitest run", "type-check": "tsc" }, diff --git a/packages/languages/src/index.ts b/packages/languages/src/index.ts new file mode 100644 index 000000000..966d44bcf --- /dev/null +++ b/packages/languages/src/index.ts @@ -0,0 +1,5 @@ +export type { Language } from "./types"; +export { language } from "./language"; +export { wikiLink } from "./wikiLink"; +export { LANGUAGES_ISO_639_1 } from "./languages_iso_639_1"; +export { LANGUAGES_ISO_639_3 } from "./languages_iso_639_3";