chore: move entry files to src/ directory and update paths

This commit is contained in:
mitchell 2026-06-17 01:12:38 -04:00
parent f8e0f9a368
commit 3c3dab1525
3 changed files with 9 additions and 9 deletions

View file

@ -1,6 +1,6 @@
{
"name": "lmc",
"module": "index.ts",
"module": "src/index.ts",
"type": "module",
"private": true,
"bin": {
@ -8,11 +8,11 @@
"ttsc": "dist/tts.js"
},
"scripts": {
"dev": "pnpm run bundle index.ts &>/dev/null && node dist/index.js",
"dev": "pnpm run bundle src/index.ts &>/dev/null && node dist/index.js",
"check": "biome check --write && pnpm run tc",
"clean": "rm -rf dist",
"build": "pnpm run check && pnpm run bundle --minify index.ts && pnpm run bundle --minify tts.ts",
"build:bin": "pnpm run check && pnpm run bundle:bin --minify index.ts && pnpm run bundle:bin --minify tts.ts && pnpm run bin",
"build": "pnpm run check && pnpm run bundle --minify src/index.ts && pnpm run bundle --minify src/tts.ts",
"build:bin": "pnpm run check && pnpm run bundle:bin --minify src/index.ts && pnpm run bundle:bin --minify src/tts.ts && pnpm run bin",
"bundle": "rolldown --dir=dist --platform=node --transform.target=node22 --format=esm",
"bundle:bin": "esbuild --bundle --outdir=dist --platform=node --target=node26 --format=cjs",
"bin": "node --build-sea sea-config.json && node --build-sea sea-config-tts.json",

View file

@ -3,10 +3,10 @@ import util from "node:util";
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
import { streamText } from "ai";
import { initConfig, loadConfig } from "./src/config";
import { Conversation } from "./src/conversation";
import { handleTopLevel } from "./src/errors";
import Renderer from "./src/render";
import { initConfig, loadConfig } from "./config";
import { Conversation } from "./conversation";
import { handleTopLevel } from "./errors";
import Renderer from "./render";
async function main() {
const { values: args, positionals } = util.parseArgs({

View file

@ -11,7 +11,7 @@ import chalk from "chalk";
import { execa } from "execa";
import { Window } from "happy-dom";
import wrapAnsi from "wrap-ansi";
import { handleTopLevel } from "./src/errors";
import { handleTopLevel } from "./errors";
async function main() {
const start = Date.now();