diff --git a/package.json b/package.json index 17a3cac..a94a2fd 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "@curiousleaf/utils", "description": "A lightweight set of utilities", - "version": "1.0.39", + "version": "1.0.40", "license": "MIT", + "type": "module", "author": { "name": "Piotr Kulpinski", "email": "piotr@kulpinski.pl", @@ -10,15 +11,12 @@ }, "repository": "curious-leaf/utils", "main": "./dist/index.js", - "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { - ".": { - "require": "./dist/index.js", - "import": "./dist/index.mjs", - "types": "./dist/index.d.ts" - } + "default": "./dist/index.js", + "types": "./dist/index.d.ts" }, + "files": ["dist"], "scripts": { "build": "tsup", "lint": "bun biome lint --apply .", diff --git a/tsup.config.ts b/tsup.config.ts index 1a0d587..d1048a8 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from "tsup" export default defineConfig({ entry: ["src/index.ts"], - format: ["cjs", "esm"], // Build for commonJS and ESmodules + format: ["esm"], // Build for commonJS and ESmodules dts: true, // Generate declaration file (.d.ts) splitting: false, sourcemap: true,