Skip to content

Commit

Permalink
Fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
bayasdev committed Sep 14, 2024
1 parent 2b2d773 commit 029de44
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
Binary file modified bun.lockb
Binary file not shown.
28 changes: 17 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "validator-ec",
"version": "1.0.0",
"version": "1.0.3",
"type": "module",
"author": "Victor Bayas",
"license": "Apache-2.0",
"repository": {
Expand All @@ -10,20 +11,25 @@
"bugs": {
"url": "https://github.com/bayasdev/validator-ec/issues"
},
"type": "module",
"files": [
"dist"
],
"module": "dist/index.js",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"test": "vitest"
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "tsup";

export default defineConfig({
entry: ["src/index.ts"],
format: ["cjs", "esm"],
format: ["esm", "cjs"],
dts: true,
sourcemap: true,
minify: true,
Expand Down

0 comments on commit 029de44

Please sign in to comment.