Skip to content

Commit 2e18dfd

Browse files
committed
build: default to diff in preview mode
1 parent 822e59d commit 2e18dfd

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/build/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const flags = parseFlags(Deno.args);
1515
if (flags.default ?? true) {
1616
flags.data ??= true;
1717
flags.maps ??= true;
18+
flags.diff ??= Deno.env.get("VERCEL_ENV") === "preview"
1819
flags.textures ??= true;
1920
flags.assets ??= true;
2021
flags.app ??= true;

app/build/steps/10_data.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//Imports
2-
import { clone, log, read, save } from "app/build/util.ts";
2+
import { log, read, save, clone } from "app/build/util.ts";
33
import { expandGlob } from "std/fs/mod.ts";
44
import { basename, dirname } from "std/path/mod.ts";
55

@@ -8,10 +8,8 @@ export default async function () {
88
log.step("extracting data");
99

1010
//Setup
11-
{
12-
await clone({ repo: "PokeAPI/api-data", dir: "app/build/cache/data" });
13-
await clone({ repo: "msikma/pokesprite", dir: "app/build/cache/creatures" });
14-
}
11+
await clone({ repo: "PokeAPI/api-data", dir: "app/build/cache/data" });
12+
await clone({ repo: "msikma/pokesprite", dir: "app/build/cache/creatures" });
1513

1614
//Extract gender data
1715
const genders = {} as {

0 commit comments

Comments
 (0)