mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-25 22:05:51 +03:00
[GH-ISSUE #648] 请问该如何编译出 worker.js 文件 #246
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#246
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Zyx-A on GitHub (Apr 30, 2025).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/648
请问该如何重新编译出 worker.js 文件,我才接触 TS、nodejs 项目,不是特别清楚如何从 ts 文件编译成 js 文件。
我按网上的教程,尝试了多种方法,都编译不出来,使用如下方法编译出 worker.js 文件,并上传到 cloudflare 平台,则发现运行不起来。
@dreamhunter2333 commented on GitHub (Apr 30, 2025):
运行 pnpm build 即可
@Zyx-A commented on GitHub (May 6, 2025):
编译步骤:
pnpm install -r安装所有的依赖pnpm wrangler deploy src/worker.ts执行后,登录到cf平台,方便后续调用cf接口pnpm build此时编译才不会报错