Skip to content

Commit

Permalink
chore: add changeset and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed May 1, 2024
1 parent daa6ad2 commit 5f0f7dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-eyes-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrolicious/i18n": patch
---

Fixes a case where invalid dynamic params would cause wrong alternates to be generated
5 changes: 1 addition & 4 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
"./components/I18nClient.astro": "./assets/components/I18nClient.astro",
"./components/I18nHead.astro": "./assets/components/I18nHead.astro"
},
"files": [
"dist",
"assets"
],
"files": ["dist", "assets"],
"scripts": {
"dev": "tsup --watch",
"build": "tsup"
Expand Down
2 changes: 1 addition & 1 deletion package/src/sitemap/generate-sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { AstroConfig } from "astro";
import type { LinkItem, SitemapItemLoose } from "sitemap";
import type { Route } from "./integration.js";
import type { SitemapOptions } from "./options.js";
Expand All @@ -6,7 +7,6 @@ import {
handleTrailingSlash,
normalizeDynamicParams,
} from "./utils.js";
import type { AstroConfig } from "astro";

type NoUndefinedField<T> = {
[P in keyof T]-?: NonNullable<T[P]>;
Expand Down

0 comments on commit 5f0f7dd

Please sign in to comment.