diff --git a/CHANGELOG.md b/CHANGELOG.md index f6fa5a2..0371b7e 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # @brainylab/resolver-validators +## 0.8.1 + +### Patch Changes + +- [`54c0fa4`](https://github.com/brainylab/resolver-validators/commit/54c0fa47b24d50e76036fc7cbc28a33e671c01c7) Thanks [@andrefelipeschulle](https://github.com/andrefelipeschulle)! - fix build + +## 0.8.0 + +### Minor Changes + +- [`40450f2`](https://github.com/brainylab/resolver-validators/commit/40450f24a3b8c516ea15e044dd27ae2f9474e131) Thanks [@andrefelipeschulle](https://github.com/andrefelipeschulle)! - chore: finalize version — convert to ESM-only modules + ## 0.7.4 ### Patch Changes diff --git a/clean-package.config.json b/clean-package.config.json index 480848a..097e4e8 100755 --- a/clean-package.config.json +++ b/clean-package.config.json @@ -1,26 +1,33 @@ { "remove": ["devDependencies", "dependencies", "scripts"], "replace": { - "main": "./dist/index.cjs", - "module": "./dist/index.js", + "type": "module", "types": "./dist/index.d.ts", + "module": "./dist/index.js", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", - "require": "./dist/index.cjs" + "default": "./dist/index.js" }, "./typebox": { "types": "./dist/resolvers/typebox.d.ts", "import": "./dist/resolvers/typebox.js", - "require": "./dist/resolvers/typebox.cjs" + "default": "./dist/resolvers/typebox.js" }, "./zod": { "types": "./dist/resolvers/zod.d.ts", "import": "./dist/resolvers/zod.js", - "require": "./dist/resolvers/zod.cjs" + "default": "./dist/resolvers/zod.js" }, "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "typebox": ["./dist/resolvers/typebox.d.ts"], + "zod": ["./dist/resolvers/zod.d.ts"], + ".": ["./dist/index.d.ts"] + } } } } diff --git a/package.json b/package.json index 7da9a7e..e1e00dd 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@brainylab/resolver-validators", - "version": "0.7.4", + "version": "0.8.1", "description": "", "keywords": [], "bugs": { @@ -15,10 +15,10 @@ "name": "André Felipe Schulle", "email": "andrefelipeschulle@icloud.com" }, - "type": "module", "files": [ "dist" ], + "type": "module", "scripts": { "build": "pnpm build:core && pnpm build:resolvers:typebox && pnpm build:resolvers:zod", "build:core": "pnpm tsup ./src/index.ts --clean", diff --git a/tsup.config.ts b/tsup.config.ts index e744478..d4f187d 100755 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -3,9 +3,9 @@ import { defineConfig } from "tsup"; export default defineConfig({ entry: ["!./src/**/*.spec.ts"], target: "es2022", - format: ["cjs", "esm"], + format: ["esm"], splitting: false, bundle: true, dts: true, - external: ["@sinclair/typebox", "zod"], + external: ["typebox", "zod"], });