From 6392cf3b76d958cd00934ce76cba918225272627 Mon Sep 17 00:00:00 2001 From: mitchell Date: Mon, 1 Jun 2026 00:44:10 -0400 Subject: [PATCH] chore: update package.json to reflect reality --- package.json | 12 +++++------- sea-config.json | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index b31b6c7..66c76b6 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,16 @@ { "name": "lmc", "module": "index.ts", - "main": "dist/index.js", - "type": "commonjs", + "type": "module", "private": true, "bin": { - "lmc": "dist/index.js" + "lmc": "dist/lmc" }, "scripts": { - "dev": "tsx index.ts", - "prod": "node dist/index.js", + "dev": "pnpm run bundle &>/dev/null && node dist/index.cjs", "check": "biome check --write && pnpm run tc", - "build": "pnpm run check && pnpm run bundle && pnpm run bin", - "bundle": "esbuild index.ts --bundle --outdir=dist --platform=node --target=node22", + "build": "pnpm run check && pnpm run bundle --minify && pnpm run bin", + "bundle": "esbuild index.ts --bundle --outfile=dist/index.cjs --platform=node", "bin": "node --build-sea sea-config.json", "tc": "tsc --noEmit --incremental" }, diff --git a/sea-config.json b/sea-config.json index 4beec69..83b28b4 100644 --- a/sea-config.json +++ b/sea-config.json @@ -1,5 +1,5 @@ { - "main": "dist/index.js", + "main": "dist/index.cjs", "output": "dist/lmc", "useCodeCache": true, "disableExperimentalSEAWarning": true