Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(plugin): generate functionMetadata.json #293

Merged
merged 2 commits into from
Mar 1, 2023
Merged

Conversation

nmanu1
Copy link
Contributor

@nmanu1 nmanu1 commented Feb 28, 2023

This PR adds a step to the vite-plugin's build command (i.e. pages build) to generate functionMetadata.json. This file contains a mapping of the files in the functions directory to the names of the functions that are their default exports. If there is no top-level functions directory, functionMetadata.json is not generated.

J=SLAP-2625
TEST=manual

Point the locations starter to a local pack of PagesJS and see that the file is correctly generated when there is a functions directory, and is not generated if there is no functions directory.

@nmanu1 nmanu1 marked this pull request as ready for review February 28, 2023 17:14
@nmanu1 nmanu1 requested a review from a team as a code owner February 28, 2023 17:14
@nmanu1 nmanu1 merged commit 0d452a1 into main Mar 1, 2023
@nmanu1 nmanu1 deleted the dev/function-metadata branch March 1, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants