@theholocron/cli 5.0.0-alpha.540 → 5.0.0-alpha.542
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 +4 -2
- package/dist/cli.mjs.map +1 -1
- package/package.json +15 -15
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 = {
|
|
@@ -28944,7 +28945,8 @@ async function runSecretToFile(input, value, print, loader, logger = getLogger()
|
|
|
28944
28945
|
message: verdict.message
|
|
28945
28946
|
};
|
|
28946
28947
|
}
|
|
28947
|
-
|
|
28948
|
+
const env = input.environment ?? "<environment>";
|
|
28949
|
+
print(` next: send it where it runs with \`holocron sync <app> --env ${env}\` for a workspace app (sentinel, comlink), or \`holocron sync secrets --env ${env}\` for the repository's own destinations; then redeploy, because a deployment only gets variables when it is deployed`);
|
|
28948
28950
|
logger.info({
|
|
28949
28951
|
key: name,
|
|
28950
28952
|
status: "ok"
|