mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-21 17:43:23 +01:00
test
This commit is contained in:
parent
4d045615a9
commit
a099e40c73
8 changed files with 33467 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
||||||
dist
|
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
|
|
7
dist/exec.d.ts
vendored
Normal file
7
dist/exec.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/// <reference types="node" />
|
||||||
|
import { exec as _childProcessExec } from "node:child_process";
|
||||||
|
export { exec } from "@actions/exec";
|
||||||
|
declare const childProcessExec: typeof _childProcessExec.__promisify__;
|
||||||
|
export declare function execShell(command: string, { silent, ...options }?: Parameters<typeof childProcessExec>[1] & {
|
||||||
|
silent?: boolean;
|
||||||
|
}): Promise<number | null>;
|
6
dist/index.d.ts
vendored
Normal file
6
dist/index.d.ts
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
declare function installWrangler(): Promise<void>;
|
||||||
|
declare function authenticationSetup(): void;
|
||||||
|
declare function execCommands(commands: string[], cmdType: string): Promise<void>;
|
||||||
|
declare function uploadSecrets(): Promise<void>;
|
||||||
|
declare function wranglerCommands(): Promise<void>;
|
||||||
|
export { authenticationSetup, execCommands, installWrangler, uploadSecrets, wranglerCommands, };
|
33383
dist/index.mjs
vendored
Normal file
33383
dist/index.mjs
vendored
Normal file
File diff suppressed because one or more lines are too long
3
dist/package.json
vendored
Normal file
3
dist/package.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
19
dist/packageManagers.d.ts
vendored
Normal file
19
dist/packageManagers.d.ts
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
export declare function getPackageManager(name: string, { workingDirectory }?: {
|
||||||
|
workingDirectory?: string;
|
||||||
|
}): {
|
||||||
|
readonly install: "npm i";
|
||||||
|
readonly exec: "npx";
|
||||||
|
readonly execNoInstall: "npx --no-install";
|
||||||
|
} | {
|
||||||
|
readonly install: "yarn add";
|
||||||
|
readonly exec: "yarn";
|
||||||
|
readonly execNoInstall: "yarn";
|
||||||
|
} | {
|
||||||
|
readonly install: "pnpm add";
|
||||||
|
readonly exec: "pnpm exec";
|
||||||
|
readonly execNoInstall: "pnpm exec";
|
||||||
|
} | {
|
||||||
|
readonly install: "bun i";
|
||||||
|
readonly exec: "bunx";
|
||||||
|
readonly execNoInstall: "bun run";
|
||||||
|
};
|
5
dist/utils.d.ts
vendored
Normal file
5
dist/utils.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
/**
|
||||||
|
* A helper function to compare two semver versions. If the second arg is greater than the first arg, it returns true.
|
||||||
|
*/
|
||||||
|
export declare function semverCompare(version1: string, version2: string): boolean;
|
||||||
|
export declare function checkWorkingDirectory(workingDirectory?: string): string;
|
44
dist/wranglerArtifactManager.d.ts
vendored
Normal file
44
dist/wranglerArtifactManager.d.ts
vendored
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
import { z } from "zod";
|
||||||
|
declare const OutputEntryPagesDeployment: z.ZodObject<z.objectUtil.extendShape<{
|
||||||
|
version: z.ZodLiteral<1>;
|
||||||
|
type: z.ZodString;
|
||||||
|
}, {
|
||||||
|
type: z.ZodLiteral<"pages-deploy-detailed">;
|
||||||
|
pages_project: z.ZodNullable<z.ZodString>;
|
||||||
|
deployment_id: z.ZodNullable<z.ZodString>;
|
||||||
|
url: z.ZodOptional<z.ZodString>;
|
||||||
|
alias: z.ZodOptional<z.ZodString>;
|
||||||
|
environment: z.ZodEnum<["production", "preview"]>;
|
||||||
|
}>, "strip", z.ZodTypeAny, {
|
||||||
|
environment: "production" | "preview";
|
||||||
|
version: 1;
|
||||||
|
type: "pages-deploy-detailed";
|
||||||
|
pages_project: string | null;
|
||||||
|
deployment_id: string | null;
|
||||||
|
url?: string | undefined;
|
||||||
|
alias?: string | undefined;
|
||||||
|
}, {
|
||||||
|
environment: "production" | "preview";
|
||||||
|
version: 1;
|
||||||
|
type: "pages-deploy-detailed";
|
||||||
|
pages_project: string | null;
|
||||||
|
deployment_id: string | null;
|
||||||
|
url?: string | undefined;
|
||||||
|
alias?: string | undefined;
|
||||||
|
}>;
|
||||||
|
type OutputEntryPagesDeployment = z.infer<typeof OutputEntryPagesDeployment>;
|
||||||
|
/**
|
||||||
|
* Parses file names in a directory to find wrangler artifact files
|
||||||
|
*
|
||||||
|
* @param artifactDirectory
|
||||||
|
* @returns All artifact files from the directory
|
||||||
|
*/
|
||||||
|
export declare function getWranglerArtifacts(artifactDirectory: string): Promise<string[]>;
|
||||||
|
/**
|
||||||
|
* Searches for detailed wrangler output from a pages deploy
|
||||||
|
*
|
||||||
|
* @param artifactDirectory
|
||||||
|
* @returns The first pages-output-detailed found within a wrangler artifact directory
|
||||||
|
*/
|
||||||
|
export declare function getDetailedPagesDeployOutput(artifactDirectory: string): Promise<OutputEntryPagesDeployment | null>;
|
||||||
|
export {};
|
Loading…
Reference in a new issue