mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
added writeFileSyncIfChanged to all the codegen
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user