@savvy-web/github-action-builder 2.2.2 → 2.2.3

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.
@@ -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.2.2" });
27
+ const cli = Command.run(rootCommand, { version: "2.2.3" });
28
28
  /**
29
29
  * Combined layer: AppLayer + the Node implementations of the CLI
30
30
  * environment (FileSystem, Path, Terminal, Stdio, ChildProcessSpawner).
@@ -42,8 +42,10 @@ const buildHandler = ({ config, quiet, noValidate, noPersist }) => Effect.gen(fu
42
42
  configPath: config.value
43
43
  } : { cwd };
44
44
  const configResult = yield* configService.load(loadOptions);
45
- if (!quiet) if (configResult.usingDefaults) yield* Console.log(" Using default configuration");
46
- else yield* Console.log(` Found ${configResult.configPath}`);
45
+ if (!quiet) {
46
+ if (configResult.usingDefaults) yield* Console.log(" Using default configuration");
47
+ else yield* Console.log(` Found ${configResult.configPath}`);
48
+ }
47
49
  if (!noValidate) {
48
50
  if (!quiet) yield* Console.log("\nValidating...");
49
51
  const validationResult = yield* validationService.validate(configResult.config, { cwd });
@@ -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.2.2";
23
+ return "2.2.3";
24
24
  };
25
25
  /**
26
26
  * Generate package.json content.
@@ -22,8 +22,10 @@ const validateHandler = ({ config, quiet }) => Effect.gen(function* () {
22
22
  configPath: config.value
23
23
  } : { cwd };
24
24
  const configResult = yield* configService.load(loadOptions);
25
- if (!quiet) if (configResult.usingDefaults) yield* Console.log(" Using default configuration");
26
- else yield* Console.log(` Found ${configResult.configPath}`);
25
+ if (!quiet) {
26
+ if (configResult.usingDefaults) yield* Console.log(" Using default configuration");
27
+ else yield* Console.log(` Found ${configResult.configPath}`);
28
+ }
27
29
  if (!quiet) yield* Console.log("\nValidating...");
28
30
  const validationResult = yield* validationService.validate(configResult.config, { cwd });
29
31
  yield* Console.log(`\n${validationService.formatResult(validationResult)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvy-web/github-action-builder",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
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.0-beta.101",
52
- "@effected/yaml": "^0.6.1",
51
+ "@effect/platform-node": "4.0.0-beta.107",
52
+ "@effected/yaml": "^0.7.0",
53
53
  "@rsbuild/core": "^2.1.9",
54
- "effect": "4.0.0-beta.101",
54
+ "effect": "4.0.0-beta.107",
55
55
  "jiti": "^2.7.0",
56
56
  "picocolors": "^1.1.1"
57
57
  },
@@ -179,16 +179,17 @@ var PersistLocalService = class extends Context.Service()("PersistLocalService")
179
179
  let totalSkipped = 0;
180
180
  const actionYmlSrc = resolve(cwd, "action.yml");
181
181
  const actionYmlDest = resolve(outputPath, "action.yml");
182
- if (existsSync(actionYmlSrc)) if (yield* Effect.try({
183
- try: () => syncFile(actionYmlSrc, actionYmlDest),
184
- /* v8 ignore next 5 - error branch requires fs permission failures */
185
- catch: (error) => new PersistLocalError({
186
- path: actionYmlSrc,
187
- cause: error
188
- })
189
- })) totalCopied++;
190
- else totalSkipped++;
191
- else if (existsSync(actionYmlDest)) rmSync(actionYmlDest, { force: true });
182
+ if (existsSync(actionYmlSrc)) {
183
+ if (yield* Effect.try({
184
+ try: () => syncFile(actionYmlSrc, actionYmlDest),
185
+ /* v8 ignore next 5 - error branch requires fs permission failures */
186
+ catch: (error) => new PersistLocalError({
187
+ path: actionYmlSrc,
188
+ cause: error
189
+ })
190
+ })) totalCopied++;
191
+ else totalSkipped++;
192
+ } else if (existsSync(actionYmlDest)) rmSync(actionYmlDest, { force: true });
192
193
  const distSrc = resolve(cwd, "dist");
193
194
  if (existsSync(distSrc) && statSync(distSrc).isDirectory()) {
194
195
  const distStats = yield* Effect.try({