Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/adr/0002-workaround-docus-i18n-routing-bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const collectionName = computed(() =>
)

const { data: page } = await useAsyncData(
collectionName.value, // ← static key: "landing_ko"
collectionName.value, // ← static key: "landing_ko"
() => queryCollection(collectionName.value).path(route.path).first(),
)
if (!page.value) {
Expand All @@ -83,7 +83,7 @@ route-scoped key:

```ts
useAsyncData(
kebabCase(route.path), // ← per-route key
kebabCase(route.path), // ← per-route key
() => queryCollection(collectionName.value).path(route.path).first(),
)
```
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ export default defineConfig({
target: 'node22',
platform: 'node',
shims: true,
// Pin output extensions so the build always matches the `.mjs` / `.d.mts`
// paths declared in package.json `exports`. tsdown's default ESM extension
// for a `"type": "module"` package varies across versions (it emitted `.js`
// up to ~0.21.5 and `.mjs` afterwards); without this, a tsdown bump silently
// produces files the `exports` map doesn't point at, shipping a package whose
// entry points 404 (ERR_PACKAGE_PATH_NOT_EXPORTED).
outExtensions: () => ({ js: '.mjs', dts: '.d.mts' }),
})
7 changes: 7 additions & 0 deletions packages/eslint-config/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ export default defineConfig({
dts: true,
clean: true,
unbundle: true,
// Pin output extensions so the build always matches the `.mjs` / `.d.mts`
// paths declared in package.json `exports`. tsdown's default ESM extension
// for a `"type": "module"` package varies across versions (it emitted `.js`
// up to ~0.21.5 and `.mjs` afterwards); without this, a tsdown bump silently
// produces files the `exports` map doesn't point at, shipping a package whose
// entry points 404 (ERR_PACKAGE_PATH_NOT_EXPORTED).
outExtensions: () => ({ js: '.mjs', dts: '.d.mts' }),
})