Skip to content

Use Yarn and add Telegram webhook setup - #9

Merged
NeverBehave merged 2 commits into
masterfrom
codex/fix-cloudflare-build
Sep 23, 2026
Merged

NeverBehave merged 2 commits into
masterfrom
codex/fix-cloudflare-build

Conversation

@NeverBehave

@NeverBehave NeverBehave commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • pin Yarn 4.5.0 through Corepack and use yarn.lock as the only lockfile
  • configure Yarn with the node-modules linker for Wrangler
  • add a build script so Cloudflare's existing yarn run build command succeeds
  • add tested commands to set, inspect, and delete the Telegram webhook
  • document Yarn build/deploy settings and webhook registration

Webhook commands

  • yarn webhook:set [worker-url]
  • yarn webhook:info
  • yarn webhook:delete

Verification

  • yarn install --immutable
  • yarn test (15 tests)
  • yarn run build
  • yarn deploy --dry-run

@NeverBehave NeverBehave changed the title Fix Cloudflare Workers build configuration Use Yarn for Cloudflare Workers builds Sep 22, 2026
@NeverBehave
NeverBehave marked this pull request as ready for review September 23, 2026 05:27
Copilot AI lite review requested due to automatic review settings September 23, 2026 05:27
@NeverBehave
NeverBehave merged commit 69738ac into master Sep 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Update the supported Node.js/Corepack guidance for Node.js 25.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Migrates Cloudflare Workers builds from npm to Yarn 4.5.0.

Changes:

  • Pins Yarn through Corepack and configures the node-modules linker.
  • Replaces package-lock.json with yarn.lock.
  • Adds build/deployment scripts and documents Yarn workflows.
File Summary
yarn.lock Adds the Yarn dependency lockfile.
README.md Documents Yarn and Workers workflows; Corepack guidance must address Node.js 25.
package.json Pins Yarn and adds build/deployment scripts.
package-lock.json Removes the npm lockfile.
.yarnrc.yml Configures the node-modules linker.
.gitignore Ignores Yarn-generated metadata.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md
```sh
npm install
npx wrangler login
corepack enable
@NeverBehave NeverBehave changed the title Use Yarn for Cloudflare Workers builds Use Yarn and add Telegram webhook setup Sep 23, 2026
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.

2 participants