Skip to content

Remove langchain-starter template cruft; fix broken dev/build#23

Merged
jhamon merged 1 commit into
mainfrom
chore/remove-template-cruft
Jul 8, 2026
Merged

Remove langchain-starter template cruft; fix broken dev/build#23
jhamon merged 1 commit into
mainfrom
chore/remove-template-cruft

Conversation

@jhamon

@jhamon jhamon commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

This repo was scaffolded from langchain-ts-starter and carried over config that never applied to the React + Express app it became. Those leftovers are what made the build fail in #1, and the recent tsx migration left npm run dev broken. This PR removes the dead config and fixes both broken commands.

Changes

  • Fix npm run dev regressiondev:server used node --loader ts-node/esm, but ts-node isn't installed (tsx is). Switched to tsx, so the server starts again.
  • Delete dead template files:
    • turbo.json — Turborepo config targeting Next.js .next/** outputs; turbo was never installed or referenced.
    • tsup.config.js — library bundler pointed at a nonexistent src/index.ts. This is the npm run buildCannot find src/index.ts failure reported in Project does not build. Also, build steps are not documented. #1.
    • nodemon.json — stale (watch: src, exec: ts-node ./src/index.ts), fully overridden by dev:server's own flags.
  • Trim package.json — removed the broken build/tsup scripts, the library-publishing main/files fields, and the now-unused tsup + tsconfig-paths devDependencies.
  • Fix tsconfig.json — dropped baseUrl: "./src" (nonexistent dir) and the contradictory app / stale root postcss/tailwind includes; scoped to ./server (the app/ has its own tsconfig).
  • Docs — added README sections documenting npm run dev, npm run build:app (the real frontend build), that the server runs directly via tsx, and what flatten.sh is for.

Verification

Check Result
npm run typecheck ✅ passes
npm run build:app ✅ builds app/dist
dev:server via tsx Server started at http://localhost:…
npm install ✅ lockfile synced (pruned unused deps)

Closes #1

🤖 Generated with Claude Code

This repo was scaffolded from `langchain-ts-starter` and carried over
config that never applied to the React + Express app it became. Several
of those leftovers are exactly what made the build fail in #1, and the
recent tsx migration left `npm run dev` broken.

- Fix `dev:server` regression: use `tsx` instead of the uninstalled
  `ts-node` loader, so `npm run dev` starts the server again.
- Delete dead template files: `turbo.json` (Turborepo/Next.js config,
  turbo never installed), `tsup.config.js` (bundler pointed at a
  nonexistent `src/index.ts` — the `npm run build` failure in #1), and
  `nodemon.json` (stale, overridden by `dev:server`'s own flags).
- Trim `package.json`: drop the broken `build`/`tsup` scripts, the
  library-publishing `main`/`files` fields, and the now-unused `tsup`
  and `tsconfig-paths` devDependencies.
- Fix `tsconfig.json`: remove `baseUrl: "./src"` (nonexistent) and the
  contradictory `app` / stale root config includes; scope to `./server`.
- Document builds in the README (`npm run dev`, `npm run build:app`,
  server-runs-via-tsx) and explain `flatten.sh`.

Verified: `npm run typecheck`, `npm run build:app`, and the server boot
(`tsx server/index.ts`) all pass.

Closes #1

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jhamon jhamon merged commit a9e147f into main Jul 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project does not build. Also, build steps are not documented.

1 participant