added writeFileSyncIfChanged to all the codegen

This commit is contained in:
Zai Shi
2025-02-19 12:11:17 -08:00
parent 229209f12a
commit 9a75d60f99
5 changed files with 20 additions and 8 deletions
+2 -2
View File
@@ -1,3 +1,5 @@
// This file needs to run without any dependencies.
import fs from "fs";
import path from "path";
@@ -448,8 +450,6 @@ function writeFileSyncIfChanged(path: string, content: string): void {
fs.writeFileSync(path, content);
}
// Copy package-template.json to package.json and apply macros
const packageTemplateContent = fs.readFileSync(path.join(srcDir, 'package-template.json'), 'utf-8');
const processedPackageJson = processMacros(packageTemplateContent, allEnvs);