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

Delete any stale generated files #77

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Delete any stale generated files #77

merged 4 commits into from
Apr 11, 2024

Conversation

razor-x
Copy link
Contributor

@razor-x razor-x commented Apr 8, 2024

No description provided.

@razor-x razor-x marked this pull request as ready for review April 9, 2024 23:58
@razor-x razor-x changed the title Delete routes folder before generating Delete any stale generated files Apr 9, 2024
const routes = createRoutes()
const routeNames = await Promise.all(routes.map(writeRoute))
const routeIndexName = await writeRoutesIndex(routes)
await deleteAsync([
Copy link
Contributor Author

@razor-x razor-x Apr 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't do deleteAsync(routeOutputPath) or we get an error (due to an unexpected interaction with tsx)

image

@razor-x razor-x force-pushed the hoist-gen-functions branch from 578fdda to 538de8d Compare April 10, 2024 05:54
@razor-x razor-x merged commit 61e4e22 into main Apr 11, 2024
18 checks passed
@razor-x razor-x deleted the hoist-gen-functions branch April 11, 2024 17:58
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.

1 participant