starlight-links-validator 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libs/i18n.ts +1 -2
- package/libs/validation.ts +3 -1
- package/package.json +1 -1
package/libs/i18n.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { StarlightUserConfig } from '@astrojs/starlight/types'
|
|
2
|
-
|
|
3
1
|
import { ensureLeadingSlash, ensureTrailingSlash } from './path'
|
|
4
2
|
import type { Headings } from './remark'
|
|
3
|
+
import type { StarlightUserConfig } from './validation'
|
|
5
4
|
|
|
6
5
|
export function getLocaleConfig(config: StarlightUserConfig): LocaleConfig | undefined {
|
|
7
6
|
if (!config.locales || Object.keys(config.locales).length === 0) return
|
package/libs/validation.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { statSync } from 'node:fs'
|
|
|
2
2
|
import { posix } from 'node:path'
|
|
3
3
|
import { fileURLToPath } from 'node:url'
|
|
4
4
|
|
|
5
|
-
import type { StarlightUserConfig } from '@astrojs/starlight/types'
|
|
5
|
+
import type { StarlightUserConfig as StarlightUserConfigWithPlugins } from '@astrojs/starlight/types'
|
|
6
6
|
import type { AstroConfig, AstroIntegrationLogger } from 'astro'
|
|
7
7
|
import { bgGreen, black, blue, dim, green, red } from 'kleur/colors'
|
|
8
8
|
import picomatch from 'picomatch'
|
|
@@ -278,3 +278,5 @@ interface ValidationContext {
|
|
|
278
278
|
outputDir: URL
|
|
279
279
|
pages: Pages
|
|
280
280
|
}
|
|
281
|
+
|
|
282
|
+
export type StarlightUserConfig = Omit<StarlightUserConfigWithPlugins, 'plugins'>
|