@savvy-web/github-action-builder 2.4.15 → 2.4.17
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 +2 -3
- package/cli/commands/build.js +1 -2
- package/cli/commands/init.js +2 -3
- package/cli/commands/validate.js +1 -2
- package/errors.js +1 -2
- package/github-action.js +1 -2
- package/index.d.ts +0 -16
- package/layers/app.js +1 -2
- package/package.json +5 -5
- package/schemas/action-yml.js +1 -2
- package/schemas/config.js +1 -2
- package/schemas/path.js +1 -2
- package/services/build.js +1 -2
- package/services/config.js +1 -2
- package/services/native-dynamic-imports.js +1 -2
- package/services/persist-local.js +1 -2
- package/services/validation.js +1 -2
|
@@ -9,7 +9,7 @@ import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
|
|
|
9
9
|
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
10
10
|
import { Command } from "effect/cli";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/cli/index.ts
|
|
13
13
|
/* v8 ignore start - CLI entry point requires integration testing */
|
|
14
14
|
/**
|
|
15
15
|
* GitHub Action Builder CLI entry point.
|
|
@@ -25,7 +25,7 @@ const rootCommand = Command.make("github-action-builder").pipe(Command.withSubco
|
|
|
25
25
|
/**
|
|
26
26
|
* CLI application: reads argv from the Stdio service provided by NodeServices.
|
|
27
27
|
*/
|
|
28
|
-
const cli = Command.run(rootCommand, { version: "2.4.
|
|
28
|
+
const cli = Command.run(rootCommand, { version: "2.4.17" });
|
|
29
29
|
/**
|
|
30
30
|
* Combined layer: AppLayer + the Node implementations of the CLI
|
|
31
31
|
* environment (FileSystem, Path, Terminal, Stdio, ChildProcessSpawner).
|
|
@@ -41,5 +41,4 @@ const CliLayer = Layer.mergeAll(AppLayer, NodeServices.layer);
|
|
|
41
41
|
*/
|
|
42
42
|
NodeRuntime.runMain(cli.pipe(Effect.provide(CliLayer)));
|
|
43
43
|
|
|
44
|
-
//#endregion
|
|
45
44
|
export { };
|
package/cli/commands/build.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ValidationService } from "../../services/validation.js";
|
|
|
6
6
|
import { Console, Effect, Option } from "effect";
|
|
7
7
|
import { Command, Flag } from "effect/cli";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/cli/commands/build.ts
|
|
10
10
|
/* v8 ignore start - CLI commands require integration testing */
|
|
11
11
|
/**
|
|
12
12
|
* Build command for GitHub Action Builder CLI.
|
|
@@ -89,5 +89,4 @@ const buildCommand = Command.make("build", {
|
|
|
89
89
|
noPersist: noPersistOption
|
|
90
90
|
}, buildHandler);
|
|
91
91
|
|
|
92
|
-
//#endregion
|
|
93
92
|
export { buildCommand, configOption, noPersistOption, noValidateOption, quietOption };
|
package/cli/commands/init.js
CHANGED
|
@@ -3,7 +3,7 @@ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { Argument, Command, Flag } from "effect/cli";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/cli/commands/init.ts
|
|
7
7
|
/* v8 ignore start - CLI commands require integration testing */
|
|
8
8
|
/**
|
|
9
9
|
* Init command for GitHub Action Builder CLI.
|
|
@@ -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.4.
|
|
23
|
+
return "2.4.17";
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* Generate package.json content.
|
|
@@ -244,5 +244,4 @@ const initCommand = Command.make("init", {
|
|
|
244
244
|
force: forceOption
|
|
245
245
|
}, initHandler);
|
|
246
246
|
|
|
247
|
-
//#endregion
|
|
248
247
|
export { initCommand };
|
package/cli/commands/validate.js
CHANGED
|
@@ -4,7 +4,7 @@ import { configOption, quietOption } from "./build.js";
|
|
|
4
4
|
import { Console, Effect, Option } from "effect";
|
|
5
5
|
import { Command } from "effect/cli";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/cli/commands/validate.ts
|
|
8
8
|
/* v8 ignore start - CLI commands require integration testing */
|
|
9
9
|
/**
|
|
10
10
|
* Validate command for GitHub Action Builder CLI.
|
|
@@ -40,5 +40,4 @@ const validateCommand = Command.make("validate", {
|
|
|
40
40
|
quiet: quietOption
|
|
41
41
|
}, validateHandler);
|
|
42
42
|
|
|
43
|
-
//#endregion
|
|
44
43
|
export { validateCommand };
|
package/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/errors.ts
|
|
4
4
|
/**
|
|
5
5
|
* Typed error classes for GitHub Action Builder.
|
|
6
6
|
*
|
|
@@ -319,5 +319,4 @@ const ActionYmlPathErrorBase = Data.TaggedError("ActionYmlPathError");
|
|
|
319
319
|
*/
|
|
320
320
|
var ActionYmlPathError = class extends ActionYmlPathErrorBase {};
|
|
321
321
|
|
|
322
|
-
//#endregion
|
|
323
322
|
export { ActionYmlMissing, ActionYmlMissingBase, ActionYmlPathError, ActionYmlPathErrorBase, ActionYmlSchemaError, ActionYmlSchemaErrorBase, ActionYmlSyntaxError, ActionYmlSyntaxErrorBase, BuildFailed, BuildFailedBase, BundleFailed, BundleFailedBase, CleanError, CleanErrorBase, ConfigInvalid, ConfigInvalidBase, ConfigLoadFailed, ConfigLoadFailedBase, ConfigNotFound, ConfigNotFoundBase, EntryFileMissing, EntryFileMissingBase, MainEntryMissing, MainEntryMissingBase, PersistLocalError, PersistLocalErrorBase, ValidationFailed, ValidationFailedBase, WorkerEntryInvalidName, WorkerEntryInvalidNameBase, WorkerEntryMissing, WorkerEntryMissingBase, WriteError, WriteErrorBase };
|
package/github-action.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ValidationResultSchema, ValidationService } from "./services/validation
|
|
|
6
6
|
import { AppLayer } from "./layers/app.js";
|
|
7
7
|
import { Effect, ManagedRuntime, Schema } from "effect";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/github-action.ts
|
|
10
10
|
/**
|
|
11
11
|
* Result of a GitHubAction build operation.
|
|
12
12
|
*
|
|
@@ -298,5 +298,4 @@ var GitHubAction = class GitHubAction {
|
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
300
|
|
|
301
|
-
//#endregion
|
|
302
301
|
export { GitHubAction, GitHubActionBuildResultSchema };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
2
|
-
//#region src/schemas/config.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Schema for entry point paths.
|
|
5
4
|
*
|
|
@@ -272,8 +271,6 @@ type Config = typeof ConfigSchema.Type;
|
|
|
272
271
|
* @public
|
|
273
272
|
*/
|
|
274
273
|
export declare function defineConfig(config?: Partial<ConfigInput>): Config;
|
|
275
|
-
//#endregion
|
|
276
|
-
//#region src/errors.d.ts
|
|
277
274
|
/**
|
|
278
275
|
* Base class for ConfigNotFound error.
|
|
279
276
|
*
|
|
@@ -794,8 +791,6 @@ type PersistError = PersistLocalError | ActionYmlPathError;
|
|
|
794
791
|
* @public
|
|
795
792
|
*/
|
|
796
793
|
type AppError = ConfigError | ValidationError | BuildError | PersistError;
|
|
797
|
-
//#endregion
|
|
798
|
-
//#region src/services/config.d.ts
|
|
799
794
|
/**
|
|
800
795
|
* Options for loading configuration.
|
|
801
796
|
* @public
|
|
@@ -933,8 +928,6 @@ export declare class ConfigService extends ConfigService_base {
|
|
|
933
928
|
*/
|
|
934
929
|
static readonly layer: Layer.Layer<ConfigService>;
|
|
935
930
|
}
|
|
936
|
-
//#endregion
|
|
937
|
-
//#region src/services/build.d.ts
|
|
938
931
|
/**
|
|
939
932
|
* Options for the build process.
|
|
940
933
|
* @public
|
|
@@ -1121,8 +1114,6 @@ export declare class BuildService extends BuildService_base {
|
|
|
1121
1114
|
*/
|
|
1122
1115
|
static readonly layer: Layer.Layer<BuildService, never, ConfigService>;
|
|
1123
1116
|
}
|
|
1124
|
-
//#endregion
|
|
1125
|
-
//#region src/services/persist-local.d.ts
|
|
1126
1117
|
/**
|
|
1127
1118
|
* Options for the persist operation.
|
|
1128
1119
|
* @public
|
|
@@ -1206,8 +1197,6 @@ export declare class PersistLocalService extends PersistLocalService_base {
|
|
|
1206
1197
|
*/
|
|
1207
1198
|
static readonly layer: Layer.Layer<PersistLocalService>;
|
|
1208
1199
|
}
|
|
1209
|
-
//#endregion
|
|
1210
|
-
//#region src/services/validation.d.ts
|
|
1211
1200
|
/**
|
|
1212
1201
|
* Options for validation.
|
|
1213
1202
|
* @public
|
|
@@ -1422,8 +1411,6 @@ export declare class ValidationService extends ValidationService_base {
|
|
|
1422
1411
|
*/
|
|
1423
1412
|
static readonly layer: Layer.Layer<ValidationService, never, ConfigService>;
|
|
1424
1413
|
}
|
|
1425
|
-
//#endregion
|
|
1426
|
-
//#region src/github-action.d.ts
|
|
1427
1414
|
/**
|
|
1428
1415
|
* Options for creating a GitHubAction builder instance.
|
|
1429
1416
|
*
|
|
@@ -1700,8 +1687,6 @@ export declare class GitHubAction {
|
|
|
1700
1687
|
*/
|
|
1701
1688
|
dispose(): Promise<void>;
|
|
1702
1689
|
}
|
|
1703
|
-
//#endregion
|
|
1704
|
-
//#region src/layers/app.d.ts
|
|
1705
1690
|
/**
|
|
1706
1691
|
* Layer providing ConfigService (no dependencies).
|
|
1707
1692
|
*
|
|
@@ -1767,6 +1752,5 @@ export declare const PersistLocalLayer: Layer.Layer<PersistLocalService, never,
|
|
|
1767
1752
|
* @public
|
|
1768
1753
|
*/
|
|
1769
1754
|
export declare const AppLayer: Layer.Layer<BuildService | ConfigService | PersistLocalService | ValidationService, never, never>;
|
|
1770
|
-
//#endregion
|
|
1771
1755
|
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
1756
|
//# sourceMappingURL=index.d.ts.map
|
package/layers/app.js
CHANGED
|
@@ -4,7 +4,7 @@ import { PersistLocalService } from "../services/persist-local.js";
|
|
|
4
4
|
import { ValidationService } from "../services/validation.js";
|
|
5
5
|
import { Layer } from "effect";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/layers/app.ts
|
|
8
8
|
/**
|
|
9
9
|
* Application Layer composition.
|
|
10
10
|
*
|
|
@@ -79,5 +79,4 @@ const PersistLocalLayer = PersistLocalService.layer;
|
|
|
79
79
|
*/
|
|
80
80
|
const AppLayer = Layer.mergeAll(ConfigService.layer, ValidationLayer, BuildLayer, PersistLocalLayer);
|
|
81
81
|
|
|
82
|
-
//#endregion
|
|
83
82
|
export { AppLayer, BuildLayer, ConfigLayer, PersistLocalLayer, ValidationLayer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/github-action-builder",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.17",
|
|
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": [
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"github-action-builder": "bin/github-action-builder.js"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@effect/platform-node": "^4.0.
|
|
52
|
-
"@effected/yaml": "^0.
|
|
53
|
-
"@rsbuild/core": "^2.2.
|
|
54
|
-
"effect": "^4.0.
|
|
51
|
+
"@effect/platform-node": "^4.0.6",
|
|
52
|
+
"@effected/yaml": "^0.23.0",
|
|
53
|
+
"@rsbuild/core": "^2.2.14",
|
|
54
|
+
"effect": "^4.0.6",
|
|
55
55
|
"jiti": "^2.7.0",
|
|
56
56
|
"picocolors": "^1.1.1"
|
|
57
57
|
},
|
package/schemas/action-yml.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/schemas/action-yml.ts
|
|
4
4
|
/**
|
|
5
5
|
* GitHub Action action.yml schema validation using Effect Schema.
|
|
6
6
|
*
|
|
@@ -368,5 +368,4 @@ const ActionYml = Schema.Struct({
|
|
|
368
368
|
branding: Schema.optional(Branding)
|
|
369
369
|
});
|
|
370
370
|
|
|
371
|
-
//#endregion
|
|
372
371
|
export { ActionInput, ActionOutput, ActionYml, Branding, BrandingColor, BrandingIcon, Runs };
|
package/schemas/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/schemas/config.ts
|
|
4
4
|
/**
|
|
5
5
|
* Configuration schemas for GitHub Action Builder using Effect Schema.
|
|
6
6
|
*
|
|
@@ -204,5 +204,4 @@ function defineConfig(config = {}) {
|
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
//#endregion
|
|
208
207
|
export { BuildOptionsSchema, ConfigInputSchema, ConfigSchema, EntriesSchema, PersistLocalOptionsSchema, ValidationOptionsSchema, defineConfig };
|
package/schemas/path.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema, SchemaTransformation } from "effect";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/schemas/path.ts
|
|
5
5
|
/**
|
|
6
6
|
* Convert a PathLike value to a string.
|
|
7
7
|
*
|
|
@@ -42,5 +42,4 @@ const PathLikeSchema = Schema.Union([
|
|
|
42
42
|
*/
|
|
43
43
|
const OptionalPathLikeSchema = Schema.optional(PathLikeSchema);
|
|
44
44
|
|
|
45
|
-
//#endregion
|
|
46
45
|
export { OptionalPathLikeSchema, PathLikeSchema, pathLikeToString };
|
package/services/build.js
CHANGED
|
@@ -8,7 +8,7 @@ import { basename, resolve } from "node:path";
|
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
9
|
import { createRsbuild } from "@rsbuild/core";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// src/services/build.ts
|
|
12
12
|
/* v8 ignore start - build service requires actual bundling for integration testing */
|
|
13
13
|
/**
|
|
14
14
|
* BuildService - Effect service for building GitHub Actions.
|
|
@@ -363,5 +363,4 @@ var BuildService = class extends Context.Service()("BuildService") {
|
|
|
363
363
|
};
|
|
364
364
|
/* v8 ignore stop */
|
|
365
365
|
|
|
366
|
-
//#endregion
|
|
367
366
|
export { BuildResultSchema, BuildRunnerOptionsSchema, BuildService, BundleResultSchema, BundleStatsSchema };
|
package/services/config.js
CHANGED
|
@@ -6,7 +6,7 @@ import { existsSync } from "node:fs";
|
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
import { createJiti } from "jiti";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/services/config.ts
|
|
10
10
|
/**
|
|
11
11
|
* ConfigService - Effect service for configuration management.
|
|
12
12
|
*
|
|
@@ -215,5 +215,4 @@ var ConfigService = class extends Context.Service()("ConfigService") {
|
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
//#endregion
|
|
219
218
|
export { ConfigService, DetectEntriesResultSchema, DetectedEntrySchema, LoadConfigOptionsSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/services/native-dynamic-imports.ts
|
|
2
2
|
/**
|
|
3
3
|
* Helpers for the `build.nativeDynamicImports` option: building the rspack
|
|
4
4
|
* module-rule `test` pattern that matches a package's resolved module path
|
|
@@ -61,5 +61,4 @@ function buildNativeDynamicImportRules(packageNames, loaderPath) {
|
|
|
61
61
|
}));
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { buildNativeDynamicImportPathPattern, buildNativeDynamicImportRules };
|
|
@@ -5,7 +5,7 @@ import { dirname, join, relative, resolve } from "node:path";
|
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { Yaml } from "@effected/yaml";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/services/persist-local.ts
|
|
9
9
|
/**
|
|
10
10
|
* PersistLocalService - Effect service for copying build output to a local action directory.
|
|
11
11
|
*
|
|
@@ -246,5 +246,4 @@ var PersistLocalService = class extends Context.Service()("PersistLocalService")
|
|
|
246
246
|
});
|
|
247
247
|
};
|
|
248
248
|
|
|
249
|
-
//#endregion
|
|
250
249
|
export { PersistLocalResultSchema, PersistLocalRunnerOptionsSchema, PersistLocalService };
|
package/services/validation.js
CHANGED
|
@@ -7,7 +7,7 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
7
7
|
import { resolve } from "node:path";
|
|
8
8
|
import { Yaml } from "@effected/yaml";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/services/validation.ts
|
|
11
11
|
/**
|
|
12
12
|
* ValidationService - Effect service for validation.
|
|
13
13
|
*
|
|
@@ -314,5 +314,4 @@ var ValidationService = class extends Context.Service()("ValidationService") {
|
|
|
314
314
|
}));
|
|
315
315
|
};
|
|
316
316
|
|
|
317
|
-
//#endregion
|
|
318
317
|
export { ActionYmlResultSchema, ValidateOptionsSchema, ValidationErrorSchema, ValidationResultSchema, ValidationService, ValidationWarningSchema };
|