From 5df8b05274f6b88097ac25400ba5aa625a8887bc Mon Sep 17 00:00:00 2001 From: Yura Dupyn <2153100+omedusyo@users.noreply.github.com> Date: Mon, 6 Apr 2026 21:18:45 +0200 Subject: [PATCH] Fuck all of these bundlers. Just use `tsc` --- package.json | 12 ++++-------- tsconfig.json | 8 ++++---- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 84b8695..0251aad 100644 --- a/package.json +++ b/package.json @@ -4,23 +4,19 @@ "description": "Source text manipulation and span rendering utilities", "author": "Yura Dupyn ", "license": "GPL-3.0-or-later", - "main": "./dist/index.cjs", - "module": "./dist/index.mjs", + "type": "module", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs" + "import": "./dist/index.js" } }, "scripts": { - "build": "unbuild", - "stub": "unbuild --stub", + "build": "tsc", "typecheck": "tsc --noEmit" }, "devDependencies": { - "typescript": "^5.4.0", - "unbuild": "^3.6.1" + "typescript": "^5.4.0" } } diff --git a/tsconfig.json b/tsconfig.json index ab35605..ffaf407 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,12 @@ { "compilerOptions": { "target": "ESNext", - "module": "ESNext", - "moduleResolution": "Bundler", + "module": "NodeNext", + "moduleResolution": "NodeNext", "strict": true, "skipLibCheck": true, - "noEmit": true, - "isolatedModules": true + "isolatedModules": true, + "outDir": "dist" }, "include": ["src"] }