@theholocron/cli 5.0.0-alpha.540 → 5.0.0-alpha.541

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/cli.mjs CHANGED
@@ -10050,7 +10050,7 @@ function vercelEngines(engines) {
10050
10050
  *
10051
10051
  * Output:
10052
10052
  * .vercel-deploy/
10053
- * api/webhook.mjs — the Vercel Function entry point (checked in, copied verbatim)
10053
+ * api/webhook.mjs — the Vercel Function entry point (checked in, copied verbatim; any other api/*.mjs too)
10054
10054
  * dist/index.mjs — the package's built library (run `delivery.build` first)
10055
10055
  * vercel.json — checked in, copied verbatim: `functions["api/webhook.mjs"]
10056
10056
  * .includeFiles: "node_modules/**"` forces Vercel to ship the
@@ -10137,6 +10137,7 @@ function stageDeploy(input) {
10137
10137
  mkdirSync(join(outDir, "api"), { recursive: true });
10138
10138
  mkdirSync(join(outDir, "dist"), { recursive: true });
10139
10139
  copyFileSync(join(packageDir, "api", "webhook.mjs"), join(outDir, "api", "webhook.mjs"));
10140
+ for (const entry of readdirSync(join(packageDir, "api")).filter((f) => f.endsWith(".mjs") && f !== "webhook.mjs")) copyFileSync(join(packageDir, "api", entry), join(outDir, "api", entry));
10140
10141
  copyFileSync(distIndex, join(outDir, "dist", "index.mjs"));
10141
10142
  copyFileSync(join(packageDir, "vercel.json"), join(outDir, "vercel.json"));
10142
10143
  const deployPkg = {