diff --git a/packages/cli/tsconfig.build.json b/packages/cli/tsconfig.build.json index 002dce6fc1..fadf00be97 100644 --- a/packages/cli/tsconfig.build.json +++ b/packages/cli/tsconfig.build.json @@ -1,12 +1,12 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../effect" }, - { "path": "../schema" }, - { "path": "../printer" }, - { "path": "../printer-ansi" }, - { "path": "../platform" }, - { "path": "../platform-node" }, + { "path": "../effect/tsconfig.build.json" }, + { "path": "../schema/tsconfig.build.json" }, + { "path": "../printer/tsconfig.build.json" }, + { "path": "../printer-ansi/tsconfig.build.json" }, + { "path": "../platform/tsconfig.build.json" }, + { "path": "../platform-node/tsconfig.build.json" }, ], "compilerOptions": { "types": ["node"], diff --git a/packages/experimental/tsconfig.build.json b/packages/experimental/tsconfig.build.json index 45ec59010b..91a6b15dd1 100644 --- a/packages/experimental/tsconfig.build.json +++ b/packages/experimental/tsconfig.build.json @@ -1,10 +1,10 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../effect" }, - { "path": "../schema" }, - { "path": "../platform" }, - { "path": "../platform-node" } + { "path": "../effect/tsconfig.build.json" }, + { "path": "../schema/tsconfig.build.json" }, + { "path": "../platform/tsconfig.build.json" }, + { "path": "../platform-node/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/opentelemetry/tsconfig.build.json b/packages/opentelemetry/tsconfig.build.json index 5cc2d042b9..76ee3883a1 100644 --- a/packages/opentelemetry/tsconfig.build.json +++ b/packages/opentelemetry/tsconfig.build.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../effect" } + { "path": "../effect/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/platform-browser/tsconfig.build.json b/packages/platform-browser/tsconfig.build.json index 972fb14a53..6c869dff9b 100644 --- a/packages/platform-browser/tsconfig.build.json +++ b/packages/platform-browser/tsconfig.build.json @@ -1,9 +1,9 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../platform" }, - { "path": "../effect" }, - { "path": "../schema" } + { "path": "../platform/tsconfig.build.json" }, + { "path": "../effect/tsconfig.build.json" }, + { "path": "../schema/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/platform-bun/tsconfig.build.json b/packages/platform-bun/tsconfig.build.json index 6ba4a7c3b9..9831d2e734 100644 --- a/packages/platform-bun/tsconfig.build.json +++ b/packages/platform-bun/tsconfig.build.json @@ -1,8 +1,8 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../platform" }, - { "path": "../platform-node" } + { "path": "../platform/tsconfig.build.json" }, + { "path": "../platform-node/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/platform-node-shared/tsconfig.build.json b/packages/platform-node-shared/tsconfig.build.json index c111670850..3daf2f819b 100644 --- a/packages/platform-node-shared/tsconfig.build.json +++ b/packages/platform-node-shared/tsconfig.build.json @@ -1,15 +1,9 @@ { "extends": "./tsconfig.src.json", "references": [ - { - "path": "../platform" - }, - { - "path": "../effect" - }, - { - "path": "../schema" - } + { "path": "../platform/tsconfig.build.json" }, + { "path": "../effect/tsconfig.build.json" }, + { "path": "../schema/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/platform-node/tsconfig.build.json b/packages/platform-node/tsconfig.build.json index 579a4f6d11..adf744ff0b 100644 --- a/packages/platform-node/tsconfig.build.json +++ b/packages/platform-node/tsconfig.build.json @@ -1,10 +1,10 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../platform" }, - { "path": "../platform-node-shared" }, - { "path": "../effect" }, - { "path": "../schema" } + { "path": "../platform/tsconfig.build.json" }, + { "path": "../platform-node-shared/tsconfig.build.json" }, + { "path": "../effect/tsconfig.build.json" }, + { "path": "../schema/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/platform/src/Template.ts b/packages/platform/src/Template.ts index ae1de70fb7..f54cba17ec 100644 --- a/packages/platform/src/Template.ts +++ b/packages/platform/src/Template.ts @@ -2,7 +2,6 @@ * @since 1.0.0 */ import * as Effect from "effect/Effect" -import type * as core from "effect/internal/core" import * as Option from "effect/Option" import * as Predicate from "effect/Predicate" import * as Stream from "effect/Stream" @@ -82,7 +81,7 @@ export function make>( if (Option.isOption(arg)) { values[i] = arg._tag === "Some" ? primitiveToString(arg.value) : "" } else if (isSuccess(arg)) { - values[i] = primitiveToString(arg.effect_instruction_i0 as Primitive) + values[i] = primitiveToString((arg as any).effect_instruction_i0) } else if (Effect.isEffect(arg)) { effects.push([i, arg]) } else { @@ -131,7 +130,7 @@ export function stream>( if (Option.isOption(arg)) { buffer += arg._tag === "Some" ? primitiveToString(arg.value) : "" } else if (isSuccess(arg)) { - buffer += primitiveToString(arg.effect_instruction_i0 as Primitive) + buffer += primitiveToString((arg as any).effect_instruction_i0) } else if (Predicate.hasProperty(arg, Stream.StreamTypeId)) { if (buffer.length > 0) { chunks.push(buffer) @@ -194,6 +193,6 @@ function consolidate( return out + strings[strings.length - 1] } -function isSuccess(u: unknown): u is core.Success { - return Effect.isEffect(u) && (u as core.Primitive)._op === "Success" +function isSuccess(u: unknown) { + return Effect.isEffect(u) && (u as any)._op === "Success" } diff --git a/packages/platform/tsconfig.build.json b/packages/platform/tsconfig.build.json index 544d63c710..17ad78f02e 100644 --- a/packages/platform/tsconfig.build.json +++ b/packages/platform/tsconfig.build.json @@ -1,8 +1,8 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../effect" }, - { "path": "../schema" } + { "path": "../effect/tsconfig.build.json" }, + { "path": "../schema/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/printer-ansi/tsconfig.build.json b/packages/printer-ansi/tsconfig.build.json index 3389ad5800..4c01a73683 100644 --- a/packages/printer-ansi/tsconfig.build.json +++ b/packages/printer-ansi/tsconfig.build.json @@ -1,9 +1,9 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../printer" }, - { "path": "../effect" }, - { "path": "../typeclass" } + { "path": "../printer/tsconfig.build.json" }, + { "path": "../effect/tsconfig.build.json" }, + { "path": "../typeclass/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/printer/tsconfig.build.json b/packages/printer/tsconfig.build.json index fc1f9fd229..9738dee620 100644 --- a/packages/printer/tsconfig.build.json +++ b/packages/printer/tsconfig.build.json @@ -1,8 +1,8 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../effect" }, - { "path": "../typeclass" } + { "path": "../effect/tsconfig.build.json" }, + { "path": "../typeclass/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/rpc-http/tsconfig.build.json b/packages/rpc-http/tsconfig.build.json index 455ec2d065..0042d5c8c0 100644 --- a/packages/rpc-http/tsconfig.build.json +++ b/packages/rpc-http/tsconfig.build.json @@ -1,10 +1,10 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../effect" }, - { "path": "../schema" }, - { "path": "../rpc" }, - { "path": "../platform" } + { "path": "../effect/tsconfig.build.json" }, + { "path": "../schema/tsconfig.build.json" }, + { "path": "../rpc/tsconfig.build.json" }, + { "path": "../platform/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/rpc/tsconfig.build.json b/packages/rpc/tsconfig.build.json index fd1f3bbd27..94e5fb0383 100644 --- a/packages/rpc/tsconfig.build.json +++ b/packages/rpc/tsconfig.build.json @@ -1,9 +1,9 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../effect" }, - { "path": "../platform" }, - { "path": "../schema" } + { "path": "../effect/tsconfig.build.json" }, + { "path": "../platform/tsconfig.build.json" }, + { "path": "../schema/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/schema/tsconfig.build.json b/packages/schema/tsconfig.build.json index 5cc2d042b9..76ee3883a1 100644 --- a/packages/schema/tsconfig.build.json +++ b/packages/schema/tsconfig.build.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../effect" } + { "path": "../effect/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/sql-mssql/tsconfig.build.json b/packages/sql-mssql/tsconfig.build.json index 808406fd4c..8a5c6b4d6e 100644 --- a/packages/sql-mssql/tsconfig.build.json +++ b/packages/sql-mssql/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.src.json", - "references": [{ "path": "../effect" }, { "path": "../sql" }], + "references": [ + { "path": "../effect/tsconfig.build.json" }, + { "path": "../sql/tsconfig.build.json" } + ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", "outDir": "build/esm", diff --git a/packages/sql-mysql2/tsconfig.build.json b/packages/sql-mysql2/tsconfig.build.json index 808406fd4c..8a5c6b4d6e 100644 --- a/packages/sql-mysql2/tsconfig.build.json +++ b/packages/sql-mysql2/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.src.json", - "references": [{ "path": "../effect" }, { "path": "../sql" }], + "references": [ + { "path": "../effect/tsconfig.build.json" }, + { "path": "../sql/tsconfig.build.json" } + ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", "outDir": "build/esm", diff --git a/packages/sql-pg/tsconfig.build.json b/packages/sql-pg/tsconfig.build.json index 808406fd4c..8a5c6b4d6e 100644 --- a/packages/sql-pg/tsconfig.build.json +++ b/packages/sql-pg/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.src.json", - "references": [{ "path": "../effect" }, { "path": "../sql" }], + "references": [ + { "path": "../effect/tsconfig.build.json" }, + { "path": "../sql/tsconfig.build.json" } + ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", "outDir": "build/esm", diff --git a/packages/sql-sqlite-bun/tsconfig.build.json b/packages/sql-sqlite-bun/tsconfig.build.json index 808406fd4c..8a5c6b4d6e 100644 --- a/packages/sql-sqlite-bun/tsconfig.build.json +++ b/packages/sql-sqlite-bun/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.src.json", - "references": [{ "path": "../effect" }, { "path": "../sql" }], + "references": [ + { "path": "../effect/tsconfig.build.json" }, + { "path": "../sql/tsconfig.build.json" } + ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", "outDir": "build/esm", diff --git a/packages/sql-sqlite-node/tsconfig.build.json b/packages/sql-sqlite-node/tsconfig.build.json index 808406fd4c..8a5c6b4d6e 100644 --- a/packages/sql-sqlite-node/tsconfig.build.json +++ b/packages/sql-sqlite-node/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.src.json", - "references": [{ "path": "../effect" }, { "path": "../sql" }], + "references": [ + { "path": "../effect/tsconfig.build.json" }, + { "path": "../sql/tsconfig.build.json" } + ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", "outDir": "build/esm", diff --git a/packages/sql-sqlite-react-native/tsconfig.build.json b/packages/sql-sqlite-react-native/tsconfig.build.json index 808406fd4c..8a5c6b4d6e 100644 --- a/packages/sql-sqlite-react-native/tsconfig.build.json +++ b/packages/sql-sqlite-react-native/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.src.json", - "references": [{ "path": "../effect" }, { "path": "../sql" }], + "references": [ + { "path": "../effect/tsconfig.build.json" }, + { "path": "../sql/tsconfig.build.json" } + ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", "outDir": "build/esm", diff --git a/packages/sql-sqlite-wasm/tsconfig.build.json b/packages/sql-sqlite-wasm/tsconfig.build.json index 808406fd4c..8a5c6b4d6e 100644 --- a/packages/sql-sqlite-wasm/tsconfig.build.json +++ b/packages/sql-sqlite-wasm/tsconfig.build.json @@ -1,6 +1,9 @@ { "extends": "./tsconfig.src.json", - "references": [{ "path": "../effect" }, { "path": "../sql" }], + "references": [ + { "path": "../effect/tsconfig.build.json" }, + { "path": "../sql/tsconfig.build.json" } + ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", "outDir": "build/esm", diff --git a/packages/sql/tsconfig.build.json b/packages/sql/tsconfig.build.json index fd1f3bbd27..94e5fb0383 100644 --- a/packages/sql/tsconfig.build.json +++ b/packages/sql/tsconfig.build.json @@ -1,9 +1,9 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../effect" }, - { "path": "../platform" }, - { "path": "../schema" } + { "path": "../effect/tsconfig.build.json" }, + { "path": "../platform/tsconfig.build.json" }, + { "path": "../schema/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/typeclass/tsconfig.build.json b/packages/typeclass/tsconfig.build.json index 5cc2d042b9..76ee3883a1 100644 --- a/packages/typeclass/tsconfig.build.json +++ b/packages/typeclass/tsconfig.build.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.src.json", "references": [ - { "path": "../effect" } + { "path": "../effect/tsconfig.build.json" } ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", diff --git a/packages/vitest/tsconfig.build.json b/packages/vitest/tsconfig.build.json index 0d655f1fff..76ee3883a1 100644 --- a/packages/vitest/tsconfig.build.json +++ b/packages/vitest/tsconfig.build.json @@ -1,6 +1,8 @@ { "extends": "./tsconfig.src.json", - "references": [{ "path": "../effect" }], + "references": [ + { "path": "../effect/tsconfig.build.json" } + ], "compilerOptions": { "tsBuildInfoFile": ".tsbuildinfo/build.tsbuildinfo", "outDir": "build/esm",