Add dependency version constants and package management utility

This commit is contained in:
Aman Varshney
2025-03-18 15:47:22 +05:30
parent bda0d5ad09
commit b7ac81d496
10 changed files with 175 additions and 182 deletions

View File

@@ -42,27 +42,6 @@ export async function createProject(options: ProjectConfig): Promise<string> {
}
}
const envFiles = [
[
path.join(projectDir, "packages/server/_env"),
path.join(projectDir, "packages/server/.env"),
],
[
path.join(projectDir, "packages/client/_env"),
path.join(projectDir, "packages/client/.env"),
],
];
for (const [source, target] of envFiles) {
if (await fs.pathExists(source)) {
if (!(await fs.pathExists(target))) {
await fs.move(source, target);
} else {
await fs.remove(source);
}
}
}
await setupDatabase(
projectDir,
options.database,