@savvy-web/github-action-builder 2.2.11 → 2.3.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/bin/github-action-builder.js +1 -1
- package/cli/commands/init.js +1 -1
- package/index.d.ts +67 -67
- package/package.json +3 -3
|
@@ -24,7 +24,7 @@ const rootCommand = Command.make("github-action-builder").pipe(Command.withSubco
|
|
|
24
24
|
/**
|
|
25
25
|
* CLI application: reads argv from the Stdio service provided by NodeServices.
|
|
26
26
|
*/
|
|
27
|
-
const cli = Command.run(rootCommand, { version: "2.
|
|
27
|
+
const cli = Command.run(rootCommand, { version: "2.3.0" });
|
|
28
28
|
/**
|
|
29
29
|
* Combined layer: AppLayer + the Node implementations of the CLI
|
|
30
30
|
* environment (FileSystem, Path, Terminal, Stdio, ChildProcessSpawner).
|
package/cli/commands/init.js
CHANGED
|
@@ -20,7 +20,7 @@ const forceOption = Flag.boolean("force").pipe(Flag.withAlias("f"), Flag.withDes
|
|
|
20
20
|
* Get current package version (replaced at build time).
|
|
21
21
|
*/
|
|
22
22
|
const getPackageVersion = () => {
|
|
23
|
-
return "2.
|
|
23
|
+
return "2.3.0";
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* Generate package.json content.
|
package/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { Context, Effect, Layer, Schema } from "effect";
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
declare const EntriesSchema: Schema.Struct<{
|
|
17
|
+
export declare const EntriesSchema: Schema.Struct<{
|
|
18
18
|
/** Path to the main action entry point. Defaults to "src/main.ts". */
|
|
19
19
|
readonly main: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
20
20
|
/** Path to the pre-action hook entry point. */
|
|
@@ -39,7 +39,7 @@ type Entries = typeof EntriesSchema.Type;
|
|
|
39
39
|
*
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
declare const BuildOptionsSchema: Schema.Struct<{
|
|
42
|
+
export declare const BuildOptionsSchema: Schema.Struct<{
|
|
43
43
|
/** Enable minification to reduce bundle size. Defaults to true. */
|
|
44
44
|
readonly minify: Schema.withDecodingDefaultType<Schema.Boolean, never>;
|
|
45
45
|
/** Generate source maps for debugging. Defaults to false. */
|
|
@@ -74,7 +74,7 @@ type BuildOptions = typeof BuildOptionsSchema.Type;
|
|
|
74
74
|
*
|
|
75
75
|
* @public
|
|
76
76
|
*/
|
|
77
|
-
declare const ValidationOptionsSchema: Schema.Struct<{
|
|
77
|
+
export declare const ValidationOptionsSchema: Schema.Struct<{
|
|
78
78
|
/** Require action.yml to exist and be valid. Defaults to true. */
|
|
79
79
|
readonly requireActionYml: Schema.withDecodingDefaultType<Schema.Boolean, never>;
|
|
80
80
|
/** Maximum bundle size before warning/error (e.g., "5mb", "500kb"). */
|
|
@@ -97,7 +97,7 @@ type ValidationOptions = typeof ValidationOptionsSchema.Type;
|
|
|
97
97
|
*
|
|
98
98
|
* @public
|
|
99
99
|
*/
|
|
100
|
-
declare const PersistLocalOptionsSchema: Schema.Struct<{
|
|
100
|
+
export declare const PersistLocalOptionsSchema: Schema.Struct<{
|
|
101
101
|
/** Enable persisting build output locally. Defaults to true. */
|
|
102
102
|
readonly enabled: Schema.withDecodingDefaultType<Schema.Boolean, never>;
|
|
103
103
|
/** Path for the local action directory, relative to cwd. Defaults to ".github/actions/local". */
|
|
@@ -120,7 +120,7 @@ type PersistLocalOptions = typeof PersistLocalOptionsSchema.Type;
|
|
|
120
120
|
*
|
|
121
121
|
* @public
|
|
122
122
|
*/
|
|
123
|
-
declare const ConfigInputSchema: Schema.Struct<{
|
|
123
|
+
export declare const ConfigInputSchema: Schema.Struct<{
|
|
124
124
|
readonly entries: Schema.optional<Schema.Struct<{
|
|
125
125
|
readonly main: Schema.optional<Schema.String>;
|
|
126
126
|
readonly pre: Schema.optional<Schema.String>;
|
|
@@ -160,7 +160,7 @@ type ConfigInput = typeof ConfigInputSchema.Type;
|
|
|
160
160
|
*
|
|
161
161
|
* @public
|
|
162
162
|
*/
|
|
163
|
-
declare const ConfigSchema: Schema.Struct<{
|
|
163
|
+
export declare const ConfigSchema: Schema.Struct<{
|
|
164
164
|
readonly entries: Schema.Struct<{
|
|
165
165
|
/** Path to the main action entry point. Defaults to "src/main.ts". */
|
|
166
166
|
readonly main: Schema.withDecodingDefaultType<Schema.String, never>;
|
|
@@ -271,7 +271,7 @@ type Config = typeof ConfigSchema.Type;
|
|
|
271
271
|
*
|
|
272
272
|
* @public
|
|
273
273
|
*/
|
|
274
|
-
declare function defineConfig(config?: Partial<ConfigInput>): Config;
|
|
274
|
+
export declare function defineConfig(config?: Partial<ConfigInput>): Config;
|
|
275
275
|
//#endregion
|
|
276
276
|
//#region src/errors.d.ts
|
|
277
277
|
/**
|
|
@@ -284,7 +284,7 @@ declare function defineConfig(config?: Partial<ConfigInput>): Config;
|
|
|
284
284
|
*
|
|
285
285
|
* @public
|
|
286
286
|
*/
|
|
287
|
-
declare const ConfigNotFoundBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
287
|
+
export declare const ConfigNotFoundBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
288
288
|
readonly _tag: "ConfigNotFound";
|
|
289
289
|
} & Readonly<A>;
|
|
290
290
|
/**
|
|
@@ -292,7 +292,7 @@ declare const ConfigNotFoundBase: new <A extends Record<string, any> = {}>(args:
|
|
|
292
292
|
*
|
|
293
293
|
* @public
|
|
294
294
|
*/
|
|
295
|
-
declare class ConfigNotFound extends ConfigNotFoundBase<{
|
|
295
|
+
export declare class ConfigNotFound extends ConfigNotFoundBase<{
|
|
296
296
|
/**
|
|
297
297
|
* The path that was searched for the config file.
|
|
298
298
|
*/
|
|
@@ -312,7 +312,7 @@ declare class ConfigNotFound extends ConfigNotFoundBase<{
|
|
|
312
312
|
*
|
|
313
313
|
* @public
|
|
314
314
|
*/
|
|
315
|
-
declare const ConfigInvalidBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
315
|
+
export declare const ConfigInvalidBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
316
316
|
readonly _tag: "ConfigInvalid";
|
|
317
317
|
} & Readonly<A>;
|
|
318
318
|
/**
|
|
@@ -320,7 +320,7 @@ declare const ConfigInvalidBase: new <A extends Record<string, any> = {}>(args:
|
|
|
320
320
|
*
|
|
321
321
|
* @public
|
|
322
322
|
*/
|
|
323
|
-
declare class ConfigInvalid extends ConfigInvalidBase<{
|
|
323
|
+
export declare class ConfigInvalid extends ConfigInvalidBase<{
|
|
324
324
|
/**
|
|
325
325
|
* The path to the invalid config file.
|
|
326
326
|
*/
|
|
@@ -340,7 +340,7 @@ declare class ConfigInvalid extends ConfigInvalidBase<{
|
|
|
340
340
|
*
|
|
341
341
|
* @public
|
|
342
342
|
*/
|
|
343
|
-
declare const ConfigLoadFailedBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
343
|
+
export declare const ConfigLoadFailedBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
344
344
|
readonly _tag: "ConfigLoadFailed";
|
|
345
345
|
} & Readonly<A>;
|
|
346
346
|
/**
|
|
@@ -348,7 +348,7 @@ declare const ConfigLoadFailedBase: new <A extends Record<string, any> = {}>(arg
|
|
|
348
348
|
*
|
|
349
349
|
* @public
|
|
350
350
|
*/
|
|
351
|
-
declare class ConfigLoadFailed extends ConfigLoadFailedBase<{
|
|
351
|
+
export declare class ConfigLoadFailed extends ConfigLoadFailedBase<{
|
|
352
352
|
/**
|
|
353
353
|
* The path to the config file that failed to load.
|
|
354
354
|
*/
|
|
@@ -374,7 +374,7 @@ type ConfigError = ConfigNotFound | ConfigInvalid | ConfigLoadFailed;
|
|
|
374
374
|
*
|
|
375
375
|
* @public
|
|
376
376
|
*/
|
|
377
|
-
declare const MainEntryMissingBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
377
|
+
export declare const MainEntryMissingBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
378
378
|
readonly _tag: "MainEntryMissing";
|
|
379
379
|
} & Readonly<A>;
|
|
380
380
|
/**
|
|
@@ -382,7 +382,7 @@ declare const MainEntryMissingBase: new <A extends Record<string, any> = {}>(arg
|
|
|
382
382
|
*
|
|
383
383
|
* @public
|
|
384
384
|
*/
|
|
385
|
-
declare class MainEntryMissing extends MainEntryMissingBase<{
|
|
385
|
+
export declare class MainEntryMissing extends MainEntryMissingBase<{
|
|
386
386
|
/**
|
|
387
387
|
* The expected path for the main entry.
|
|
388
388
|
*/
|
|
@@ -402,7 +402,7 @@ declare class MainEntryMissing extends MainEntryMissingBase<{
|
|
|
402
402
|
*
|
|
403
403
|
* @public
|
|
404
404
|
*/
|
|
405
|
-
declare const WorkerEntryMissingBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
405
|
+
export declare const WorkerEntryMissingBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
406
406
|
readonly _tag: "WorkerEntryMissing";
|
|
407
407
|
} & Readonly<A>;
|
|
408
408
|
/**
|
|
@@ -410,7 +410,7 @@ declare const WorkerEntryMissingBase: new <A extends Record<string, any> = {}>(a
|
|
|
410
410
|
*
|
|
411
411
|
* @public
|
|
412
412
|
*/
|
|
413
|
-
declare class WorkerEntryMissing extends WorkerEntryMissingBase<{
|
|
413
|
+
export declare class WorkerEntryMissing extends WorkerEntryMissingBase<{
|
|
414
414
|
/** The worker name (config key). */
|
|
415
415
|
readonly workerName: string;
|
|
416
416
|
/** The expected path for the worker entry. */
|
|
@@ -428,7 +428,7 @@ declare class WorkerEntryMissing extends WorkerEntryMissingBase<{
|
|
|
428
428
|
*
|
|
429
429
|
* @public
|
|
430
430
|
*/
|
|
431
|
-
declare const WorkerEntryInvalidNameBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
431
|
+
export declare const WorkerEntryInvalidNameBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
432
432
|
readonly _tag: "WorkerEntryInvalidName";
|
|
433
433
|
} & Readonly<A>;
|
|
434
434
|
/**
|
|
@@ -441,7 +441,7 @@ declare const WorkerEntryInvalidNameBase: new <A extends Record<string, any> = {
|
|
|
441
441
|
*
|
|
442
442
|
* @public
|
|
443
443
|
*/
|
|
444
|
-
declare class WorkerEntryInvalidName extends WorkerEntryInvalidNameBase<{
|
|
444
|
+
export declare class WorkerEntryInvalidName extends WorkerEntryInvalidNameBase<{
|
|
445
445
|
/** The offending worker name (config key). */
|
|
446
446
|
readonly workerName: string;
|
|
447
447
|
/** Why the name was rejected. */
|
|
@@ -457,7 +457,7 @@ declare class WorkerEntryInvalidName extends WorkerEntryInvalidNameBase<{
|
|
|
457
457
|
*
|
|
458
458
|
* @public
|
|
459
459
|
*/
|
|
460
|
-
declare const EntryFileMissingBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
460
|
+
export declare const EntryFileMissingBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
461
461
|
readonly _tag: "EntryFileMissing";
|
|
462
462
|
} & Readonly<A>;
|
|
463
463
|
/**
|
|
@@ -465,7 +465,7 @@ declare const EntryFileMissingBase: new <A extends Record<string, any> = {}>(arg
|
|
|
465
465
|
*
|
|
466
466
|
* @public
|
|
467
467
|
*/
|
|
468
|
-
declare class EntryFileMissing extends EntryFileMissingBase<{
|
|
468
|
+
export declare class EntryFileMissing extends EntryFileMissingBase<{
|
|
469
469
|
/**
|
|
470
470
|
* The type of entry (main, pre, post).
|
|
471
471
|
*/
|
|
@@ -485,7 +485,7 @@ declare class EntryFileMissing extends EntryFileMissingBase<{
|
|
|
485
485
|
*
|
|
486
486
|
* @public
|
|
487
487
|
*/
|
|
488
|
-
declare const ActionYmlMissingBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
488
|
+
export declare const ActionYmlMissingBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
489
489
|
readonly _tag: "ActionYmlMissing";
|
|
490
490
|
} & Readonly<A>;
|
|
491
491
|
/**
|
|
@@ -493,7 +493,7 @@ declare const ActionYmlMissingBase: new <A extends Record<string, any> = {}>(arg
|
|
|
493
493
|
*
|
|
494
494
|
* @public
|
|
495
495
|
*/
|
|
496
|
-
declare class ActionYmlMissing extends ActionYmlMissingBase<{
|
|
496
|
+
export declare class ActionYmlMissing extends ActionYmlMissingBase<{
|
|
497
497
|
/**
|
|
498
498
|
* The working directory that was searched.
|
|
499
499
|
*/
|
|
@@ -509,7 +509,7 @@ declare class ActionYmlMissing extends ActionYmlMissingBase<{
|
|
|
509
509
|
*
|
|
510
510
|
* @public
|
|
511
511
|
*/
|
|
512
|
-
declare const ActionYmlSyntaxErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
512
|
+
export declare const ActionYmlSyntaxErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
513
513
|
readonly _tag: "ActionYmlSyntaxError";
|
|
514
514
|
} & Readonly<A>;
|
|
515
515
|
/**
|
|
@@ -517,7 +517,7 @@ declare const ActionYmlSyntaxErrorBase: new <A extends Record<string, any> = {}>
|
|
|
517
517
|
*
|
|
518
518
|
* @public
|
|
519
519
|
*/
|
|
520
|
-
declare class ActionYmlSyntaxError extends ActionYmlSyntaxErrorBase<{
|
|
520
|
+
export declare class ActionYmlSyntaxError extends ActionYmlSyntaxErrorBase<{
|
|
521
521
|
/**
|
|
522
522
|
* The path to the action.yml file.
|
|
523
523
|
*/
|
|
@@ -545,7 +545,7 @@ declare class ActionYmlSyntaxError extends ActionYmlSyntaxErrorBase<{
|
|
|
545
545
|
*
|
|
546
546
|
* @public
|
|
547
547
|
*/
|
|
548
|
-
declare const ActionYmlSchemaErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
548
|
+
export declare const ActionYmlSchemaErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
549
549
|
readonly _tag: "ActionYmlSchemaError";
|
|
550
550
|
} & Readonly<A>;
|
|
551
551
|
/**
|
|
@@ -553,7 +553,7 @@ declare const ActionYmlSchemaErrorBase: new <A extends Record<string, any> = {}>
|
|
|
553
553
|
*
|
|
554
554
|
* @public
|
|
555
555
|
*/
|
|
556
|
-
declare class ActionYmlSchemaError extends ActionYmlSchemaErrorBase<{
|
|
556
|
+
export declare class ActionYmlSchemaError extends ActionYmlSchemaErrorBase<{
|
|
557
557
|
/**
|
|
558
558
|
* The path to the action.yml file.
|
|
559
559
|
*/
|
|
@@ -576,7 +576,7 @@ declare class ActionYmlSchemaError extends ActionYmlSchemaErrorBase<{
|
|
|
576
576
|
*
|
|
577
577
|
* @public
|
|
578
578
|
*/
|
|
579
|
-
declare const ValidationFailedBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
579
|
+
export declare const ValidationFailedBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
580
580
|
readonly _tag: "ValidationFailed";
|
|
581
581
|
} & Readonly<A>;
|
|
582
582
|
/**
|
|
@@ -584,7 +584,7 @@ declare const ValidationFailedBase: new <A extends Record<string, any> = {}>(arg
|
|
|
584
584
|
*
|
|
585
585
|
* @public
|
|
586
586
|
*/
|
|
587
|
-
declare class ValidationFailed extends ValidationFailedBase<{
|
|
587
|
+
export declare class ValidationFailed extends ValidationFailedBase<{
|
|
588
588
|
/**
|
|
589
589
|
* Number of errors encountered.
|
|
590
590
|
*/
|
|
@@ -614,7 +614,7 @@ type ValidationError = MainEntryMissing | WorkerEntryMissing | WorkerEntryInvali
|
|
|
614
614
|
*
|
|
615
615
|
* @public
|
|
616
616
|
*/
|
|
617
|
-
declare const BundleFailedBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
617
|
+
export declare const BundleFailedBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
618
618
|
readonly _tag: "BundleFailed";
|
|
619
619
|
} & Readonly<A>;
|
|
620
620
|
/**
|
|
@@ -622,7 +622,7 @@ declare const BundleFailedBase: new <A extends Record<string, any> = {}>(args: i
|
|
|
622
622
|
*
|
|
623
623
|
* @public
|
|
624
624
|
*/
|
|
625
|
-
declare class BundleFailed extends BundleFailedBase<{
|
|
625
|
+
export declare class BundleFailed extends BundleFailedBase<{
|
|
626
626
|
/**
|
|
627
627
|
* The entry file that failed to bundle.
|
|
628
628
|
*/
|
|
@@ -642,7 +642,7 @@ declare class BundleFailed extends BundleFailedBase<{
|
|
|
642
642
|
*
|
|
643
643
|
* @public
|
|
644
644
|
*/
|
|
645
|
-
declare const WriteErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
645
|
+
export declare const WriteErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
646
646
|
readonly _tag: "WriteError";
|
|
647
647
|
} & Readonly<A>;
|
|
648
648
|
/**
|
|
@@ -650,7 +650,7 @@ declare const WriteErrorBase: new <A extends Record<string, any> = {}>(args: imp
|
|
|
650
650
|
*
|
|
651
651
|
* @public
|
|
652
652
|
*/
|
|
653
|
-
declare class WriteError extends WriteErrorBase<{
|
|
653
|
+
export declare class WriteError extends WriteErrorBase<{
|
|
654
654
|
/**
|
|
655
655
|
* The path that failed to write.
|
|
656
656
|
*/
|
|
@@ -670,7 +670,7 @@ declare class WriteError extends WriteErrorBase<{
|
|
|
670
670
|
*
|
|
671
671
|
* @public
|
|
672
672
|
*/
|
|
673
|
-
declare const CleanErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
673
|
+
export declare const CleanErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
674
674
|
readonly _tag: "CleanError";
|
|
675
675
|
} & Readonly<A>;
|
|
676
676
|
/**
|
|
@@ -678,7 +678,7 @@ declare const CleanErrorBase: new <A extends Record<string, any> = {}>(args: imp
|
|
|
678
678
|
*
|
|
679
679
|
* @public
|
|
680
680
|
*/
|
|
681
|
-
declare class CleanError extends CleanErrorBase<{
|
|
681
|
+
export declare class CleanError extends CleanErrorBase<{
|
|
682
682
|
/**
|
|
683
683
|
* The directory that failed to clean.
|
|
684
684
|
*/
|
|
@@ -698,7 +698,7 @@ declare class CleanError extends CleanErrorBase<{
|
|
|
698
698
|
*
|
|
699
699
|
* @public
|
|
700
700
|
*/
|
|
701
|
-
declare const BuildFailedBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
701
|
+
export declare const BuildFailedBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
702
702
|
readonly _tag: "BuildFailed";
|
|
703
703
|
} & Readonly<A>;
|
|
704
704
|
/**
|
|
@@ -706,7 +706,7 @@ declare const BuildFailedBase: new <A extends Record<string, any> = {}>(args: im
|
|
|
706
706
|
*
|
|
707
707
|
* @public
|
|
708
708
|
*/
|
|
709
|
-
declare class BuildFailed extends BuildFailedBase<{
|
|
709
|
+
export declare class BuildFailed extends BuildFailedBase<{
|
|
710
710
|
/**
|
|
711
711
|
* Summary message of the build failure.
|
|
712
712
|
*/
|
|
@@ -732,7 +732,7 @@ type BuildError = BundleFailed | WriteError | CleanError | BuildFailed;
|
|
|
732
732
|
*
|
|
733
733
|
* @public
|
|
734
734
|
*/
|
|
735
|
-
declare const PersistLocalErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
735
|
+
export declare const PersistLocalErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
736
736
|
readonly _tag: "PersistLocalError";
|
|
737
737
|
} & Readonly<A>;
|
|
738
738
|
/**
|
|
@@ -740,7 +740,7 @@ declare const PersistLocalErrorBase: new <A extends Record<string, any> = {}>(ar
|
|
|
740
740
|
*
|
|
741
741
|
* @public
|
|
742
742
|
*/
|
|
743
|
-
declare class PersistLocalError extends PersistLocalErrorBase<{
|
|
743
|
+
export declare class PersistLocalError extends PersistLocalErrorBase<{
|
|
744
744
|
/**
|
|
745
745
|
* The path involved in the failure.
|
|
746
746
|
*/
|
|
@@ -760,7 +760,7 @@ declare class PersistLocalError extends PersistLocalErrorBase<{
|
|
|
760
760
|
*
|
|
761
761
|
* @public
|
|
762
762
|
*/
|
|
763
|
-
declare const ActionYmlPathErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
763
|
+
export declare const ActionYmlPathErrorBase: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
764
764
|
readonly _tag: "ActionYmlPathError";
|
|
765
765
|
} & Readonly<A>;
|
|
766
766
|
/**
|
|
@@ -768,7 +768,7 @@ declare const ActionYmlPathErrorBase: new <A extends Record<string, any> = {}>(a
|
|
|
768
768
|
*
|
|
769
769
|
* @public
|
|
770
770
|
*/
|
|
771
|
-
declare class ActionYmlPathError extends ActionYmlPathErrorBase<{
|
|
771
|
+
export declare class ActionYmlPathError extends ActionYmlPathErrorBase<{
|
|
772
772
|
/**
|
|
773
773
|
* The entry type whose path failed validation (main, pre, post).
|
|
774
774
|
*/
|
|
@@ -800,7 +800,7 @@ type AppError = ConfigError | ValidationError | BuildError | PersistError;
|
|
|
800
800
|
* Options for loading configuration.
|
|
801
801
|
* @public
|
|
802
802
|
*/
|
|
803
|
-
declare const LoadConfigOptionsSchema: Schema.Struct<{
|
|
803
|
+
export declare const LoadConfigOptionsSchema: Schema.Struct<{
|
|
804
804
|
/** Working directory to search for config. Accepts string, Buffer, or URL. */
|
|
805
805
|
readonly cwd: Schema.optional<Schema.decodeTo<Schema.String, Schema.Union<readonly [Schema.String, Schema.instanceOf<Buffer<ArrayBufferLike>, unknown>, Schema.instanceOf<import("node:url").URL, unknown>]>, never, never>>;
|
|
806
806
|
/** Explicit path to config file. Accepts string, Buffer, or URL. */
|
|
@@ -815,7 +815,7 @@ type LoadConfigOptions = typeof LoadConfigOptionsSchema.Type;
|
|
|
815
815
|
* Detected entry point information.
|
|
816
816
|
* @public
|
|
817
817
|
*/
|
|
818
|
-
declare const DetectedEntrySchema: Schema.Struct<{
|
|
818
|
+
export declare const DetectedEntrySchema: Schema.Struct<{
|
|
819
819
|
/** Entry type: "main"|"pre"|"post" for lifecycle entries, or the worker name. */
|
|
820
820
|
readonly type: Schema.String;
|
|
821
821
|
/** Absolute path to the entry file. */
|
|
@@ -832,7 +832,7 @@ type DetectedEntry = typeof DetectedEntrySchema.Type;
|
|
|
832
832
|
* Result of entry detection.
|
|
833
833
|
* @public
|
|
834
834
|
*/
|
|
835
|
-
declare const DetectEntriesResultSchema: Schema.Struct<{
|
|
835
|
+
export declare const DetectEntriesResultSchema: Schema.Struct<{
|
|
836
836
|
/** Whether detection was successful. */
|
|
837
837
|
readonly success: Schema.Boolean;
|
|
838
838
|
/** Detected entries. */
|
|
@@ -925,7 +925,7 @@ declare const ConfigService_base: Context.ServiceClass<ConfigService, "ConfigSer
|
|
|
925
925
|
*
|
|
926
926
|
* @public
|
|
927
927
|
*/
|
|
928
|
-
declare class ConfigService extends ConfigService_base {
|
|
928
|
+
export declare class ConfigService extends ConfigService_base {
|
|
929
929
|
/**
|
|
930
930
|
* Production implementation of {@link ConfigService}.
|
|
931
931
|
*
|
|
@@ -939,7 +939,7 @@ declare class ConfigService extends ConfigService_base {
|
|
|
939
939
|
* Options for the build process.
|
|
940
940
|
* @public
|
|
941
941
|
*/
|
|
942
|
-
declare const BuildRunnerOptionsSchema: Schema.Struct<{
|
|
942
|
+
export declare const BuildRunnerOptionsSchema: Schema.Struct<{
|
|
943
943
|
/** Working directory for the build. Accepts string, Buffer, or URL. */
|
|
944
944
|
readonly cwd: Schema.optional<Schema.decodeTo<Schema.String, Schema.Union<readonly [Schema.String, Schema.instanceOf<Buffer<ArrayBufferLike>, unknown>, Schema.instanceOf<import("node:url").URL, unknown>]>, never, never>>;
|
|
945
945
|
/** Clean output directory before building. Defaults to true. */
|
|
@@ -954,7 +954,7 @@ type BuildRunnerOptions = typeof BuildRunnerOptionsSchema.Type;
|
|
|
954
954
|
* Statistics for a single bundled entry.
|
|
955
955
|
* @public
|
|
956
956
|
*/
|
|
957
|
-
declare const BundleStatsSchema: Schema.Struct<{
|
|
957
|
+
export declare const BundleStatsSchema: Schema.Struct<{
|
|
958
958
|
/** Entry type (main, pre, or post). */
|
|
959
959
|
readonly entry: Schema.String;
|
|
960
960
|
/** Bundle size in bytes. */
|
|
@@ -973,7 +973,7 @@ type BundleStats = typeof BundleStatsSchema.Type;
|
|
|
973
973
|
* Result of bundling a single entry.
|
|
974
974
|
* @public
|
|
975
975
|
*/
|
|
976
|
-
declare const BundleResultSchema: Schema.Struct<{
|
|
976
|
+
export declare const BundleResultSchema: Schema.Struct<{
|
|
977
977
|
/** Whether bundling succeeded. */
|
|
978
978
|
readonly success: Schema.Boolean;
|
|
979
979
|
/** Bundle statistics if successful. */
|
|
@@ -999,7 +999,7 @@ type BundleResult = typeof BundleResultSchema.Type;
|
|
|
999
999
|
* Result of the complete build process.
|
|
1000
1000
|
* @public
|
|
1001
1001
|
*/
|
|
1002
|
-
declare const BuildResultSchema: Schema.Struct<{
|
|
1002
|
+
export declare const BuildResultSchema: Schema.Struct<{
|
|
1003
1003
|
/** Whether the overall build succeeded. */
|
|
1004
1004
|
readonly success: Schema.Boolean;
|
|
1005
1005
|
/** Results for each entry that was built. */
|
|
@@ -1110,7 +1110,7 @@ declare const BuildService_base: Context.ServiceClass<BuildService, "BuildServic
|
|
|
1110
1110
|
*
|
|
1111
1111
|
* @public
|
|
1112
1112
|
*/
|
|
1113
|
-
declare class BuildService extends BuildService_base {
|
|
1113
|
+
export declare class BuildService extends BuildService_base {
|
|
1114
1114
|
/**
|
|
1115
1115
|
* Production implementation of {@link BuildService}.
|
|
1116
1116
|
*
|
|
@@ -1127,7 +1127,7 @@ declare class BuildService extends BuildService_base {
|
|
|
1127
1127
|
* Options for the persist operation.
|
|
1128
1128
|
* @public
|
|
1129
1129
|
*/
|
|
1130
|
-
declare const PersistLocalRunnerOptionsSchema: Schema.Struct<{
|
|
1130
|
+
export declare const PersistLocalRunnerOptionsSchema: Schema.Struct<{
|
|
1131
1131
|
/** Working directory. Accepts string. */
|
|
1132
1132
|
readonly cwd: Schema.optional<Schema.String>;
|
|
1133
1133
|
}>;
|
|
@@ -1140,7 +1140,7 @@ type PersistLocalRunnerOptions = typeof PersistLocalRunnerOptionsSchema.Type;
|
|
|
1140
1140
|
* Result of the persist-local operation.
|
|
1141
1141
|
* @public
|
|
1142
1142
|
*/
|
|
1143
|
-
declare const PersistLocalResultSchema: Schema.Struct<{
|
|
1143
|
+
export declare const PersistLocalResultSchema: Schema.Struct<{
|
|
1144
1144
|
/** Whether the operation completed successfully. */
|
|
1145
1145
|
readonly success: Schema.Boolean;
|
|
1146
1146
|
/** Number of files copied (changed or new). */
|
|
@@ -1198,7 +1198,7 @@ declare const PersistLocalService_base: Context.ServiceClass<PersistLocalService
|
|
|
1198
1198
|
*
|
|
1199
1199
|
* @public
|
|
1200
1200
|
*/
|
|
1201
|
-
declare class PersistLocalService extends PersistLocalService_base {
|
|
1201
|
+
export declare class PersistLocalService extends PersistLocalService_base {
|
|
1202
1202
|
/**
|
|
1203
1203
|
* Production implementation of {@link PersistLocalService}.
|
|
1204
1204
|
*
|
|
@@ -1212,7 +1212,7 @@ declare class PersistLocalService extends PersistLocalService_base {
|
|
|
1212
1212
|
* Options for validation.
|
|
1213
1213
|
* @public
|
|
1214
1214
|
*/
|
|
1215
|
-
declare const ValidateOptionsSchema: Schema.Struct<{
|
|
1215
|
+
export declare const ValidateOptionsSchema: Schema.Struct<{
|
|
1216
1216
|
/** Working directory for file operations. Accepts string, Buffer, or URL. */
|
|
1217
1217
|
readonly cwd: Schema.optional<Schema.decodeTo<Schema.String, Schema.Union<readonly [Schema.String, Schema.instanceOf<Buffer<ArrayBufferLike>, unknown>, Schema.instanceOf<import("node:url").URL, unknown>]>, never, never>>;
|
|
1218
1218
|
/** Force strict mode regardless of environment. Auto-detects from CI when undefined. */
|
|
@@ -1227,7 +1227,7 @@ type ValidateOptions = typeof ValidateOptionsSchema.Type;
|
|
|
1227
1227
|
* A validation error item.
|
|
1228
1228
|
* @public
|
|
1229
1229
|
*/
|
|
1230
|
-
declare const ValidationErrorSchema: Schema.Struct<{
|
|
1230
|
+
export declare const ValidationErrorSchema: Schema.Struct<{
|
|
1231
1231
|
/** Error code for categorization. */
|
|
1232
1232
|
readonly code: Schema.String;
|
|
1233
1233
|
/** Human-readable error message. */
|
|
@@ -1246,7 +1246,7 @@ type ValidationErrorItem = typeof ValidationErrorSchema.Type;
|
|
|
1246
1246
|
* A validation warning.
|
|
1247
1247
|
* @public
|
|
1248
1248
|
*/
|
|
1249
|
-
declare const ValidationWarningSchema: Schema.Struct<{
|
|
1249
|
+
export declare const ValidationWarningSchema: Schema.Struct<{
|
|
1250
1250
|
/** Warning code for categorization. */
|
|
1251
1251
|
readonly code: Schema.String;
|
|
1252
1252
|
/** Human-readable warning message. */
|
|
@@ -1265,7 +1265,7 @@ type ValidationWarning = typeof ValidationWarningSchema.Type;
|
|
|
1265
1265
|
* Validation result with errors and warnings.
|
|
1266
1266
|
* @public
|
|
1267
1267
|
*/
|
|
1268
|
-
declare const ValidationResultSchema: Schema.Struct<{
|
|
1268
|
+
export declare const ValidationResultSchema: Schema.Struct<{
|
|
1269
1269
|
/** Whether validation passed (no errors, or only warnings in non-strict mode). */
|
|
1270
1270
|
readonly valid: Schema.Boolean;
|
|
1271
1271
|
/** Validation errors. */
|
|
@@ -1300,7 +1300,7 @@ type ValidationResult = typeof ValidationResultSchema.Type;
|
|
|
1300
1300
|
* Result of action.yml validation.
|
|
1301
1301
|
* @public
|
|
1302
1302
|
*/
|
|
1303
|
-
declare const ActionYmlResultSchema: Schema.Struct<{
|
|
1303
|
+
export declare const ActionYmlResultSchema: Schema.Struct<{
|
|
1304
1304
|
/** Whether the action.yml is valid. */
|
|
1305
1305
|
readonly valid: Schema.Boolean;
|
|
1306
1306
|
/** Parsed action.yml content if valid. */
|
|
@@ -1411,7 +1411,7 @@ declare const ValidationService_base: Context.ServiceClass<ValidationService, "V
|
|
|
1411
1411
|
*
|
|
1412
1412
|
* @public
|
|
1413
1413
|
*/
|
|
1414
|
-
declare class ValidationService extends ValidationService_base {
|
|
1414
|
+
export declare class ValidationService extends ValidationService_base {
|
|
1415
1415
|
/**
|
|
1416
1416
|
* Production implementation of {@link ValidationService}.
|
|
1417
1417
|
*
|
|
@@ -1482,7 +1482,7 @@ interface GitHubActionOptions {
|
|
|
1482
1482
|
*
|
|
1483
1483
|
* @public
|
|
1484
1484
|
*/
|
|
1485
|
-
declare const GitHubActionBuildResultSchema: Schema.Struct<{
|
|
1485
|
+
export declare const GitHubActionBuildResultSchema: Schema.Struct<{
|
|
1486
1486
|
/** Whether the build completed successfully. */
|
|
1487
1487
|
readonly success: Schema.Boolean;
|
|
1488
1488
|
/** Build result details if the build step ran. */
|
|
@@ -1589,7 +1589,7 @@ type GitHubActionBuildResult = typeof GitHubActionBuildResultSchema.Type;
|
|
|
1589
1589
|
*
|
|
1590
1590
|
* @public
|
|
1591
1591
|
*/
|
|
1592
|
-
declare class GitHubAction {
|
|
1592
|
+
export declare class GitHubAction {
|
|
1593
1593
|
/**
|
|
1594
1594
|
* Managed runtime for running Effects.
|
|
1595
1595
|
* @internal
|
|
@@ -1710,7 +1710,7 @@ declare class GitHubAction {
|
|
|
1710
1710
|
*
|
|
1711
1711
|
* @public
|
|
1712
1712
|
*/
|
|
1713
|
-
declare const ConfigLayer: Layer.Layer<ConfigService, never, never>;
|
|
1713
|
+
export declare const ConfigLayer: Layer.Layer<ConfigService, never, never>;
|
|
1714
1714
|
/**
|
|
1715
1715
|
* Layer providing ValidationService (depends on ConfigService).
|
|
1716
1716
|
*
|
|
@@ -1719,7 +1719,7 @@ declare const ConfigLayer: Layer.Layer<ConfigService, never, never>;
|
|
|
1719
1719
|
*
|
|
1720
1720
|
* @public
|
|
1721
1721
|
*/
|
|
1722
|
-
declare const ValidationLayer: Layer.Layer<ValidationService, never, never>;
|
|
1722
|
+
export declare const ValidationLayer: Layer.Layer<ValidationService, never, never>;
|
|
1723
1723
|
/**
|
|
1724
1724
|
* Layer providing BuildService (depends on ConfigService).
|
|
1725
1725
|
*
|
|
@@ -1728,7 +1728,7 @@ declare const ValidationLayer: Layer.Layer<ValidationService, never, never>;
|
|
|
1728
1728
|
*
|
|
1729
1729
|
* @public
|
|
1730
1730
|
*/
|
|
1731
|
-
declare const BuildLayer: Layer.Layer<BuildService, never, never>;
|
|
1731
|
+
export declare const BuildLayer: Layer.Layer<BuildService, never, never>;
|
|
1732
1732
|
/**
|
|
1733
1733
|
* Layer providing PersistLocalService (no dependencies).
|
|
1734
1734
|
*
|
|
@@ -1737,7 +1737,7 @@ declare const BuildLayer: Layer.Layer<BuildService, never, never>;
|
|
|
1737
1737
|
*
|
|
1738
1738
|
* @public
|
|
1739
1739
|
*/
|
|
1740
|
-
declare const PersistLocalLayer: Layer.Layer<PersistLocalService, never, never>;
|
|
1740
|
+
export declare const PersistLocalLayer: Layer.Layer<PersistLocalService, never, never>;
|
|
1741
1741
|
/**
|
|
1742
1742
|
* Combined layer providing all services.
|
|
1743
1743
|
*
|
|
@@ -1766,7 +1766,7 @@ declare const PersistLocalLayer: Layer.Layer<PersistLocalService, never, never>;
|
|
|
1766
1766
|
*
|
|
1767
1767
|
* @public
|
|
1768
1768
|
*/
|
|
1769
|
-
declare const AppLayer: Layer.Layer<BuildService | ConfigService | PersistLocalService | ValidationService, never, never>;
|
|
1769
|
+
export declare const AppLayer: Layer.Layer<BuildService | ConfigService | PersistLocalService | ValidationService, never, never>;
|
|
1770
1770
|
//#endregion
|
|
1771
|
-
export {
|
|
1771
|
+
export type { ActionYmlResult, AppError, BuildError, BuildOptions, BuildResult, BuildRunnerOptions, BuildServiceShape, BundleResult, BundleStats, Config, ConfigError, ConfigInput, ConfigServiceShape, DetectEntriesResult, DetectedEntry, Entries, GitHubActionBuildResult, GitHubActionOptions, LoadConfigOptions, LoadConfigResult, PersistError, PersistLocalOptions, PersistLocalResult, PersistLocalRunnerOptions, PersistLocalServiceShape, ValidateOptions, ValidationError, ValidationErrorItem, ValidationOptions, ValidationResult, ValidationServiceShape, ValidationWarning };
|
|
1772
1772
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/github-action-builder",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A zero-config build tool for creating GitHub Actions from TypeScript. Bundles with rsbuild, validates action.yml against GitHub's schema, and outputs production-ready Node.js 24 actions.",
|
|
6
6
|
"keywords": [
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@effect/platform-node": "4.0.0-rc.109",
|
|
52
52
|
"@effected/yaml": "^0.12.0",
|
|
53
|
-
"@rsbuild/core": "^2.2.
|
|
53
|
+
"@rsbuild/core": "^2.2.3",
|
|
54
54
|
"effect": "4.0.0-rc.109",
|
|
55
55
|
"jiti": "^2.7.0",
|
|
56
56
|
"picocolors": "^1.1.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@types/node": "^26.
|
|
59
|
+
"@types/node": "^26.4.0",
|
|
60
60
|
"typescript": "^7.0.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|