Ditch tsup switch to unbuild

This commit is contained in:
Yura Dupyn 2026-04-06 20:54:56 +02:00
parent 2f5ead6d68
commit 884b70332b

View file

@ -4,22 +4,23 @@
"description": "Source text manipulation and span rendering utilities", "description": "Source text manipulation and span rendering utilities",
"author": "Yura Dupyn <yura@dupyn.com>", "author": "Yura Dupyn <yura@dupyn.com>",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"main": "./dist/index.js", "main": "./dist/index.cjs",
"module": "./dist/index.mjs", "module": "./dist/index.mjs",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./dist/index.mjs", "import": "./dist/index.mjs",
"require": "./dist/index.js" "require": "./dist/index.cjs"
} }
}, },
"scripts": { "scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts", "build": "unbuild",
"stub": "unbuild --stub",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"
}, },
"devDependencies": { "devDependencies": {
"tsup": "^8.5.1", "typescript": "^5.4.0",
"typescript": "^5.4.0" "unbuild": "^3.6.1"
} }
} }