| 71 | }; |
| 72 | |
| 73 | const setupEnvironmentVariables = async () => { |
| 74 | const files = [ |
| 75 | { source: join("apps", "api"), target: ".env.local" }, |
| 76 | { source: join("apps", "app"), target: ".env.local" }, |
| 77 | { source: join("apps", "web"), target: ".env.local" }, |
| 78 | { source: join("packages", "cms"), target: ".env.local" }, |
| 79 | { source: join("packages", "database"), target: ".env" }, |
| 80 | { source: join("packages", "internationalization"), target: ".env.local" }, |
| 81 | ]; |
| 82 | |
| 83 | for (const { source, target } of files) { |
| 84 | await copyFile(join(source, ".env.example"), join(source, target)); |
| 85 | } |
| 86 | }; |
| 87 | |
| 88 | const setupOrm = (packageManager: PackageManagerName) => { |
| 89 | const filterCommand = packageManager === "npm" ? "--workspace" : "--filter"; |