Skip to content

[docs] Document TypeScript brownfield workspace subdirectory init and script preservation#1080

Open
aspire-repo-bot[bot] wants to merge 2 commits into
release/13.4from
copilot/docs-aspire-17510-typescript-brownfield-workspace-4eeafdc2450198cc
Open

[docs] Document TypeScript brownfield workspace subdirectory init and script preservation#1080
aspire-repo-bot[bot] wants to merge 2 commits into
release/13.4from
copilot/docs-aspire-17510-typescript-brownfield-workspace-4eeafdc2450198cc

Conversation

@aspire-repo-bot
Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#17510

Authored by @sebastienros.

Targeting release/13.4 based on the source PR milestone 13.4.

Why this PR is needed

PR microsoft/aspire#17510 expanded TypeScript brownfield workspace validation in the Aspire CLI. Users running aspire init --language typescript from a workspace subdirectory now get a predictable aspire-apphost/ layout, root delegate scripts (aspire:start, aspire:build, aspire:dev) that point into the AppHost subdirectory, preservation of any existing aspire:-prefixed scripts (with a warning), and correct package-manager isolation between the AppHost and guest packages.

None of this behavior was previously described in the docs.

What was changed

Updated src/frontend/src/content/docs/get-started/add-aspire-existing-app.mdx to add, under the TypeScript brownfield init section:

  • Workspace subdirectory layout — shows the aspire-apphost/ directory structure when aspire init is run from inside a workspace subdirectory, with an example using --non-interactive.
  • Root package.json delegate scripts table — documents aspire:start, aspire:build, and aspire:dev, what each does, and a concrete package.json snippet showing the generated delegate commands.
  • Script preservation note — explains that existing aspire:-prefixed scripts are left unchanged and a warning is printed, with guidance on how to regenerate them.
  • Package-manager isolation — explains that the AppHost's own packageManager field or lockfile takes precedence over the parent workspace's package manager for AppHost operations.

Files modified

  • src/frontend/src/content/docs/get-started/add-aspire-existing-app.mdx (updated)

Generated by PR Documentation Check for issue #17510 · ● 19.6M ·

…script preservation

Documents the behavior introduced in microsoft/aspire#17510:
- Workspace subdirectory layout when running aspire init from a subdirectory
- Root package.json delegate scripts (aspire:start, aspire:build, aspire:dev)
- Script preservation: existing aspire:-prefixed scripts are not overwritten
- Package-manager isolation between the AppHost and guest packages

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label May 26, 2026
@aspire-repo-bot aspire-repo-bot Bot requested a review from danegsta May 26, 2026 23:17
@IEvangelist IEvangelist marked this pull request as ready for review May 26, 2026 23:37
@IEvangelist IEvangelist self-requested a review as a code owner May 26, 2026 23:37
Copilot AI review requested due to automatic review settings May 26, 2026 23:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents TypeScript brownfield init behavior added in microsoft/aspire#17510: workspace subdirectory layout, root delegate scripts, preservation of existing aspire:-prefixed scripts, and package-manager isolation between the AppHost and the parent workspace.

Changes:

  • Adds a "Workspace subdirectory layout" section with a cd apps/my-app && aspire init --language typescript --non-interactive example and FileTree.
  • Documents aspire:start/aspire:build/aspire:dev root delegate scripts and shows a pnpm --dir aspire-apphost example.
  • Adds notes about preserving existing aspire:-prefixed scripts and package-manager precedence at the AppHost directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/frontend/src/content/docs/get-started/add-aspire-existing-app.mdx Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants