Skip to content

Commit 029de44

Browse files
committed
Fix exports
1 parent 2b2d773 commit 029de44

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

bun.lockb

0 Bytes
Binary file not shown.

package.json

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "validator-ec",
3-
"version": "1.0.0",
3+
"version": "1.0.3",
4+
"type": "module",
45
"author": "Victor Bayas",
56
"license": "Apache-2.0",
67
"repository": {
@@ -10,20 +11,25 @@
1011
"bugs": {
1112
"url": "https://github.com/bayasdev/validator-ec/issues"
1213
},
13-
"type": "module",
14-
"files": [
15-
"dist"
16-
],
17-
"module": "dist/index.js",
18-
"main": "dist/index.cjs",
19-
"types": "dist/index.d.ts",
14+
"main": "./dist/index.cjs",
15+
"module": "./dist/index.js",
16+
"types": "./dist/index.d.ts",
2017
"exports": {
18+
"./package.json": "./package.json",
2119
".": {
22-
"types": "./dist/index.d.ts",
23-
"import": "./dist/index.js",
24-
"require": "./dist/index.cjs"
20+
"import": {
21+
"types": "./dist/index.d.ts",
22+
"default": "./dist/index.js"
23+
},
24+
"require": {
25+
"types": "./dist/index.d.cts",
26+
"default": "./dist/index.cjs"
27+
}
2528
}
2629
},
30+
"files": [
31+
"dist"
32+
],
2733
"scripts": {
2834
"build": "tsup",
2935
"test": "vitest"

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from "tsup";
22

33
export default defineConfig({
44
entry: ["src/index.ts"],
5-
format: ["cjs", "esm"],
5+
format: ["esm", "cjs"],
66
dts: true,
77
sourcemap: true,
88
minify: true,

0 commit comments

Comments
 (0)