Skip to content

Commit

Permalink
feat!: use ESM only
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo committed Apr 9, 2024
1 parent d4a6160 commit 53ab869
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 53ab869

Please sign in to comment.