@cloudflare/autoconfig 0.3.0 → 0.4.1
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/index.d.ts +3 -0
- package/dist/index.js +533 -414
- package/dist/metafile-esm.json +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ declare abstract class Framework {
|
|
|
132
132
|
#private;
|
|
133
133
|
readonly id: FrameworkInfo["id"];
|
|
134
134
|
readonly name: FrameworkInfo["name"];
|
|
135
|
+
readonly env?: Readonly<Record<string, string>>;
|
|
135
136
|
get frameworkVersion(): string;
|
|
136
137
|
constructor(frameworkInfo: Pick<FrameworkInfo, "id" | "name">);
|
|
137
138
|
isConfigured(_projectPath: string, { target: _target, }?: {
|
|
@@ -200,6 +201,8 @@ type AutoConfigDetailsBase = {
|
|
|
200
201
|
devCommand?: string;
|
|
201
202
|
/** The build command used to build the project (if any) */
|
|
202
203
|
buildCommand?: string;
|
|
204
|
+
/** Environment required when running the detected dev or build commands. */
|
|
205
|
+
env?: Readonly<Record<string, string>>;
|
|
203
206
|
/** The output directory (if no framework is used, points to the raw asset files) */
|
|
204
207
|
outputDir: string;
|
|
205
208
|
/** The detected package manager for the project */
|