chore: move entry files to src/ directory and update paths
This commit is contained in:
parent
f8e0f9a368
commit
3c3dab1525
3 changed files with 9 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "lmc",
|
"name": "lmc",
|
||||||
"module": "index.ts",
|
"module": "src/index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
@ -8,11 +8,11 @@
|
||||||
"ttsc": "dist/tts.js"
|
"ttsc": "dist/tts.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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",
|
"check": "biome check --write && pnpm run tc",
|
||||||
"clean": "rm -rf dist",
|
"clean": "rm -rf dist",
|
||||||
"build": "pnpm run check && pnpm run bundle --minify index.ts && pnpm run bundle --minify tts.ts",
|
"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 index.ts && pnpm run bundle:bin --minify tts.ts && pnpm run bin",
|
"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": "rolldown --dir=dist --platform=node --transform.target=node22 --format=esm",
|
||||||
"bundle:bin": "esbuild --bundle --outdir=dist --platform=node --target=node26 --format=cjs",
|
"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",
|
"bin": "node --build-sea sea-config.json && node --build-sea sea-config-tts.json",
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@ import util from "node:util";
|
||||||
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
|
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
|
||||||
import { streamText } from "ai";
|
import { streamText } from "ai";
|
||||||
|
|
||||||
import { initConfig, loadConfig } from "./src/config";
|
import { initConfig, loadConfig } from "./config";
|
||||||
import { Conversation } from "./src/conversation";
|
import { Conversation } from "./conversation";
|
||||||
import { handleTopLevel } from "./src/errors";
|
import { handleTopLevel } from "./errors";
|
||||||
import Renderer from "./src/render";
|
import Renderer from "./render";
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const { values: args, positionals } = util.parseArgs({
|
const { values: args, positionals } = util.parseArgs({
|
||||||
|
|
@ -11,7 +11,7 @@ import chalk from "chalk";
|
||||||
import { execa } from "execa";
|
import { execa } from "execa";
|
||||||
import { Window } from "happy-dom";
|
import { Window } from "happy-dom";
|
||||||
import wrapAnsi from "wrap-ansi";
|
import wrapAnsi from "wrap-ansi";
|
||||||
import { handleTopLevel } from "./src/errors";
|
import { handleTopLevel } from "./errors";
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
Loading…
Add table
Add a link
Reference in a new issue