@panoptic-it-solutions/coolify-setup 1.1.11 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/git.js CHANGED
@@ -44,10 +44,10 @@ export async function commitAndPushToDevelop(files) {
44
44
  if (!isGitRepo()) {
45
45
  run('git init');
46
46
  }
47
- // Stage all specified files
47
+ // Stage all specified files (use -A to also stage deletions)
48
48
  for (const file of files) {
49
49
  try {
50
- run(`git add "${file}"`);
50
+ run(`git add -A "${file}"`);
51
51
  }
52
52
  catch {
53
53
  // File might not exist, that's ok
package/dist/index.js CHANGED
@@ -85,11 +85,15 @@ async function main() {
85
85
  else {
86
86
  generatedFiles.push('package-lock.json');
87
87
  }
88
- // Add migrate script if postgres included
88
+ // Add migrate script and db folder if postgres included
89
89
  if (response.includePostgres) {
90
90
  if (project.type === 'nextjs') {
91
91
  generatedFiles.push('lib/db/migrate.ts');
92
+ generatedFiles.push('lib/db/'); // Include all moved db files (migrations, helpers, schema, queries)
92
93
  generatedFiles.push('tsconfig.json'); // May be modified with exclude
94
+ // Stage deletions of source db folder if files were moved
95
+ generatedFiles.push('db/');
96
+ generatedFiles.push('src/db/');
93
97
  }
94
98
  else {
95
99
  generatedFiles.push('scripts/migrate.ts');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoptic-it-solutions/coolify-setup",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "CLI tool for setting up Coolify deployment on Panoptic projects",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",