Skip to content

Commit

Permalink
fix: include missing enums when exporting esm/cjs modules
Browse files Browse the repository at this point in the history
  • Loading branch information
weyoss committed Mar 24, 2024
1 parent 74b2409 commit 6dbfa0a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
13 changes: 9 additions & 4 deletions package.json
Expand Up @@ -33,12 +33,17 @@
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"types": "./dist/esm/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"./package.json": "./package.json"
},
Expand Down
3 changes: 0 additions & 3 deletions scripts/build.sh
Expand Up @@ -29,6 +29,3 @@ cat >dist/cjs/package.json <<!EOF
!EOF
cp -r src/redis-client/lua-scripts/scripts dist/cjs/src/redis-client/lua-scripts/
cp -r src/locker/redis-client/lua-scripts/scripts dist/cjs/src/locker/redis-client/lua-scripts/

# types
tsc -p ./tsconfig.types.json
2 changes: 2 additions & 0 deletions tsconfig.json
Expand Up @@ -14,6 +14,8 @@
"allowSyntheticDefaultImports": true,
"isolatedModules": true,
"forceConsistentCasingInFileNames": true,
"declaration": true,
"declarationMap": true,

// esm settings
"outDir": "dist/esm",
Expand Down
10 changes: 0 additions & 10 deletions tsconfig.types.json

This file was deleted.

0 comments on commit 6dbfa0a

Please sign in to comment.