Refactoring
This commit is contained in:
10
package.json
10
package.json
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|
||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user