mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
fix(actions): explicitly import index.ts to fix types when moduleResolution is NodeNext (#12578)
This commit is contained in:
parent
b139390deb
commit
07b9ca802e
2 changed files with 6 additions and 1 deletions
5
.changeset/empty-jobs-impress.md
Normal file
5
.changeset/empty-jobs-impress.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Explicitly import index.ts to fix types when moduleResolution is NodeNext
|
|
@ -38,7 +38,7 @@ export default function astroIntegrationActionsRouteHandler({
|
||||||
}
|
}
|
||||||
|
|
||||||
const stringifiedActionsImport = JSON.stringify(
|
const stringifiedActionsImport = JSON.stringify(
|
||||||
viteID(new URL('./actions', params.config.srcDir)),
|
viteID(new URL('./actions/index.ts', params.config.srcDir)),
|
||||||
);
|
);
|
||||||
settings.injectedTypes.push({
|
settings.injectedTypes.push({
|
||||||
filename: ACTIONS_TYPES_FILE,
|
filename: ACTIONS_TYPES_FILE,
|
||||||
|
|
Loading…
Reference in a new issue