Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Move build deps out of user deno.json, add aai upgrade#133

Merged
alexkroman merged 1 commit into
mainfrom
cli/slim-user-deps
Mar 16, 2026
Merged

Move build deps out of user deno.json, add aai upgrade#133
alexkroman merged 1 commit into
mainfrom
cli/slim-user-deps

Conversation

@alexkroman
Copy link
Copy Markdown
Owner

Summary

  • Build tools (vite, esbuild, @preact/preset-vite, @tailwindcss/vite, etc.) now use fully-qualified npm:/jsr: specifiers in the generated build script instead of bare imports from the user's deno.json. deno install in a scaffolded project drops from 107 packages to 6.
  • Adds aai upgrade command that runs deno outdated --update @aai/* + deno install
  • Bundler generates default styles.css if project doesn't have one (single source of truth, removed from _shared/)
  • Removed json-schema from user template (type-only dep, erased at build time)

Test plan

  • deno task check passes (206 tests)
  • deno task test:templates passes (15/15)
  • aai-dev deploy --dry-run works from monorepo templates
  • Scaffold + deploy works in fresh temp directory
  • aai upgrade runs successfully
  • deno install in scaffolded project installs 6 packages (not 107)

🤖 Generated with Claude Code

…fault styles.css

Build tools (vite, esbuild, @preact/preset-vite, @tailwindcss/vite, etc.) now
use fully-qualified npm:/jsr: specifiers in the generated build script instead
of bare imports from the user's deno.json. This reduces `deno install` in a
scaffolded project from 107 packages to 6.

- Use npm:/jsr: specifiers in BUILD_SCRIPT so build deps resolve directly
- Remove build-only deps from templates/_shared/deno.json and templates/deno.json
- Remove json-schema (type-only, erased at build time)
- Generate default styles.css from bundler if project doesn't have one
- Delete templates/_shared/styles.css (single source of truth in bundler)
- Add `aai upgrade` command that runs `deno outdated --update @aai/*`

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexkroman alexkroman merged commit 2db89ac into main Mar 16, 2026
1 check passed
@alexkroman alexkroman deleted the cli/slim-user-deps branch March 16, 2026 23:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants