Skip to content

Commit

Permalink
fix: allow sub module imports [EXT-6147] (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobHemphill76 authored Jan 28, 2025
1 parent befd4e7 commit 55c329e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.cjs"
},
"./keys": {
"import": "./lib/keys/index.mjs",
"require": "./lib/keys/index.cjs"
},
"./requests": {
"import": "./lib/requests/index.mjs",
"require": "./lib/requests/index.cjs"
},
"./requests/typings": {
"import": "./lib/requests//typingsindex.mjs",
"require": "./lib/requests/typings/index.cjs"
},
"./utils": {
"import": "./lib/utils/index.mjs",
"require": "./lib/utils/index.cjs"
}
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['src/index.ts'],
entry: ['src/index.ts','src/keys/index.ts','src/requests/index.ts','src/requests/typings/index.ts','src/utils/index.ts'],
outDir: 'lib',
format: ['cjs', 'esm'],
dts: true,
Expand Down

0 comments on commit 55c329e

Please sign in to comment.