Skip to content

Commit e52dc97

Browse files
author
George Haberis
committed
ensure the dist folder exists for AB test build task
1 parent 98afe13 commit e52dc97

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ab-testing/scripts/build/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ const mvtDictArray = Array.from(
3737
);
3838

3939
console.log(`Writing ${mvtDictArray.length} MVT groups to ${flags['mvts']}`);
40+
41+
// Ensure the dist folder exists
42+
await Deno.mkdir('dist', { recursive: true });
43+
4044
// write the abTestDictArray to a file
4145
await Deno.writeTextFile(
4246
flags['ab-tests'],

0 commit comments

Comments
 (0)