Skip to content

Commit

Permalink
Merge pull request #62 from dothq/staging
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett committed Jul 21, 2023
2 parents b17696e + 6d4c4e9 commit d5b985f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,19 +220,21 @@ const main = async () => {
) {
console.log("Compiling server...");

const entryPoints = ["app/main.ts"];
build({
entryPoints: ["app/main.ts"],
...options
});

if (
existsSync(
resolve(process.cwd(), "generated", "generated.tsx")
)
)
entryPoints.push("generated/generated.tsx");

build({
entryPoints,
...options
});
build({
entryPoints: ["generated/generated.tsx"],
...options,
outdir: resolve(options.outdir, "generated"),
});

console.log("Compiling pages...");

Expand Down

0 comments on commit d5b985f

Please sign in to comment.