Skip to content

Commit

Permalink
refactor(effect): apply manual migration fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Apr 21, 2024
1 parent c0d08d5 commit 306db5f
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
"@types/node": "20.12.7",
"@types/npm-package-arg": "6.1.4",
"@types/prompts": "2.4.9",
"@types/semver": "7.5.8",
"@typescript-eslint/eslint-plugin": "6.19.0",
"@typescript-eslint/parser": "6.19.0",
"@types/semver": "7.5.8",
"@vitest/coverage-v8": "1.5.0",
"auto-changelog": "2.4.0",
"eslint": "8.56.0",
Expand Down Expand Up @@ -108,7 +108,7 @@
"repository": "JamieMason/syncpack",
"scripts": {
"build": "pnpm run clean && pnpm run build:source && pnpm run build:json-schema",
"build:json-schema": "typescript-json-schema --esModuleInterop --noExtraProps src/index.ts RcFile --out dist/schema.json",
"build:json-schema": "typescript-json-schema --esModuleInterop --noExtraProps --ignoreErrors src/index.ts RcFile --out dist/schema.json",
"build:source": "tsc --project tsconfig.build.json",
"clean": "rm -rf ./dist",
"format": "pnpm run format:lint && pnpm run format:source",
Expand Down
2 changes: 1 addition & 1 deletion src/bin-fix-mismatches/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ program
.option(...option.indent)
.parse(process.argv);

Effect.runPromise<never, unknown>(
Effect.runPromise(
fixMismatches({
io,
cli: {
Expand Down
2 changes: 1 addition & 1 deletion src/bin-format/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ program
.option(...option.indent)
.parse(process.argv);

Effect.runPromise<never, unknown>(
Effect.runPromise(
format({
io,
cli: {
Expand Down
2 changes: 1 addition & 1 deletion src/bin-lint-semver-ranges/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ program
.option(...option.types)
.parse(process.argv);

Effect.runPromise<never, unknown>(
Effect.runPromise(
lintSemverRanges({
io,
cli: {
Expand Down
2 changes: 1 addition & 1 deletion src/bin-lint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ showHelpOnError(program);

program.option(...option.config).parse(process.argv);

Effect.runPromise<never, unknown>(
Effect.runPromise(
lint({
io,
cli: {
Expand Down
2 changes: 1 addition & 1 deletion src/bin-list-mismatches/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ program
.option(...option.types)
.parse(process.argv);

Effect.runPromise<never, unknown>(
Effect.runPromise(
listMismatches({
io,
cli: {
Expand Down
2 changes: 1 addition & 1 deletion src/bin-list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ program
.option(...option.types)
.parse(process.argv);

Effect.runPromise<never, unknown>(
Effect.runPromise(
list({
io,
cli: {
Expand Down
2 changes: 1 addition & 1 deletion src/bin-prompt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ program
.option(...option.indent)
.parse(process.argv);

Effect.runPromise<never, unknown>(
Effect.runPromise(
prompt({
io,
cli: {
Expand Down
2 changes: 1 addition & 1 deletion src/bin-set-semver-ranges/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ program
.option(...option.indent)
.parse(process.argv);

Effect.runPromise<never, unknown>(
Effect.runPromise(
setSemverRanges({
io,
cli: {
Expand Down
2 changes: 1 addition & 1 deletion src/bin-update/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const updateEffects = {
fetchJson(`https://registry.npmjs.org/${instance.name}`),
// parse and validate the specific data we expect
Effect.flatMap(
Schema.parse(
Schema.decodeUnknownEither(
Schema.Struct({
'dist-tags': Schema.Struct({ latest: Schema.String }),
'time': Schema.Record(Schema.String, Schema.String),
Expand Down
2 changes: 1 addition & 1 deletion src/bin-update/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ program
.option(...option.types)
.parse(process.argv);

Effect.runPromise<never, unknown>(
Effect.runPromise(
update(io, {
configPath: program.opts().config,
filter: program.opts().filter,
Expand Down

0 comments on commit 306db5f

Please sign in to comment.