@stacksjs/ts-cloud 0.7.120 → 0.7.121
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/bin/cli.js +398 -398
- package/dist/deploy/release-content.d.ts +37 -0
- package/dist/deploy/release-content.test.d.ts +1 -0
- package/dist/ui/access-denied.html +2 -2
- package/dist/ui/account/automation.html +4 -4
- package/dist/ui/account/security.html +2 -2
- package/dist/ui/applications/compose.html +4 -4
- package/dist/ui/applications/new.html +2 -2
- package/dist/ui/data/backups.html +3 -3
- package/dist/ui/data/services.html +4 -4
- package/dist/ui/data/volumes.html +4 -4
- package/dist/ui/index.html +3 -3
- package/dist/ui/infrastructure/topology.html +4 -4
- package/dist/ui/integrations.html +2 -2
- package/dist/ui/operations/alerts.html +4 -4
- package/dist/ui/operations/configuration.html +4 -4
- package/dist/ui/operations/jobs.html +4 -4
- package/dist/ui/operations/maintenance.html +4 -4
- package/dist/ui/operations/observability.html +3 -3
- package/dist/ui/operations/previews.html +4 -4
- package/dist/ui/operations/queue.html +4 -4
- package/dist/ui/operations/regions.html +4 -4
- package/dist/ui/operations/releases.html +4 -4
- package/dist/ui/operations/spend.html +3 -3
- package/dist/ui/operations/workloads.html +4 -4
- package/dist/ui/security.html +2 -2
- package/dist/ui/server/actions.html +4 -4
- package/dist/ui/server/activity.html +2 -2
- package/dist/ui/server/capacity.html +4 -4
- package/dist/ui/server/database.html +4 -4
- package/dist/ui/server/deployments.html +4 -4
- package/dist/ui/server/diagnostics.html +2 -2
- package/dist/ui/server/firewall.html +4 -4
- package/dist/ui/server/fleet.html +4 -4
- package/dist/ui/server/logs.html +3 -3
- package/dist/ui/server/metrics.html +4 -4
- package/dist/ui/server/security.html +2 -2
- package/dist/ui/server/services.html +2 -2
- package/dist/ui/server/sites.html +4 -4
- package/dist/ui/server/ssh-keys.html +4 -4
- package/dist/ui/server/team.html +4 -4
- package/dist/ui/server/terminal.html +2 -2
- package/dist/ui/serverless/alarms.html +4 -4
- package/dist/ui/serverless/assets.html +2 -2
- package/dist/ui/serverless/data.html +4 -4
- package/dist/ui/serverless/firewall.html +2 -2
- package/dist/ui/serverless/functions.html +4 -4
- package/dist/ui/serverless/logs.html +4 -4
- package/dist/ui/serverless/metrics.html +2 -2
- package/dist/ui/serverless/queues.html +4 -4
- package/dist/ui/serverless/secrets.html +4 -4
- package/dist/ui/serverless/traces.html +3 -3
- package/dist/ui/serverless.html +4 -4
- package/package.json +3 -3
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pre-flight check on what a site is about to ship.
|
|
3
|
+
*
|
|
4
|
+
* `existsSync(site.root)` was the only gate before this, and a directory
|
|
5
|
+
* existing says nothing about whether it holds a servable site. The failure it
|
|
6
|
+
* missed is specific and expensive: a static-site generator that renders into a
|
|
7
|
+
* SUBDIRECTORY of its output directory (BunPress writes `<outdir>/.bunpress`,
|
|
8
|
+
* and it is far from alone) leaves the configured `root` existing but holding
|
|
9
|
+
* only that one child. The tarball then ships `current/.bunpress/index.html`,
|
|
10
|
+
* the gateway serves `current/`, and every URL 404s while the deploy prints
|
|
11
|
+
* success and exits 0.
|
|
12
|
+
*
|
|
13
|
+
* So the check looks at the content, and when the content says the root is one
|
|
14
|
+
* level too high it says so by name instead of leaving it to be found in
|
|
15
|
+
* production.
|
|
16
|
+
*/
|
|
17
|
+
export interface ReleaseContentIssue {
|
|
18
|
+
level: 'error' | 'warning';
|
|
19
|
+
message: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CheckReleaseContentOptions {
|
|
22
|
+
/** The site's resolved `root`, as configured. */
|
|
23
|
+
root: string;
|
|
24
|
+
/** Site key, for messages. */
|
|
25
|
+
siteName: string;
|
|
26
|
+
/**
|
|
27
|
+
* Static sites are served by path from the release root, so a missing
|
|
28
|
+
* top-level `index.html` means the domain root 404s. An app site ships a
|
|
29
|
+
* source tree and has no such expectation.
|
|
30
|
+
*/
|
|
31
|
+
expectIndex: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Inspect what a site is about to package. Returns every issue found; the
|
|
35
|
+
* caller fails the deploy when any of them is an `error`.
|
|
36
|
+
*/
|
|
37
|
+
export declare function checkReleaseContent(options: CheckReleaseContentOptions): ReleaseContentIssue[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|