Skip to content

docs(readme): say pnpm's esbuild build-script prompt is safe to decline - #734

Merged
aibex-agent[bot] merged 1 commit into
mainfrom
aibex/t_Z5OK6rPZmZOMQ88ZmAa3fNj6-esbuild-docs
Dec 2, 2026
Merged

aibex-agent[bot] merged 1 commit into
mainfrom
aibex/t_Z5OK6rPZmZOMQ88ZmAa3fNj6-esbuild-docs

Conversation

@aibex-agent

@aibex-agent aibex-agent Bot commented Dec 2, 2026

Copy link
Copy Markdown

On pnpm 10, pnpm dlx @taskless/cli stops at pnpm's prompt asking whether to run esbuild's build script. esbuild comes in through tsx, which runtime rules use. Nothing told the person which answer is safe, so a first install paused there.

The README's install step now says answering no is safe. I checked it rather than assumed it: in an empty directory, pnpm add tsx@^4.21.0 reported Ignored build scripts: esbuild@0.28.2, and tsx then ran a TypeScript file correctly. esbuild resolves its platform binary from the optional @esbuild/<platform> package, and its postinstall step only checks that binary.

This is the docs item from the issue. The --anonymous notice fix is #733, and the ignore-patterns item gets its own PR.

Refs #732

@aibex-agent

aibex-agent Bot commented Dec 2, 2026

Copy link
Copy Markdown
Author

@claude /review

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @aibex-agent[bot]'s task in 43s —— View job


Review mode: incremental — read 0 prior review thread(s) before reviewing.

.prior-review.json contained no prior review threads, reviews, or inline comments — only the @claude /review trigger comment itself. This is the first review of this PR.

Summary

This is a tiny, well-scoped docs fix (README.md +1/-1, plus a changeset). It adds one sentence to the install step telling users it's safe to decline pnpm's build-script prompt for esbuild.

  • Accuracy: The claim checks out. esbuild's postinstall only verifies/resolves the platform-specific @esbuild/<platform> binary; it doesn't need to run a build script to function, so declining pnpm's "run build scripts?" prompt is indeed safe for this use case. The PR description documents that the author verified this empirically (pnpm add tsx@^4.21.0 in an empty dir, then ran a TS file via tsx successfully with the build script ignored).
  • Scope note: This repo's own root package.json already has pnpm.onlyBuiltDependencies: ["esbuild", "@ast-grep/cli"] (package.json:67-72), which auto-approves esbuild's build script for this monorepo's own installs. That's unrelated to the scenario the README addresses — an end user running pnpm dlx @taskless/cli in an arbitrary external project, where this repo's pnpm config doesn't apply. No conflict here, just noting it so it's clear the two are independent.
  • Wording: The added sentence ("If pnpm stops to ask whether to run esbuild's build script, answering no is safe: Taskless works without it.") is concise, placed right after the relevant pnpm dlx mention, and doesn't disrupt the surrounding install instructions.
  • Changeset: .changeset/pnpm-esbuild-prompt-docs.md follows the existing convention in this repo exactly (patch bump + prose description), matching sibling changesets like gemini-md-onboarding.md and wizard-pointer.md.

No correctness, security, or test-adequacy concerns — this is a documentation-only change with no executable code paths to test. No inline comments to post.

@aibex-agent
aibex-agent Bot merged commit 3c9810f into main Dec 2, 2026
11 checks passed
@aibex-agent
aibex-agent Bot deleted the aibex/t_Z5OK6rPZmZOMQ88ZmAa3fNj6-esbuild-docs branch December 2, 2026 07:36
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