mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
fix: injectTypes path (#11774)
This commit is contained in:
parent
826dc2a85a
commit
c6400ab99c
2 changed files with 8 additions and 1 deletions
5
.changeset/odd-donuts-impress.md
Normal file
5
.changeset/odd-donuts-impress.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fixes the path returned by `injectTypes`
|
|
@ -351,7 +351,9 @@ export async function runHookConfigDone({
|
||||||
content: injectedType.content,
|
content: injectedType.content,
|
||||||
});
|
});
|
||||||
|
|
||||||
return new URL(normalizedFilename, settings.config.root);
|
// It must be relative to dotAstroDir here and not inside normalizeInjectedTypeFilename
|
||||||
|
// because injectedTypes are handled relatively to the dotAstroDir already
|
||||||
|
return new URL(normalizedFilename, settings.dotAstroDir);
|
||||||
},
|
},
|
||||||
logger: getLogger(integration, logger),
|
logger: getLogger(integration, logger),
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Reference in a new issue