diff --git a/package.json b/package.json index 5db25a3..258aed4 100644 --- a/package.json +++ b/package.json @@ -4,44 +4,18 @@ "description": "Ubiquity logging module with Supabase support.", "author": "Ubiquity DAO", "license": "MIT", + "main": "dist/index.js", + "types": "dist/index.d.ts", "type": "module", - "tsup": { - "entry": [ - "src/logs.ts", - "src/pretty-logs.ts" - ], - "splitting": false, - "sourcemap": true, - "clean": true, - "dts": true, - "format": ["cjs", "esm"] - }, - "files": [ - "dist/*" - ], - "main": "./dist/logs.js", - "typesVersions": { - "*": { - ".": [ - "./dist/logs.d.ts" - ], - "pretty-logs": [ - "./dist/pretty-logs.d.ts" - ] - } - }, "exports": { ".": { - "types": "./dist/logs.d.ts", - "require": "./dist/logs.cjs", - "import": "./dist/logs.js" - }, - "./pretty-logs": { - "types": "./dist/pretty-logs.d.ts", - "require": "./dist/pretty-logs.cjs", - "import": "./dist/pretty-logs.js" + "import": "./dist/index.js", + "require": "./dist/index.cjs" } }, + "files": [ + "dist/*" + ], "scripts": { "build": "tsup", "prepare": "husky install", @@ -95,4 +69,4 @@ ] }, "packageManager": "yarn@1.22.22" -} +} \ No newline at end of file diff --git a/tsup.config.ts b/tsup.config.ts index c62b92d..582b377 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from "tsup" export default defineConfig({ entry: ["src/index.ts"], splitting: false, - sourcemap: true, + sourcemap: false, clean: true, dts: true, target: "esnext",