diff --git a/bun.lockb b/bun.lockb index 975aeb1..fc19f4e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 96b307f..38106b6 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "files": ["dist/*"], "scripts": { - "build": "bun build src/index.ts --outdir=dist", + "build": "rm -rf dist && bun run tsup", "test": "bun test", "format": "biome check", "format:fix": "biome check --write", @@ -24,13 +24,11 @@ }, "devDependencies": { "@biomejs/biome": "1.8.3", - "lefthook": "^1.6.18", "@supabase/doctest-js": "^0.1.0", "@types/bun": "^1.1.6", - "msw": "^2.3.1" - }, - "peerDependencies": { - "typescript": "^5.0.0" - }, - "dependencies": {} + "lefthook": "^1.6.18", + "msw": "^2.3.1", + "tsup": "^8.1.0", + "typescript": "^5.5.3" + } } diff --git a/src/index.ts b/src/index.ts index 9cb3479..da2f3a9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ export { reportEvent } from "./functions/report-event"; export { createAuction } from "./functions/create-auction"; export * from "./interfaces/events.interface"; +export * from "./interfaces/auctions.interface"; diff --git a/tsconfig.json b/tsconfig.json index f0b59df..b15656b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,13 +7,15 @@ "moduleDetection": "force", "allowImportingTsExtensions": true, "noEmit": true, - "composite": true, "strict": true, "downlevelIteration": true, "skipLibCheck": true, "jsx": "react-jsx", "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, + "removeComments": true, "allowJs": true - } + }, + "include": ["src/*.ts", "src/**/*.ts"], + "exclude": ["node_modules"] } diff --git a/tsup.config.ts b/tsup.config.ts new file mode 100644 index 0000000..0e3f406 --- /dev/null +++ b/tsup.config.ts @@ -0,0 +1,12 @@ +import { defineConfig } from "tsup"; + +export default defineConfig({ + entry: ["src/index.ts"], + format: ["cjs", "esm"], + dts: true, + clean: true, + minify: true, + esbuildOptions(options) { + options.keepNames = true; + }, +});