Skip to content

chore(pgpm): remove unused init/workspace.ts - #1485

Merged
pyramation merged 1 commit into
mainfrom
chore/remove-dead-init-workspace
Jul 28, 2026
Merged

pyramation merged 1 commit into
mainfrom
chore/remove-dead-init-workspace

Conversation

@pyramation

Copy link
Copy Markdown
Contributor

Summary

Deletes pgpm/cli/src/commands/init/workspace.ts (runWorkspaceSetup) — a dead, older duplicate of handleWorkspaceInit in commands/init/index.ts (the live path used by pgpm init workspace). Nothing imports it: repo-wide grep and a GitHub code search across constructive-io find only the definition itself, and it isn't exported from pgpm/cli/src/index.ts (it only shipped in dist as an unreferenced compiled file).

Besides being unused, it retained the closed-prompter-reuse pattern (prompter.close() before scaffoldTemplate({ ..., prompter })) that caused the ERR_USE_AFTER_CLOSE crash class fixed in #1477 — removing it prevents accidental future reuse.

Verified: full pnpm build green, pgpm/cli init test suites pass (17 tests).

Link to Devin session: https://app.devin.ai/sessions/d0cd8a9a2bed466d9e89f582346cb826
Requested by: @pyramation

@pyramation pyramation self-assigned this Jul 28, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation
pyramation merged commit a4dd272 into main Jul 28, 2026
15 checks passed
@pyramation
pyramation deleted the chore/remove-dead-init-workspace branch July 28, 2026 06:45
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