use single exported file

This commit is contained in:
ppc
2024-08-22 09:20:10 +01:00
parent 73bbb23808
commit 810207faa2
4 changed files with 8 additions and 2 deletions
+3
View File
@@ -12,6 +12,9 @@
"scripts": {
"build": "tsup"
},
"exports": {
".": "./dist/index.mjs"
},
"dependencies": {
"tsup": "^8.2.4",
"typescript": "^5.5.4"
+2
View File
@@ -0,0 +1,2 @@
export * from './api';
export * from './card';
+2 -1
View File
@@ -7,7 +7,8 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true
"skipLibCheck": true,
"baseUrl": "."
},
"include": ["src/**/*.ts"]
}
+1 -1
View File
@@ -1,7 +1,7 @@
import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/amnet-api.ts", "src/cardgen.ts"],
entry: ["src/index.ts"],
format: ["cjs", "esm"],
splitting: false,
sourcemap: true,