hatchkit 0.1.10 → 0.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.
Files changed (45) hide show
  1. package/dist/adopt.d.ts.map +1 -1
  2. package/dist/adopt.js +93 -97
  3. package/dist/adopt.js.map +1 -1
  4. package/dist/deploy/coolify-app.d.ts +12 -0
  5. package/dist/deploy/coolify-app.d.ts.map +1 -1
  6. package/dist/deploy/coolify-app.js +42 -101
  7. package/dist/deploy/coolify-app.js.map +1 -1
  8. package/dist/deploy/coolify-mongo.d.ts.map +1 -1
  9. package/dist/deploy/coolify-mongo.js +15 -3
  10. package/dist/deploy/coolify-mongo.js.map +1 -1
  11. package/dist/deploy/gh-actions-secrets.d.ts +44 -0
  12. package/dist/deploy/gh-actions-secrets.d.ts.map +1 -0
  13. package/dist/deploy/gh-actions-secrets.js +111 -0
  14. package/dist/deploy/gh-actions-secrets.js.map +1 -0
  15. package/dist/deploy/github.d.ts +10 -1
  16. package/dist/deploy/github.d.ts.map +1 -1
  17. package/dist/deploy/github.js +32 -3
  18. package/dist/deploy/github.js.map +1 -1
  19. package/dist/index.js +39 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/prompts.d.ts +54 -0
  22. package/dist/prompts.d.ts.map +1 -1
  23. package/dist/prompts.js +115 -20
  24. package/dist/prompts.js.map +1 -1
  25. package/dist/scaffold/app.js +1 -1
  26. package/dist/scaffold/app.js.map +1 -1
  27. package/dist/scaffold/infra.d.ts.map +1 -1
  28. package/dist/scaffold/infra.js +17 -8
  29. package/dist/scaffold/infra.js.map +1 -1
  30. package/dist/scaffold/manifest.d.ts.map +1 -1
  31. package/dist/scaffold/manifest.js +2 -1
  32. package/dist/scaffold/manifest.js.map +1 -1
  33. package/dist/scaffold/update.js +1 -1
  34. package/dist/scaffold/update.js.map +1 -1
  35. package/dist/templates/build-pipeline/deploy.yml.hbs +15 -5
  36. package/dist/utils/coolify-api.d.ts.map +1 -1
  37. package/dist/utils/coolify-api.js.map +1 -1
  38. package/dist/utils/coolify-server-ips.d.ts +26 -0
  39. package/dist/utils/coolify-server-ips.d.ts.map +1 -0
  40. package/dist/utils/coolify-server-ips.js +135 -0
  41. package/dist/utils/coolify-server-ips.js.map +1 -0
  42. package/dist/utils/errors.js +1 -1
  43. package/dist/utils/errors.js.map +1 -1
  44. package/package.json +2 -2
  45. package/scripts/release-prep.mjs +5 -23
@@ -2,12 +2,10 @@
2
2
  /*
3
3
  * release-prep — strict pre-release verification.
4
4
  *
5
- * Refuses to release if any of the three repos (hatchkit main,
6
- * infra submodule, starter submodule) has uncommitted or untracked
7
- * changes. Exits with a clear list of which repos need handling and
8
- * what's dirty in each — release scripts assume a clean baseline so
9
- * the version commit + tag, the npm publish, and the cross-repo push
10
- * all line up against the same set of trees.
5
+ * Refuses to release if the working tree has uncommitted or untracked
6
+ * changes. Exits with a clear list of what's dirty so the version
7
+ * commit + tag, the npm publish, and the push all line up against the
8
+ * same baseline.
11
9
  *
12
10
  * ALSO refuses when the local cli/package.json version is at-or-
13
11
  * behind the version published to npm. `npm version patch` increments
@@ -42,26 +40,10 @@ try {
42
40
  process.exit(1);
43
41
  }
44
42
 
45
- const repos = [
46
- { label: "hatchkit (main)", path: repoRoot, hint: `cd ${repoRoot}` },
47
- {
48
- label: "infra (submodule)",
49
- path: join(repoRoot, "infra"),
50
- hint: `cd ${join(repoRoot, "infra")}`,
51
- },
52
- {
53
- label: "starter (submodule)",
54
- path: join(repoRoot, "starter"),
55
- hint: `cd ${join(repoRoot, "starter")}`,
56
- },
57
- ];
43
+ const repos = [{ label: "hatchkit (main)", path: repoRoot, hint: `cd ${repoRoot}` }];
58
44
 
59
45
  const dirty = [];
60
46
  for (const r of repos) {
61
- // Submodule may not be initialized — skip silently rather than fail.
62
- // (`.git` is a file inside an initialized submodule, a dir at the root.)
63
- if (!existsSync(join(r.path, ".git"))) continue;
64
-
65
47
  let status;
66
48
  try {
67
49
  status = sh("git status --porcelain", { cwd: r.path });