0
Fork 0
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:
Wes Souza 2024-12-02 09:48:01 -05:00 committed by GitHub
parent b139390deb
commit 07b9ca802e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Explicitly import index.ts to fix types when moduleResolution is NodeNext

View file

@ -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,