@webflow/cloud-app 0.1.1-beta.bad4bbe.0 → 1.0.0
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/README.md +14 -37
- package/dist/bindings.d.ts +7 -125
- package/dist/bindings.d.ts.map +1 -1
- package/dist/config/package-json.d.ts +2 -29
- package/dist/config/package-json.d.ts.map +1 -1
- package/dist/config/package-json.js +2 -2
- package/dist/config/package-json.js.map +1 -1
- package/dist/failure-diagnostic.d.ts +19 -0
- package/dist/failure-diagnostic.d.ts.map +1 -0
- package/dist/failure-diagnostic.js +140 -0
- package/dist/failure-diagnostic.js.map +1 -0
- package/dist/frameworks/astro/astro5.d.ts +0 -1
- package/dist/frameworks/astro/astro5.d.ts.map +1 -1
- package/dist/frameworks/astro/astro5.js +0 -5
- package/dist/frameworks/astro/astro5.js.map +1 -1
- package/dist/frameworks/astro/astro6.d.ts +0 -1
- package/dist/frameworks/astro/astro6.d.ts.map +1 -1
- package/dist/frameworks/astro/astro6.js +0 -5
- package/dist/frameworks/astro/astro6.js.map +1 -1
- package/dist/frameworks/astro/astro7.d.ts +0 -1
- package/dist/frameworks/astro/astro7.d.ts.map +1 -1
- package/dist/frameworks/astro/astro7.js +0 -5
- package/dist/frameworks/astro/astro7.js.map +1 -1
- package/dist/frameworks/astro/templates/astro.config.webflow.ts +1 -38
- package/dist/frameworks/astro/templates/v5/astro.config.mjs.template +0 -1
- package/dist/frameworks/astro/templates/v6/astro.config.mjs.template +0 -1
- package/dist/frameworks/astro/templates/v7/astro.config.mjs.template +0 -1
- package/dist/frameworks/base.d.ts +0 -6
- package/dist/frameworks/base.d.ts.map +1 -1
- package/dist/frameworks/base.js +0 -8
- package/dist/frameworks/base.js.map +1 -1
- package/dist/frameworks/nextjs/index.d.ts +0 -1
- package/dist/frameworks/nextjs/index.d.ts.map +1 -1
- package/dist/frameworks/nextjs/index.js +0 -5
- package/dist/frameworks/nextjs/index.js.map +1 -1
- package/dist/frameworks/nextjs/templates/next.config.ts.template +0 -1
- package/dist/frameworks/nextjs/templates/next.config.webflow.ts +1 -6
- package/dist/frameworks/registry.d.ts +1 -1
- package/dist/frameworks/registry.d.ts.map +1 -1
- package/dist/frameworks/types.d.ts +0 -2
- package/dist/frameworks/types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/pipeline.d.ts.map +1 -1
- package/dist/pipeline.js +0 -5
- package/dist/pipeline.js.map +1 -1
- package/dist/types.d.ts +0 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/wrangler.d.ts +7 -155
- package/dist/wrangler.d.ts.map +1 -1
- package/dist/wrangler.js +5 -1
- package/dist/wrangler.js.map +1 -1
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -36,38 +36,17 @@ const result = await buildApp({
|
|
|
36
36
|
console.log(result.framework, result.deploymentType, result.entrypointPath);
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Hosts can supply an optional public `assetVersionToken` through `BuildOptions`
|
|
40
|
-
or `BuildContext`. Next.js emits it through `deploymentId`; Astro emits it through
|
|
41
|
-
the adapter's `client.assetQueryParams` as `?dpl=<token>`. The token must be URL-safe,
|
|
42
|
-
at most 128 characters, and must not start with `dpl_`. This requires Next.js
|
|
43
|
-
14.1.4+ or Astro 5.15+. Existing callers without the input retain their framework
|
|
44
|
-
configuration. The token is public, not an authorization credential. Hosts
|
|
45
|
-
generate tokens and implement version-aware request routing. CSS `url()`
|
|
46
|
-
references may not carry the token.
|
|
47
|
-
|
|
48
|
-
Hosts that drive framework builders directly must await
|
|
49
|
-
`builder.validateInstalledDependencies()` after the final dependency install
|
|
50
|
-
and before executing the build command. `buildApp()` calls this hook automatically;
|
|
51
|
-
`getBuildCommand()` only returns the command and does not validate dependencies.
|
|
52
|
-
|
|
53
|
-
Known limitation: browser checks with Astro 5.18.2 and
|
|
54
|
-
`@astrojs/cloudflare` 12.6.13 found that stylesheet URLs carry the token, but
|
|
55
|
-
hydrated component entrypoints and their JavaScript imports do not. This occurs
|
|
56
|
-
at both `/` and `/app` mounts. The Astro 5.15+ requirement indicates API
|
|
57
|
-
availability, not complete asset coverage; Astro 5 token emission must not be
|
|
58
|
-
treated as full skew protection.
|
|
59
|
-
|
|
60
39
|
## Ports — running the engine anywhere
|
|
61
40
|
|
|
62
|
-
|
|
63
|
-
|
|
41
|
+
Everything environment-specific is injected, so the engine itself is pure build
|
|
42
|
+
logic: no auth, no secrets, no vendor SDKs baked in.
|
|
64
43
|
|
|
65
|
-
| Port | Required | Default |
|
|
66
|
-
| ------------ | -------- | ----------------------------------------- |
|
|
67
|
-
| `logger` | yes | `consoleLogger` / `silentLogger` provided |
|
|
68
|
-
| `runCommand` | yes | `nodeCommandRunner` provided |
|
|
69
|
-
| `telemetry` | no | `noopTelemetry` |
|
|
70
|
-
| `fs` | no | `nodeFileSystem` |
|
|
44
|
+
| Port | Required | Default | Why a host overrides it |
|
|
45
|
+
| ------------ | -------- | ----------------------------------------- | ---------------------------------------------------------------------- |
|
|
46
|
+
| `logger` | yes | `consoleLogger` / `silentLogger` provided | route output into a spinner, structured logs, etc. |
|
|
47
|
+
| `runCommand` | yes | `nodeCommandRunner` provided | control/sandbox how `npm`, the framework build, and `wrangler` execute |
|
|
48
|
+
| `telemetry` | no | `noopTelemetry` | forward build events into your own tracing |
|
|
49
|
+
| `fs` | no | `nodeFileSystem` | plug in a virtual filesystem (e.g. browser-based agents) |
|
|
71
50
|
|
|
72
51
|
## `webflow.json`
|
|
73
52
|
|
|
@@ -90,8 +69,8 @@ pin it) and **bindings are declared here** rather than in `wrangler.json`:
|
|
|
90
69
|
You declare the binding name (and, for R2/D1, the resource name) — Webflow Cloud
|
|
91
70
|
provisions the resource and namespaces it per environment. KV ids / D1
|
|
92
71
|
`database_id`s are assigned for you; omit them. Limits: up to 5 of each type; R2
|
|
93
|
-
bucket names are lowercase alphanumeric + hyphens, ≤27 chars.
|
|
94
|
-
|
|
72
|
+
bucket names are lowercase alphanumeric + hyphens, ≤27 chars. (`vars` is not
|
|
73
|
+
supported yet.)
|
|
95
74
|
|
|
96
75
|
The deploy-contract fields (`contract_version`, `framework`, `deployment_type`,
|
|
97
76
|
`entrypoint_path`, `skip_no_bundle`) are filled in by the build and validated
|
|
@@ -100,11 +79,9 @@ before output is produced.
|
|
|
100
79
|
|
|
101
80
|
## Development
|
|
102
81
|
|
|
103
|
-
From the repository root:
|
|
104
|
-
|
|
105
82
|
```bash
|
|
106
|
-
npm
|
|
107
|
-
npm test
|
|
108
|
-
npm run build
|
|
109
|
-
npm run type-check
|
|
83
|
+
npm install
|
|
84
|
+
npm test # jest
|
|
85
|
+
npm run build # tsc → dist/
|
|
86
|
+
npm run type-check
|
|
110
87
|
```
|
package/dist/bindings.d.ts
CHANGED
|
@@ -20,151 +20,33 @@ export declare const MAX_BINDINGS_PER_TYPE = 5;
|
|
|
20
20
|
export declare const KvBindingSchema: z.ZodObject<{
|
|
21
21
|
binding: z.ZodString;
|
|
22
22
|
id: z.ZodOptional<z.ZodString>;
|
|
23
|
-
},
|
|
24
|
-
binding: z.ZodString;
|
|
25
|
-
id: z.ZodOptional<z.ZodString>;
|
|
26
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
27
|
-
binding: z.ZodString;
|
|
28
|
-
id: z.ZodOptional<z.ZodString>;
|
|
29
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
23
|
+
}, z.core.$loose>;
|
|
30
24
|
export declare const R2BindingSchema: z.ZodObject<{
|
|
31
25
|
binding: z.ZodString;
|
|
32
26
|
bucket_name: z.ZodString;
|
|
33
|
-
},
|
|
34
|
-
binding: z.ZodString;
|
|
35
|
-
bucket_name: z.ZodString;
|
|
36
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
37
|
-
binding: z.ZodString;
|
|
38
|
-
bucket_name: z.ZodString;
|
|
39
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
27
|
+
}, z.core.$loose>;
|
|
40
28
|
export declare const D1BindingSchema: z.ZodObject<{
|
|
41
29
|
binding: z.ZodString;
|
|
42
30
|
database_name: z.ZodString;
|
|
43
31
|
database_id: z.ZodOptional<z.ZodString>;
|
|
44
32
|
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
45
|
-
},
|
|
46
|
-
binding: z.ZodString;
|
|
47
|
-
database_name: z.ZodString;
|
|
48
|
-
database_id: z.ZodOptional<z.ZodString>;
|
|
49
|
-
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
50
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
51
|
-
binding: z.ZodString;
|
|
52
|
-
database_name: z.ZodString;
|
|
53
|
-
database_id: z.ZodOptional<z.ZodString>;
|
|
54
|
-
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
55
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
33
|
+
}, z.core.$loose>;
|
|
56
34
|
export declare const BindingsSchema: z.ZodObject<{
|
|
57
35
|
kv: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
36
|
binding: z.ZodString;
|
|
59
37
|
id: z.ZodOptional<z.ZodString>;
|
|
60
|
-
},
|
|
61
|
-
binding: z.ZodString;
|
|
62
|
-
id: z.ZodOptional<z.ZodString>;
|
|
63
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
64
|
-
binding: z.ZodString;
|
|
65
|
-
id: z.ZodOptional<z.ZodString>;
|
|
66
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
67
|
-
r2: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
68
|
-
binding: z.ZodString;
|
|
69
|
-
bucket_name: z.ZodString;
|
|
70
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
71
|
-
binding: z.ZodString;
|
|
72
|
-
bucket_name: z.ZodString;
|
|
73
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
74
|
-
binding: z.ZodString;
|
|
75
|
-
bucket_name: z.ZodString;
|
|
76
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
77
|
-
d1: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
-
binding: z.ZodString;
|
|
79
|
-
database_name: z.ZodString;
|
|
80
|
-
database_id: z.ZodOptional<z.ZodString>;
|
|
81
|
-
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
82
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
83
|
-
binding: z.ZodString;
|
|
84
|
-
database_name: z.ZodString;
|
|
85
|
-
database_id: z.ZodOptional<z.ZodString>;
|
|
86
|
-
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
88
|
-
binding: z.ZodString;
|
|
89
|
-
database_name: z.ZodString;
|
|
90
|
-
database_id: z.ZodOptional<z.ZodString>;
|
|
91
|
-
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
92
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
93
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
94
|
-
kv: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
|
-
binding: z.ZodString;
|
|
96
|
-
id: z.ZodOptional<z.ZodString>;
|
|
97
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
98
|
-
binding: z.ZodString;
|
|
99
|
-
id: z.ZodOptional<z.ZodString>;
|
|
100
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
101
|
-
binding: z.ZodString;
|
|
102
|
-
id: z.ZodOptional<z.ZodString>;
|
|
103
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
38
|
+
}, z.core.$loose>>>;
|
|
104
39
|
r2: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
40
|
binding: z.ZodString;
|
|
106
41
|
bucket_name: z.ZodString;
|
|
107
|
-
},
|
|
108
|
-
binding: z.ZodString;
|
|
109
|
-
bucket_name: z.ZodString;
|
|
110
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
111
|
-
binding: z.ZodString;
|
|
112
|
-
bucket_name: z.ZodString;
|
|
113
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
42
|
+
}, z.core.$loose>>>;
|
|
114
43
|
d1: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
115
44
|
binding: z.ZodString;
|
|
116
45
|
database_name: z.ZodString;
|
|
117
46
|
database_id: z.ZodOptional<z.ZodString>;
|
|
118
47
|
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
database_name: z.ZodString;
|
|
122
|
-
database_id: z.ZodOptional<z.ZodString>;
|
|
123
|
-
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
124
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
125
|
-
binding: z.ZodString;
|
|
126
|
-
database_name: z.ZodString;
|
|
127
|
-
database_id: z.ZodOptional<z.ZodString>;
|
|
128
|
-
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
129
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
130
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
131
|
-
kv: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
|
-
binding: z.ZodString;
|
|
133
|
-
id: z.ZodOptional<z.ZodString>;
|
|
134
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
135
|
-
binding: z.ZodString;
|
|
136
|
-
id: z.ZodOptional<z.ZodString>;
|
|
137
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
138
|
-
binding: z.ZodString;
|
|
139
|
-
id: z.ZodOptional<z.ZodString>;
|
|
140
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
141
|
-
r2: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
|
-
binding: z.ZodString;
|
|
143
|
-
bucket_name: z.ZodString;
|
|
144
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
145
|
-
binding: z.ZodString;
|
|
146
|
-
bucket_name: z.ZodString;
|
|
147
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
148
|
-
binding: z.ZodString;
|
|
149
|
-
bucket_name: z.ZodString;
|
|
150
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
151
|
-
d1: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
152
|
-
binding: z.ZodString;
|
|
153
|
-
database_name: z.ZodString;
|
|
154
|
-
database_id: z.ZodOptional<z.ZodString>;
|
|
155
|
-
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
156
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
157
|
-
binding: z.ZodString;
|
|
158
|
-
database_name: z.ZodString;
|
|
159
|
-
database_id: z.ZodOptional<z.ZodString>;
|
|
160
|
-
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
162
|
-
binding: z.ZodString;
|
|
163
|
-
database_name: z.ZodString;
|
|
164
|
-
database_id: z.ZodOptional<z.ZodString>;
|
|
165
|
-
migrations_dir: z.ZodOptional<z.ZodString>;
|
|
166
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
167
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
48
|
+
}, z.core.$loose>>>;
|
|
49
|
+
}, z.core.$loose>;
|
|
168
50
|
export type WebflowBindings = z.infer<typeof BindingsSchema>;
|
|
169
51
|
/** Parse the raw `cloud.bindings` block. Returns undefined if it's absent/invalid-shaped. */
|
|
170
52
|
export declare function parseBindings(raw: unknown): WebflowBindings | undefined;
|
package/dist/bindings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAUvC,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAUvC,eAAO,MAAM,eAAe;;;iBAEZ,CAAC;AACjB,eAAO,MAAM,eAAe;;;iBAEZ,CAAC;AACjB,eAAO,MAAM,eAAe;;;;;iBAOZ,CAAC;AAEjB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;iBAMX,CAAC;AAEjB,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7D,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAGvE;AAED,+DAA+D;AAC/D,wBAAgB,cAAc,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,CAG7E;AAED,2GAA2G;AAC3G,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAgBvD;AAED,wFAAwF;AACxF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI,CAmBhE;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,eAAe,EACzB,IAAI,SAAgB,GACnB,YAAY,CAmBd"}
|
|
@@ -5,41 +5,14 @@ import { z } from 'zod';
|
|
|
5
5
|
* Only the fields used by the framework builder are validated here.
|
|
6
6
|
*/
|
|
7
7
|
export declare const PackageJsonSchema: z.ZodObject<{
|
|
8
|
-
/** Package name */
|
|
9
8
|
name: z.ZodOptional<z.ZodString>;
|
|
10
|
-
/** Package version */
|
|
11
9
|
version: z.ZodOptional<z.ZodString>;
|
|
12
|
-
/** Production dependencies (package name -> version specifier) */
|
|
13
10
|
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14
|
-
/** Development dependencies (package name -> version specifier) */
|
|
15
11
|
devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
16
|
-
/** Runtime declarations. `node` is deliberately retained as unknown so the
|
|
17
|
-
* toolchain resolver can warn and fall back for a malformed customer
|
|
18
|
-
* declaration rather than rejecting the entire package.json. */
|
|
19
12
|
engines: z.ZodOptional<z.ZodObject<{
|
|
20
13
|
node: z.ZodOptional<z.ZodUnknown>;
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
24
|
-
node: z.ZodOptional<z.ZodUnknown>;
|
|
25
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
version?: string | undefined;
|
|
28
|
-
name?: string | undefined;
|
|
29
|
-
dependencies?: Record<string, string> | undefined;
|
|
30
|
-
devDependencies?: Record<string, string> | undefined;
|
|
31
|
-
engines?: z.objectOutputType<{
|
|
32
|
-
node: z.ZodOptional<z.ZodUnknown>;
|
|
33
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
version?: string | undefined;
|
|
36
|
-
name?: string | undefined;
|
|
37
|
-
dependencies?: Record<string, string> | undefined;
|
|
38
|
-
devDependencies?: Record<string, string> | undefined;
|
|
39
|
-
engines?: z.objectInputType<{
|
|
40
|
-
node: z.ZodOptional<z.ZodUnknown>;
|
|
41
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
42
|
-
}>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
43
16
|
/**
|
|
44
17
|
* Package.json structure (minimal fields we need).
|
|
45
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/config/package-json.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/config/package-json.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;iBAkB5B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAoBpE"}
|
|
@@ -49,9 +49,9 @@ exports.PackageJsonSchema = zod_1.z.object({
|
|
|
49
49
|
/** Package version */
|
|
50
50
|
version: zod_1.z.string().optional(),
|
|
51
51
|
/** Production dependencies (package name -> version specifier) */
|
|
52
|
-
dependencies: zod_1.z.record(zod_1.z.string()).optional(),
|
|
52
|
+
dependencies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
53
53
|
/** Development dependencies (package name -> version specifier) */
|
|
54
|
-
devDependencies: zod_1.z.record(zod_1.z.string()).optional(),
|
|
54
|
+
devDependencies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
55
55
|
/** Runtime declarations. `node` is deliberately retained as unknown so the
|
|
56
56
|
* toolchain resolver can warn and fall back for a malformed customer
|
|
57
57
|
* declaration rather than rejecting the entire package.json. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-json.js","sourceRoot":"","sources":["../../src/config/package-json.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,0CAoBC;AAhED,4CAA8B;AAC9B,gDAAkC;AAElC,6BAAwB;AAExB;;;;GAIG;AACU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,mBAAmB;IACnB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,sBAAsB;IACtB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,kEAAkE;IAClE,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"package-json.js","sourceRoot":"","sources":["../../src/config/package-json.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,0CAoBC;AAhED,4CAA8B;AAC9B,gDAAkC;AAElC,6BAAwB;AAExB;;;;GAIG;AACU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,mBAAmB;IACnB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,sBAAsB;IACtB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,kEAAkE;IAClE,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzD,mEAAmE;IACnE,eAAe,EAAE,OAAC,CAAC,MAA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ycle-safe cause chain, to a
|
|
4
|
+
* `BuildFailureDiagnostic`: a `BuildFailureKind` from `BUILD_FAILURE_KINDS`, a
|
|
5
|
+
* bounded snake_case code and the optional
|
|
6
|
+
* `BuildFailureStage` it was called with. These values are safe to attach to
|
|
7
|
+
* telemetry and never include error messages or stacks.
|
|
8
|
+
*/
|
|
9
|
+
export declare const BUILD_FAILURE_KINDS: readonly ["detection", "validation", "config", "build", "toolchain", "command", "unknown"];
|
|
10
|
+
export type BuildFailureKind = (typeof BUILD_FAILURE_KINDS)[number];
|
|
11
|
+
export type BuildFailureStage = 'detect' | 'validate' | 'installDependencies' | 'prepareConfig' | 'build' | 'postBuild' | 'wranglerDryRun' | 'package' | 'upload' | 'unknown';
|
|
12
|
+
export interface BuildFailureDiagnostic {
|
|
13
|
+
kind: BuildFailureKind;
|
|
14
|
+
/** Bounded snake_case sub-code, e.g. 'npm_eresolve', 'node_provision_failed', 'command_failed'. */
|
|
15
|
+
code: string;
|
|
16
|
+
stage?: BuildFailureStage;
|
|
17
|
+
}
|
|
18
|
+
export declare function diagnoseBuildFailure(error: unknown, stage?: BuildFailureStage): BuildFailureDiagnostic;
|
|
19
|
+
//# sourceMappingURL=failure-diagnostic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failure-diagnostic.d.ts","sourceRoot":"","sources":["../src/failure-diagnostic.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAYH,eAAO,MAAM,mBAAmB,4FAQtB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GACzB,QAAQ,GACR,UAAU,GACV,qBAAqB,GACrB,eAAe,GACf,OAAO,GACP,WAAW,GACX,gBAAgB,GAChB,SAAS,GACT,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,gBAAgB,CAAC;IACvB,mGAAmG;IACnG,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC3B;AAyFD,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,EACd,KAAK,CAAC,EAAE,iBAAiB,GACxB,sBAAsB,CAuCxB"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Public build-failure diagnostics for hosts. `diagnoseBuildFailure` maps an
|
|
4
|
+
* error, walking a bounded and cycle-safe cause chain, to a
|
|
5
|
+
* `BuildFailureDiagnostic`: a `BuildFailureKind` from `BUILD_FAILURE_KINDS`, a
|
|
6
|
+
* bounded snake_case code and the optional
|
|
7
|
+
* `BuildFailureStage` it was called with. These values are safe to attach to
|
|
8
|
+
* telemetry and never include error messages or stacks.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.BUILD_FAILURE_KINDS = void 0;
|
|
12
|
+
exports.diagnoseBuildFailure = diagnoseBuildFailure;
|
|
13
|
+
const errors_1 = require("./errors");
|
|
14
|
+
const errors_2 = require("./frameworks/errors");
|
|
15
|
+
const command_runner_1 = require("./ports/command-runner");
|
|
16
|
+
const errors_3 = require("./toolchain/errors");
|
|
17
|
+
exports.BUILD_FAILURE_KINDS = [
|
|
18
|
+
'detection',
|
|
19
|
+
'validation',
|
|
20
|
+
'config',
|
|
21
|
+
'build',
|
|
22
|
+
'toolchain',
|
|
23
|
+
'command',
|
|
24
|
+
'unknown',
|
|
25
|
+
];
|
|
26
|
+
const MAX_CAUSE_LINKS = 5;
|
|
27
|
+
const CODE_PATTERN = /^[a-z0-9_]{1,40}$/;
|
|
28
|
+
const NPM_ERROR_CODE_PATTERN = /npm (?:ERR!|error) code (\S+)/;
|
|
29
|
+
// Subprocess output can contain project-controlled text. Only known codes may
|
|
30
|
+
// become telemetry values; a character/length bound does not bound cardinality.
|
|
31
|
+
// This is a curated telemetry allowlist, not an exhaustive npm error registry.
|
|
32
|
+
// References for npm codes, usage errors, integrity errors, and system/DNS errors:
|
|
33
|
+
// https://github.com/npm/cli/blob/v11.4.2/lib/utils/error-message.js
|
|
34
|
+
// https://github.com/npm/cli/blob/v11.4.2/lib/base-cmd.js
|
|
35
|
+
// https://github.com/npm/ssri/blob/main/lib/index.js
|
|
36
|
+
// https://docs.libuv.org/en/v1.x/errors.html#error-constants
|
|
37
|
+
// Legacy request socket timeout: https://github.com/request/request/blob/master/request.js
|
|
38
|
+
const NPM_ERROR_CODES = new Set([
|
|
39
|
+
'ERESOLVE',
|
|
40
|
+
'ETARGET',
|
|
41
|
+
'E404',
|
|
42
|
+
'E401',
|
|
43
|
+
'E403',
|
|
44
|
+
'EINTEGRITY',
|
|
45
|
+
'ENOTFOUND',
|
|
46
|
+
'EAI_AGAIN',
|
|
47
|
+
'ECONNRESET',
|
|
48
|
+
'ECONNREFUSED',
|
|
49
|
+
'ETIMEDOUT',
|
|
50
|
+
'ESOCKETTIMEDOUT',
|
|
51
|
+
'ENETUNREACH',
|
|
52
|
+
'EACCES',
|
|
53
|
+
'EPERM',
|
|
54
|
+
'ENOSPC',
|
|
55
|
+
'ENOENT',
|
|
56
|
+
'EEXIST',
|
|
57
|
+
'EUSAGE',
|
|
58
|
+
'EBADENGINE',
|
|
59
|
+
]);
|
|
60
|
+
const NODE_TOOLCHAIN_CODES = {
|
|
61
|
+
NVM_PROVISION_FAILED: 'node_provision_failed',
|
|
62
|
+
NODE_RUNTIME_VERIFICATION_FAILED: 'node_runtime_verification_failed',
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Hosts carry structurally identical framework error trees with no inheritance
|
|
66
|
+
* link to this package — the CLI's legacy builder and cosmic-builder's legacy
|
|
67
|
+
* engine each define their own `Framework*Error` classes — so `name` is the
|
|
68
|
+
* only shared contract, and nothing else about the object is inspected.
|
|
69
|
+
*/
|
|
70
|
+
const FRAMEWORK_ERROR_NAMES = {
|
|
71
|
+
FrameworkDetectionError: { kind: 'detection', code: 'detection_failed' },
|
|
72
|
+
FrameworkValidationError: { kind: 'validation', code: 'validation_failed' },
|
|
73
|
+
FrameworkConfigError: { kind: 'config', code: 'config_failed' },
|
|
74
|
+
FrameworkBuildError: { kind: 'build', code: 'build_failed' },
|
|
75
|
+
};
|
|
76
|
+
function boundCode(kind, code) {
|
|
77
|
+
if (typeof code === 'string' && CODE_PATTERN.test(code))
|
|
78
|
+
return code;
|
|
79
|
+
return kind === 'command' ? 'command_failed' : `${kind}_unknown`;
|
|
80
|
+
}
|
|
81
|
+
function diagnostic(kind, code, stage) {
|
|
82
|
+
return { kind, code: boundCode(kind, code), stage };
|
|
83
|
+
}
|
|
84
|
+
function commandFailureCode(error) {
|
|
85
|
+
const match = NPM_ERROR_CODE_PATTERN.exec(error.stderr) ?? NPM_ERROR_CODE_PATTERN.exec(error.stdout);
|
|
86
|
+
if (!match || !NPM_ERROR_CODES.has(match[1].toUpperCase()))
|
|
87
|
+
return 'command_failed';
|
|
88
|
+
return `npm_${match[1].toLowerCase()}`;
|
|
89
|
+
}
|
|
90
|
+
function causeOf(error) {
|
|
91
|
+
if (typeof error !== 'object' || error === null)
|
|
92
|
+
return undefined;
|
|
93
|
+
return error.cause;
|
|
94
|
+
}
|
|
95
|
+
function frameworkErrorByName(error) {
|
|
96
|
+
if (typeof error !== 'object' || error === null)
|
|
97
|
+
return undefined;
|
|
98
|
+
const { name } = error;
|
|
99
|
+
if (typeof name !== 'string' || !Object.hasOwn(FRAMEWORK_ERROR_NAMES, name))
|
|
100
|
+
return undefined;
|
|
101
|
+
return FRAMEWORK_ERROR_NAMES[name];
|
|
102
|
+
}
|
|
103
|
+
function diagnoseBuildFailure(error, stage) {
|
|
104
|
+
const seen = new Set();
|
|
105
|
+
let current = error;
|
|
106
|
+
for (let link = 0; link < MAX_CAUSE_LINKS; link++) {
|
|
107
|
+
if (seen.has(current))
|
|
108
|
+
break;
|
|
109
|
+
seen.add(current);
|
|
110
|
+
if (current instanceof errors_2.FrameworkDetectionError) {
|
|
111
|
+
return diagnostic('detection', 'detection_failed', stage);
|
|
112
|
+
}
|
|
113
|
+
if (current instanceof errors_2.FrameworkValidationError) {
|
|
114
|
+
return diagnostic('validation', 'validation_failed', stage);
|
|
115
|
+
}
|
|
116
|
+
if (current instanceof errors_2.FrameworkConfigError) {
|
|
117
|
+
return diagnostic('config', 'config_failed', stage);
|
|
118
|
+
}
|
|
119
|
+
if (current instanceof errors_2.FrameworkBuildError) {
|
|
120
|
+
return diagnostic('build', 'build_failed', stage);
|
|
121
|
+
}
|
|
122
|
+
if (current instanceof errors_3.NodeToolchainError) {
|
|
123
|
+
return diagnostic('toolchain', NODE_TOOLCHAIN_CODES[current.code], stage);
|
|
124
|
+
}
|
|
125
|
+
if (current instanceof command_runner_1.CommandError) {
|
|
126
|
+
return diagnostic('command', commandFailureCode(current), stage);
|
|
127
|
+
}
|
|
128
|
+
const frameworkByName = frameworkErrorByName(current);
|
|
129
|
+
if (frameworkByName) {
|
|
130
|
+
return diagnostic(frameworkByName.kind, frameworkByName.code, stage);
|
|
131
|
+
}
|
|
132
|
+
if (current instanceof errors_1.WebflowAppError)
|
|
133
|
+
break;
|
|
134
|
+
current = causeOf(current);
|
|
135
|
+
if (current === undefined)
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
return diagnostic('unknown', 'unknown', stage);
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=failure-diagnostic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failure-diagnostic.js","sourceRoot":"","sources":["../src/failure-diagnostic.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAkIH,oDA0CC;AA1KD,qCAA2C;AAC3C,gDAK6B;AAC7B,2DAAsD;AACtD,+CAAuF;AAE1E,QAAA,mBAAmB,GAAG;IACjC,WAAW;IACX,YAAY;IACZ,QAAQ;IACR,OAAO;IACP,WAAW;IACX,SAAS;IACT,SAAS;CACD,C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AE,MAAM;QAE9C,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAC3B,IAAI,OAAO,KAAK,SAAS;YAAE,MAAM;IACnC,CAAC;IAED,OAAO,UAAU,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -21,7 +21,6 @@ export declare class Astro5Builder extends FrameworkBuilder {
|
|
|
21
21
|
getWranglerTemplatePath(): string;
|
|
22
22
|
getAdditionalConfigFiles(): string[];
|
|
23
23
|
prepareConfig(): Promise<void>;
|
|
24
|
-
validateInstalledDependencies(): Promise<void>;
|
|
25
24
|
getBuildCommand(): string;
|
|
26
25
|
getNodeVersionRequirement(): NodeVersionRequirement;
|
|
27
26
|
static getOutputDeployMetadata(): BuildOutput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astro5.d.ts","sourceRoot":"","sources":["../../../src/frameworks/astro/astro5.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"astro5.d.ts","sourceRoot":"","sources":["../../../src/frameworks/astro/astro5.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAelB,qBAAa,aAAc,SAAQ,gBAAgB;IACjD,OAAgB,aAAa,SAAW;IAMxC,IAAI,IAAI,IAAI,aAAa,CAOxB;IAEQ,mBAAmB,IAAI,MAAM,GAAG,SAAS;IAQlD;;;;;;OAMG;WACa,MAAM,CAAC,WAAW,EAAE,WAAW,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,eAAe;IAgCtF,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IA6C/B,oBAAoB,IAAI,cAAc;IAOtC,uBAAuB,IAAI,kBAAkB,EAAE;IAUzC,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAmC1C,gBAAgB,IAAI,mBAAmB;IAQvC,qBAAqB,IAAI,MAAM,EAAE;IAIjC,uBAAuB,IAAI,MAAM;IAIjC,wBAAwB,IAAI,MAAM,EAAE;IAS9B,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAkEpC,eAAe,IAAI,MAAM;IAIzB,yBAAyB,IAAI,sBAAsB;WAWnC,uBAAuB,IAAI,WAAW;CAUvD"}
|
|
@@ -45,7 +45,6 @@ exports.Astro5Builder = void 0;
|
|
|
45
45
|
* - Uses platformProxy for local dev
|
|
46
46
|
*/
|
|
47
47
|
const path = __importStar(require("node:path"));
|
|
48
|
-
const assetVersionToken_1 = require("../../assetVersionToken");
|
|
49
48
|
const fs = __importStar(require("node:fs"));
|
|
50
49
|
const base_1 = require("../base");
|
|
51
50
|
const errors_1 = require("../errors");
|
|
@@ -236,7 +235,6 @@ class Astro5Builder extends base_1.FrameworkBuilder {
|
|
|
236
235
|
await (0, utils_1.envsubst)(log, templatePath, destPath, {
|
|
237
236
|
...process.env,
|
|
238
237
|
...userEnv,
|
|
239
|
-
...(0, assetVersionToken_1.assetVersionTemplateEnvironment)(this.ctx.assetVersionToken),
|
|
240
238
|
});
|
|
241
239
|
// Copy webflow-loader.ts.
|
|
242
240
|
const loader = this.getWebflowLoader();
|
|
@@ -251,9 +249,6 @@ class Astro5Builder extends base_1.FrameworkBuilder {
|
|
|
251
249
|
// ───────────────────────────────────────────────────────────────────────────
|
|
252
250
|
// BUILD
|
|
253
251
|
// ───────────────────────────────────────────────────────────────────────────
|
|
254
|
-
async validateInstalledDependencies() {
|
|
255
|
-
(0, assetVersionToken_1.assertAssetVersionFrameworkSupport)(this.ctx.assetVersionToken, 'astro', this.ctx.cwd);
|
|
256
|
-
}
|
|
257
252
|
getBuildCommand() {
|
|
258
253
|
return 'astro build';
|
|
259
254
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astro5.js","sourceRoot":"","sources":["../../../src/frameworks/astro/astro5.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;GASG;AACH,gDAAkC;AAClC
|
|
1
|
+
{"version":3,"file":"astro5.js","sourceRoot":"","sources":["../../../src/frameworks/astro/astro5.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;GASG;AACH,gDAAkC;AAClC,4CAA8B;AAE9B,kCAA2C;AAY3C,sCAAqD;AACrD,uCAOqB;AAErB,uCAAuC;AACvC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AAC9D,MAAM,oBAAoB,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAE/D,MAAa,aAAc,SAAQ,uBAAgB;IACjD,MAAM,CAAU,aAAa,GAAG,OAAO,CAAC;IAExC,8EAA8E;IAC9E,iBAAiB;IACjB,8EAA8E;IAE9E,IAAI,IAAI;QACN,OAAO;YACL,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,OAAO;SACrB,CAAC;IACJ,CAAC;IAEQ,mBAAmB;QAC1B,OAAO,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED,8EAA8E;IAC9E,YAAY;IACZ,8EAA8E;IAE9E;;;;;;OAMG;IACH,MAAM,CAAU,MAAM,CAAC,WAAwB,EAAE,WAAyB;QACxE,MAAM,kBAAkB,GAAG,WAAW,EAAE,KAAK,EAAE,SAAS,CAAC;QAEzD,gEAAgE;QAChE,IAAI,kBAAkB,IAAI,kBAAkB,KAAK,OAAO,EAAE,CAAC;YACzD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC7B,CAAC;QAED,MAAM,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,MAAM;YACxB,mBAAmB,EAAE,CAAC,YAAY,CAAC;YACnC,eAAe,EAAE,0BAA0B;YAC3C,cAAc,EAAE,KAAK;YACrB,2DAA2D;YAC3D,eAAe,EAAE,YAAY;SAC9B,CAAC;IACJ,CAAC;;AAnRH,sCAoRC"}
|
|
@@ -21,7 +21,6 @@ export declare class Astro6Builder extends FrameworkBuilder {
|
|
|
21
21
|
getWranglerTemplatePath(): string;
|
|
22
22
|
getAdditionalConfigFiles(): string[];
|
|
23
23
|
prepareConfig(): Promise<void>;
|
|
24
|
-
validateInstalledDependencies(): Promise<void>;
|
|
25
24
|
getBuildCommand(): string;
|
|
26
25
|
getNodeVersionRequirement(): NodeVersionRequirement;
|
|
27
26
|
static getOutputDeployMetadata(): BuildOutput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astro6.d.ts","sourceRoot":"","sources":["../../../src/frameworks/astro/astro6.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"astro6.d.ts","sourceRoot":"","sources":["../../../src/frameworks/astro/astro6.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAiBlB,qBAAa,aAAc,SAAQ,gBAAgB;IACjD,OAAgB,aAAa,SAAW;IAMxC,IAAI,IAAI,IAAI,aAAa,CAOxB;IAEQ,mBAAmB,IAAI,MAAM,GAAG,SAAS;IAQlD;;;;;;OAMG;WACa,MAAM,CAAC,WAAW,EAAE,WAAW,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,eAAe;IAgCtF,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAoD/B,oBAAoB,IAAI,cAAc;IAWtC,uBAAuB,IAAI,kBAAkB,EAAE;IAUzC,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IA8C1C,gBAAgB,IAAI,mBAAmB;IAQvC,qBAAqB,IAAI,MAAM,EAAE;IAIjC,uBAAuB,IAAI,MAAM;IAIjC,wBAAwB,IAAI,MAAM,EAAE;IAS9B,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAkEpC,eAAe,IAAI,MAAM;IAIzB,yBAAyB,IAAI,sBAAsB;WAWnC,uBAAuB,IAAI,WAAW;CAkBvD"}
|
|
@@ -46,7 +46,6 @@ exports.Astro6Builder = void 0;
|
|
|
46
46
|
* - wrangler.json main: "@astrojs/cloudflare/entrypoints/server"
|
|
47
47
|
*/
|
|
48
48
|
const path = __importStar(require("node:path"));
|
|
49
|
-
const assetVersionToken_1 = require("../../assetVersionToken");
|
|
50
49
|
const fs = __importStar(require("node:fs"));
|
|
51
50
|
const base_1 = require("../base");
|
|
52
51
|
const errors_1 = require("../errors");
|
|
@@ -257,7 +256,6 @@ class Astro6Builder extends base_1.FrameworkBuilder {
|
|
|
257
256
|
await (0, utils_1.envsubst)(log, templatePath, destPath, {
|
|
258
257
|
...process.env,
|
|
259
258
|
...userEnv,
|
|
260
|
-
...(0, assetVersionToken_1.assetVersionTemplateEnvironment)(this.ctx.assetVersionToken),
|
|
261
259
|
});
|
|
262
260
|
// Copy webflow-loader.ts.
|
|
263
261
|
const loader = this.getWebflowLoader();
|
|
@@ -272,9 +270,6 @@ class Astro6Builder extends base_1.FrameworkBuilder {
|
|
|
272
270
|
// ───────────────────────────────────────────────────────────────────────────
|
|
273
271
|
// BUILD
|
|
274
272
|
// ───────────────────────────────────────────────────────────────────────────
|
|
275
|
-
async validateInstalledDependencies() {
|
|
276
|
-
(0, assetVersionToken_1.assertAssetVersionFrameworkSupport)(this.ctx.assetVersionToken, 'astro', this.ctx.cwd);
|
|
277
|
-
}
|
|
278
273
|
getBuildCommand() {
|
|
279
274
|
return 'astro build';
|
|
280
275
|
}
|