Skip to content

Commit

Permalink
Await mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Mar 1, 2024
1 parent 07ffddb commit 9e5bda0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/project-config/src/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ const PATH_WEB_DIR_DIST_DOCUMENT = 'web/dist/server/Document.js'

const PATH_WEB_DIR_DIST_SERVER_ROUTEHOOKS = 'web/dist/server/routeHooks'
const PATH_WEB_DIR_DIST_RSC_ENTRIES = 'web/dist/rsc/entries.js'
// TODO (RSC): Should this be something else?
const PATH_WEB_DIR_ROUTE_MANIFEST = 'web/dist/server/route-manifest.json'

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/buildRouteManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function buildRouteManifest() {
console.log('routeManifest', JSON.stringify(routeManifest, null, 2))

const webRouteManifest = rwPaths.web.routeManifest
fs.mkdir(rwPaths.web.distServer, { recursive: true })
await fs.mkdir(rwPaths.web.distServer, { recursive: true })
return fs.writeFile(webRouteManifest, JSON.stringify(routeManifest, null, 2))
}

Expand Down

0 comments on commit 9e5bda0

Please sign in to comment.