Skip to content

Commit

Permalink
fix: Build fails when outDir (other than the default) does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
thejackshelton committed Jun 9, 2024
1 parent 24a5b36 commit abc6d4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libs/qwikdev-astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ export default defineIntegration({
entrypoints = getQwikEntrypoints(srcDir, filter);

if ((await entrypoints).length !== 0) {
// Update the global dist directory
distDir = astroConfig.outDir.pathname;
await fsExtra.ensureDir(distDir);

addRenderer({
name: "@qwikdev/astro",
serverEntrypoint: resolve("../server.ts")
});

// Update the global dist directory
distDir = astroConfig.outDir.pathname;

// checks all windows platforms and removes drive ex: C:\\
if (os.platform() === "win32") {
distDir = distDir.substring(3);
Expand Down

0 comments on commit abc6d4b

Please sign in to comment.