Refactoring

This commit is contained in:
Julien Valverdé
2024-06-10 23:04:13 +02:00
parent 606ea43aab
commit 942d1c9ea6
7 changed files with 7 additions and 7 deletions

View File

@@ -20,14 +20,14 @@
"default": "./dist/index.cjs" "default": "./dist/index.cjs"
} }
}, },
"./effect/schema": { "./effect/schema/class": {
"import": { "import": {
"types": "./dist/effect/schema/index.d.ts", "types": "./dist/effect/schema/class/index.d.ts",
"default": "./dist/effect/schema/index.js" "default": "./dist/effect/schema/class/index.js"
}, },
"require": { "require": {
"types": "./dist/effect/schema/index.d.cts", "types": "./dist/effect/schema/class/index.d.cts",
"default": "./dist/effect/schema/index.cjs" "default": "./dist/effect/schema/class/index.cjs"
} }
} }
}, },

View File

@@ -2,7 +2,7 @@ import { Schema as S } from "@effect/schema"
import type { Annotations, Class, Struct } from "@effect/schema/Schema" import type { Annotations, Class, Struct } from "@effect/schema/Schema"
import type { Mutable } from "effect/Types" import type { Mutable } from "effect/Types"
import type { Constructor } from "type-fest" import type { Constructor } from "type-fest"
import type { StaticType } from "../.." import type { StaticType } from "../../.."
import type { HasFields, MissingSelfGeneric } from "./util" import type { HasFields, MissingSelfGeneric } from "./util"

View File

@@ -2,7 +2,7 @@ import { defineConfig } from "tsup"
export default defineConfig({ export default defineConfig({
entry: ["./src/index.ts", "./src/effect/schema/index.ts"], entry: ["./src/index.ts", "./src/effect/schema/class/index.ts"],
format: ["esm", "cjs"], format: ["esm", "cjs"],
skipNodeModulesBundle: true, skipNodeModulesBundle: true,
dts: true, dts: true,