diff --git a/package.json b/package.json index 069bd41..84b8695 100644 --- a/package.json +++ b/package.json @@ -4,22 +4,23 @@ "description": "Source text manipulation and span rendering utilities", "author": "Yura Dupyn ", "license": "GPL-3.0-or-later", - "main": "./dist/index.js", + "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js" + "require": "./dist/index.cjs" } }, "scripts": { - "build": "tsup src/index.ts --format cjs,esm --dts", + "build": "unbuild", + "stub": "unbuild --stub", "typecheck": "tsc --noEmit" }, "devDependencies": { - "tsup": "^8.5.1", - "typescript": "^5.4.0" + "typescript": "^5.4.0", + "unbuild": "^3.6.1" } }