Skip to content

fix(web-basic): make documented dev command work from clean install - #39

Merged
mahyarmlk merged 1 commit into
mainfrom
fix/web-basic-dev-command
Jun 25, 2026
Merged

fix(web-basic): make documented dev command work from clean install#39
mahyarmlk merged 1 commit into
mainfrom
fix/web-basic-dev-command

Conversation

@mahyarmlk

Copy link
Copy Markdown
Collaborator

Summary

Fix two bugs that prevented pnpm dev:web-basic from working after a clean pnpm install:

  1. Root script used wrong package filter (@intent/web-basic does not exist)
  2. Vite could not resolve @intent/* workspace packages without a prior pnpm build

Changes

  • Root dev:web-basic script: --filter @intent/web-basic--dir examples/web-basic
  • examples/web-basic/vite.config.ts: added resolve aliases for @intent/core, @intent/dom, @intent/router pointing to source files
  • docs/Demo.md: mention root pnpm dev:web-basic command as primary path

Validation (from clean dist)

pnpm test:     310 tests passed (127+72+21+4+86)
pnpm typecheck: passes
pnpm build:    passes
pnpm dev:web-basic: Vite starts cleanly in ~120ms with no resolution errors

Fixes #38 reported behavior. The demo can now be run with just pnpm install && pnpm dev:web-basic as documented in README.

- Fix root dev:web-basic script to use pnpm --dir instead of
  wrong package filter (@intent/web-basic does not exist;
  the actual package name is web-basic)
- Add Vite resolve aliases for @intent/core, @intent/dom,
  @intent/router so Vite resolves workspace packages from
  source during development, eliminating the need for
  pnpm build before pnpm dev:web-basic
- Update docs/Demo.md to mention the root command as an
  alternative to the cd-based path

Validation (from clean dist):
  pnpm test:   310 tests passed (127 core + 72 router + 21 testing + 4 server + 86 dom)
  pnpm typecheck: passes
  pnpm build:  passes (all packages + vite build)
  pnpm dev:web-basic: Vite starts cleanly in <150ms with no resolution errors
@mahyarmlk
mahyarmlk merged commit 0c46eda into main Jun 25, 2026
1 check 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.

1 participant