Skip to content

Commit

Permalink
fix: include entrypoint in tsup build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvuka1 committed Sep 2, 2023
1 parent 201ebfa commit 6fdce6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,18 @@
"default": "./dist/adapter.mjs"
}
},
"./dist/*": "./dist/*",
"./entrypoint": "./dist/entrypoint.js",
"./entrypoint": {
"require": {
"types": "./dist/entrypoint.d.cts",
"default": "./dist/entrypoint.cjs"
},
"import": {
"types": "./dist/entrypoint.d.ts",
"default": "./dist/entrypoint.mjs"
}
},
"./package.json": "./package.json"
},
"directories": {
"dist": "./dist"
},
"files": [
"dist"
],
"engines": {
"node": ">=18"
},
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({
target: ["esnext", "node18"],
entry: ['src/adapter.ts'],
entry: ['src/adapter.ts', 'src/entrypoint.ts'],
format: ["esm", "cjs"],
sourcemap: true,
clean: true,
Expand Down

0 comments on commit 6fdce6b

Please sign in to comment.