Skip to content

Commit

Permalink
refactor(effect): run @effect/codemod
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Apr 21, 2024
1 parent 88969d8 commit c0d08d5
Show file tree
Hide file tree
Showing 59 changed files with 288 additions and 324 deletions.
2 changes: 1 addition & 1 deletion src/bin-format/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function format({ io, cli, errorHandlers = defaultErrorHandlers }: Input)
);
}

export function pipeline(ctx: Ctx): Effect.Effect<never, never, Ctx> {
export function pipeline(ctx: Ctx): Effect.Effect<Ctx> {
const { config, packageJsonFiles } = ctx;
const sortAz = getSortAz(config);
const sortExports = getSortExports(config);
Expand Down
6 changes: 1 addition & 5 deletions src/bin-lint-semver-ranges/lint-semver-ranges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ export function lintSemverRanges({ io, cli, errorHandlers = defaultErrorHandlers
}

/** Exported to be reused by `syncpack lint` */
export function pipeline(
ctx: Ctx,
io: Io,
errorHandlers: ErrorHandlers,
): Effect.Effect<never, never, Ctx> {
export function pipeline(ctx: Ctx, io: Io, errorHandlers: ErrorHandlers): Effect.Effect<Ctx> {
return Effect.gen(function* ($) {
// no semver groups have been configured, they are disabled by default
if (!isNonEmptyArray(ctx.config.rcFile.semverGroups)) {
Expand Down

0 comments on commit c0d08d5

Please sign in to comment.