From 53ab869bfed84ded2940410190cd69ad7c89fde9 Mon Sep 17 00:00:00 2001 From: bjarneo Date: Tue, 9 Apr 2024 20:31:36 +0200 Subject: [PATCH] feat!: use ESM only --- package.json | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/package.json b/package.json index ce937b8..b525887 100644 --- a/package.json +++ b/package.json @@ -4,18 +4,12 @@ "description": "Extract domain name from a URL", "type": "module", "source": "index.ts", - "exports": { - "types": "./dist/index.d.ts", - "require": "./dist/extract-domain.cjs", - "default": "./dist/extract-domain.modern.js" - }, - "main": "./dist/extract-domain.cjs", "module": "./dist/extract-domain.module.js", "types": "./dist/index.d.ts", "author": "Bjarne Oeverli", "license": "MIT", "scripts": { - "build": "npm run pretty && bunx --bun microbundle -i extractDomain -f modern,esm,cjs index.ts", + "build": "npm run pretty && bunx --bun microbundle -i extractDomain -f esm index.ts", "test": "bun test tests/", "test:watch": "bun test --watch tests/", "pretty": "prettier --tab-width=4 --print-width=100 --single-quote --trailing-comma=es5 --write *.ts *.ts",