mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Ensure built/local exists before producing typesMap.json (#52468)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user