@factorialco/gat
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -18,3 +18,3 @@ #!/usr/bin/env node | ||
// NOTE: can we improve this using ts-node or typescript programatically? | ||
const { stdout } = await execPromise(`npx ts-node --swc -T ${templateFile}`); | ||
const { stdout } = await execPromise(`npx ts-node ${process.env["GAT_BUILD_FLAGS"] ?? "--swc -T"} ${templateFile}`); | ||
await writeFilePromise(path_1.default.join(process.cwd(), ".github", "workflows", templateFile.split("/").at(-1).replace(".ts", ".yml")), stdout); | ||
@@ -21,0 +21,0 @@ }; |
@@ -1,3 +0,3 @@ | ||
export declare type EventName = "push" | "pull_request" | "pull_request_review" | "workflow_run" | "workflow_dispatch" | "schedule" | "pull_request_target" | "repository_dispatch"; | ||
export declare type EventOptions<T extends EventName> = T extends "push" ? PushEventOptions : T extends "pull_request" ? PullRequestEventOptions : T extends "pull_request_review" ? PullRequestReviewEventOptions : T extends "workflow_run" ? WorkflowRunEventOptions : T extends "workflow_dispatch" ? WorkflowDispatchEventOptions : T extends "schedule" ? ScheduleEventOptions : T extends "repository_dispatch" ? RepositoryDispatchEventOptions : never; | ||
export type EventName = "push" | "pull_request" | "pull_request_review" | "workflow_run" | "workflow_dispatch" | "schedule" | "pull_request_target" | "repository_dispatch"; | ||
export type EventOptions<T extends EventName> = T extends "push" ? PushEventOptions : T extends "pull_request" ? PullRequestEventOptions : T extends "pull_request_review" ? PullRequestReviewEventOptions : T extends "workflow_run" ? WorkflowRunEventOptions : T extends "workflow_dispatch" ? WorkflowDispatchEventOptions : T extends "schedule" ? ScheduleEventOptions : T extends "repository_dispatch" ? RepositoryDispatchEventOptions : never; | ||
interface PushEventOptions { | ||
@@ -30,3 +30,3 @@ branches?: string[]; | ||
} | ||
declare type ScheduleEventOptions = Array<{ | ||
type ScheduleEventOptions = Array<{ | ||
cron: string; | ||
@@ -33,0 +33,0 @@ }>; |
@@ -38,3 +38,3 @@ export interface ConcurrencyGroup { | ||
} | ||
export declare type StringWithNoSpaces<T> = T extends `${string} ${string}` ? never : T extends ` ${string}` ? never : T extends `${string} ` ? never : T; | ||
export type StringWithNoSpaces<T> = T extends `${string} ${string}` ? never : T extends ` ${string}` ? never : T extends `${string} ` ? never : T; | ||
export interface Job<Step, Runner, Name> { | ||
@@ -41,0 +41,0 @@ name: string; |
@@ -10,3 +10,3 @@ export interface BaseStep { | ||
} | ||
export declare type Step = RunStep | UseStep; | ||
export type Step = RunStep | UseStep; | ||
export interface RunStep extends BaseStep { | ||
@@ -13,0 +13,0 @@ run: string; |
{ | ||
"name": "@factorialco/gat", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Write your GitHub Actions workflows using TypeScript", | ||
@@ -29,10 +29,10 @@ "bin": { | ||
"@types/lodash": "^4.14.184", | ||
"@typescript-eslint/eslint-plugin": "^5.35.1", | ||
"@typescript-eslint/parser": "^5.35.1", | ||
"commander": "^9.4.0", | ||
"@typescript-eslint/eslint-plugin": "^6.9.1", | ||
"@typescript-eslint/parser": "^6.9.1", | ||
"commander": "^11.1.0", | ||
"eslint": "^8.23.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"prettier": "2.7.1", | ||
"typescript": "^4.7.4", | ||
"vitest": "^0.18.1" | ||
"eslint-config-prettier": "^9.0.0", | ||
"prettier": "^3.0.3", | ||
"typescript": "^5.2.2", | ||
"vitest": "^0.34.6" | ||
}, | ||
@@ -39,0 +39,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24983
2