Ensure built/local exists before producing typesMap.json (#52468)

This commit is contained in:
Jake Bailey 2023-01-27 12:55:46 -08:00 committed by GitHub
parent 41edecd26d
commit ef2d363d43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -515,6 +515,7 @@ const { main: watchGuard, watch: watchWatchGuard } = entrypointBuildTask({
export const generateTypesMap = task({
name: "generate-types-map",
run: async () => {
await fs.promises.mkdir("./built/local", { recursive: true });
const source = "src/server/typesMap.json";
const target = "built/local/typesMap.json";
const contents = await fs.promises.readFile(source, "utf-8");