René's URL Explorer Experiment


Title: build(cli): 重构构建流程并内联核心及依赖 by hqwlkj · Pull Request #192 · lessweb/deepcode-cli · GitHub

Open Graph Title: build(cli): 重构构建流程并内联核心及依赖 by hqwlkj · Pull Request #192 · lessweb/deepcode-cli

X Title: build(cli): 重构构建流程并内联核心及依赖 by hqwlkj · Pull Request #192 · lessweb/deepcode-cli

Description: Summary 将 CLI 构建改为使用 esbuild 的拆分和代码分块,适配 Node 22 环境 esbuild 配置中内联 core 包及所有依赖,实现零运行时依赖 引入自定义 shims 支持 Node 内置模块和空 shim 替代浏览器专用包 修改 copy 脚本,复制 core/templates 至 dist/templates 及 legacy bundled 目录 发布脚本重构:只发布单个打包的 CLI 包,不再单独发布 core 包 发布时在 dist 写入无依赖的 package.json 并从 dist 目录发布 简化发布流程,减少步骤数并更新发布文档说明 package.json 添加对 react-devtools-core 的开发依赖用于本地开发支持 发版流程(现在不需要单独发布 core 包了, core的代码会被打包到 cli 中) 前置准备(首次) 创建 .env 文件,填入 VSCode 市场发布 token cp .env.example .env 编辑 .env,填入 VSCE_PAT=你的token 正式发布 1. 统一升级版本号(core + cli + vscode 三个包同步) npm run release:version -- patch 2. 发布 CLI 到 npm(自动 build + 质量检查 + 测试 + commit + tag) npm run prepare:package -- 0.1.32 3. 发布 VSCode 扩展到市场(自动 build + 质量检查 + 测试 + commit + tag) npm run prepare:vscode -- 0.1.32 4. 推送到远程 git push && git push --tags 预发布(beta) npm run release:version -- prerelease --preid beta npm run prepare:package -- 0.1.32-beta.0 npm run prepare:vscode -- 0.1.32-beta.0 git push && git push --tags 预演(不实际发布) npm run prepare:package -- 0.1.32 --dry-run npm run prepare:vscode -- 0.1.32 --dry-run 三个脚本的职责 脚本 命令 发布目标 更新版本 version.js npm run release:version 无(只改版本号) core + cli + vscode prepare-package.js npm run prepare:package npm (@vegamo/deepcode-cli) core + cli prepare-vscode.js npm run prepare:vscode VS Code Marketplace (deepcode-vscode) 仅 vscode

Open Graph Description: Summary 将 CLI 构建改为使用 esbuild 的拆分和代码分块,适配 Node 22 环境 esbuild 配置中内联 core 包及所有依赖,实现零运行时依赖 引入自定义 shims 支持 Node 内置模块和空 shim 替代浏览器专用包 修改 copy 脚本,复制 core/templates 至 dist/templates 及 legacy bundled 目录 发布...

X Description: Summary 将 CLI 构建改为使用 esbuild 的拆分和代码分块,适配 Node 22 环境 esbuild 配置中内联 core 包及所有依赖,实现零运行时依赖 引入自定义 shims 支持 Node 内置模块和空 shim 替代浏览器专用包 修改 copy 脚本,复制 core/templates 至 dist/templates 及 legacy bundled 目录 发布...

Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/192

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8b18f7de-f35b-2dcc-1f1b-59c941ce0b91
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCAD8:10A1AD:49E502:69928F:6A4E6FB7
html-safe-nonce5e51e828cbb5e79c75b8f1fa18e4fa68bd72e3a6c84c2568f468858ba3cdd1b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUQ4OjEwQTFBRDo0OUU1MDI6Njk5MjhGOjZBNEU2RkI3IiwidmlzaXRvcl9pZCI6IjE3ODU3OTAzNjE5OTk2NjcxMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac32893e4434f98e4d41b1d35d3a0054712fa75f6531a6803581ab886c61a7b850
hovercard-subject-tagpull_request:3912082086
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/192/files
twitter:imagehttps://avatars.githubusercontent.com/u/12181423?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/12181423?s=400&v=4
og:image:altSummary 将 CLI 构建改为使用 esbuild 的拆分和代码分块,适配 Node 22 环境 esbuild 配置中内联 core 包及所有依赖,实现零运行时依赖 引入自定义 shims 支持 Node 内置模块和空 shim 替代浏览器专用包 修改 copy 脚本,复制 core/templates 至 dist/templates 及 legacy bundled 目录 发布...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git
octolytics-dimension-user_id118287711
octolytics-dimension-user_loginlessweb
octolytics-dimension-repository_id1223512305
octolytics-dimension-repository_nwolessweb/deepcode-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1223512305
octolytics-dimension-repository_network_root_nwolessweb/deepcode-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/192/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F192%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F192%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/192/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/192/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/192/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/192/files
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 152 https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Star 1.7k https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Code https://github.com/lessweb/deepcode-cli
Issues 44 https://github.com/lessweb/deepcode-cli/issues
Pull requests 22 https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality 0 https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Code https://github.com/lessweb/deepcode-cli
Issues https://github.com/lessweb/deepcode-cli/issues
Pull requests https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
qorzjhttps://github.com/qorzj
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
hqwlkj:mainhttps://github.com/hqwlkj/deepcode-cli/tree/main
Conversation 0 https://github.com/lessweb/deepcode-cli/pull/192
Commits 3 https://github.com/lessweb/deepcode-cli/pull/192/commits
Checks 6 https://github.com/lessweb/deepcode-cli/pull/192/checks
Files changed https://github.com/lessweb/deepcode-cli/pull/192/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/192/files
build(cli): 重构构建流程并内联核心及依赖 https://github.com/lessweb/deepcode-cli/pull/192/files#top
Show all changes 3 commits https://github.com/lessweb/deepcode-cli/pull/192/files
93ebf7c build(cli): 重构构建流程并内联核心及依赖 hqwlkj Jun 22, 2026 https://github.com/lessweb/deepcode-cli/pull/192/commits/93ebf7cc241ffd21d01bafd2f9d4d267f9bf3ba2
78d9ec6 fix(cli): 调整模板复制逻辑以排除并单独处理 skills/bundled hqwlkj Jun 22, 2026 https://github.com/lessweb/deepcode-cli/pull/192/commits/78d9ec6cc5e9be2139b43a550434d7162694d33f
f291919 chore(release): 新增 VSCode 扩展发布脚本及流程文档 hqwlkj Jun 23, 2026 https://github.com/lessweb/deepcode-cli/pull/192/commits/f291919df6a2a07b464c7e7b0d602706bf233ada
Clear filters https://github.com/lessweb/deepcode-cli/pull/192/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/192/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/192/files
AGENTS.md https://github.com/lessweb/deepcode-cli/pull/192/files#diff-3158d163e97f165bd33dc2877fc8ef2676f11f3f6ec41e8265a61640aec0c765
.env.example https://github.com/lessweb/deepcode-cli/pull/192/files#diff-a3046da0d15a27e89f2afe639b25748a7ad4d9290af3e7b1b6c1a5533c8f0a8c
.gitignore https://github.com/lessweb/deepcode-cli/pull/192/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
RELEASE.md https://github.com/lessweb/deepcode-cli/pull/192/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
RELEASE_en.md https://github.com/lessweb/deepcode-cli/pull/192/files#diff-f0e44a47958404962ca65659161c091891199ed61bd3e0cf6d11031365ca6db8
package-lock.json https://github.com/lessweb/deepcode-cli/pull/192/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
package.json https://github.com/lessweb/deepcode-cli/pull/192/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
session.ts https://github.com/lessweb/deepcode-cli/pull/192/files#diff-f8c1eb5dd694398572491c32e62abdec888934d60158fd92a1cf7fed02e30f1b
copy-bundle-assets.js https://github.com/lessweb/deepcode-cli/pull/192/files#diff-7ab17decbf6811d45106001ea470eb83c899a407b44087f843e363ea528ad453
empty-shim.js https://github.com/lessweb/deepcode-cli/pull/192/files#diff-39ecd94c5eb92f01c2dc0b98ff78d10113c57b8c5dad49bc28df3c563f8879a4
esbuild-shims.js https://github.com/lessweb/deepcode-cli/pull/192/files#diff-8b68ad92dd676eba92b016659786276a235598dd88f86ae867018678cf4257f9
esbuild.config.js https://github.com/lessweb/deepcode-cli/pull/192/files#diff-e962d6956f40038db7ddcfeac2702f5137658333f6817cbff14fb3c8b23fb286
prepare-package.js https://github.com/lessweb/deepcode-cli/pull/192/files#diff-152a9bb8d970664358c309233537698a5d25259149159d0711e5137a0bf11abb
prepare-vscode.js https://github.com/lessweb/deepcode-cli/pull/192/files#diff-1f37e9dba5f11f25d2d47ea8bf0a46f67dd7e22000657f817a4a9b2839214d09
.deepcode/AGENTS.mdhttps://github.com/lessweb/deepcode-cli/pull/192/files#diff-3158d163e97f165bd33dc2877fc8ef2676f11f3f6ec41e8265a61640aec0c765
View file https://github.com/hqwlkj/deepcode-cli/blob/f291919df6a2a07b464c7e7b0d602706bf233ada/.deepcode/AGENTS.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/192/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-3158d163e97f165bd33dc2877fc8ef2676f11f3f6ec41e8265a61640aec0c765
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-3158d163e97f165bd33dc2877fc8ef2676f11f3f6ec41e8265a61640aec0c765
.env.examplehttps://github.com/lessweb/deepcode-cli/pull/192/files#diff-a3046da0d15a27e89f2afe639b25748a7ad4d9290af3e7b1b6c1a5533c8f0a8c
View file https://github.com/hqwlkj/deepcode-cli/blob/f291919df6a2a07b464c7e7b0d602706bf233ada/.env.example
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/192/{{ revealButtonHref }}
.gitignorehttps://github.com/lessweb/deepcode-cli/pull/192/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/hqwlkj/deepcode-cli/blob/f291919df6a2a07b464c7e7b0d602706bf233ada/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/192/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
RELEASE.mdhttps://github.com/lessweb/deepcode-cli/pull/192/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
View file https://github.com/hqwlkj/deepcode-cli/blob/f291919df6a2a07b464c7e7b0d602706bf233ada/RELEASE.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/192/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23c
RELEASE_en.mdhttps://github.com/lessweb/deepcode-cli/pull/192/files#diff-f0e44a47958404962ca65659161c091891199ed61bd3e0cf6d11031365ca6db8
View file https://github.com/hqwlkj/deepcode-cli/blob/f291919df6a2a07b464c7e7b0d602706bf233ada/RELEASE_en.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/192/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-f0e44a47958404962ca65659161c091891199ed61bd3e0cf6d11031365ca6db8
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-f0e44a47958404962ca65659161c091891199ed61bd3e0cf6d11031365ca6db8
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-f0e44a47958404962ca65659161c091891199ed61bd3e0cf6d11031365ca6db8
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-f0e44a47958404962ca65659161c091891199ed61bd3e0cf6d11031365ca6db8
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-f0e44a47958404962ca65659161c091891199ed61bd3e0cf6d11031365ca6db8
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-f0e44a47958404962ca65659161c091891199ed61bd3e0cf6d11031365ca6db8
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-f0e44a47958404962ca65659161c091891199ed61bd3e0cf6d11031365ca6db8
https://github.com/lessweb/deepcode-cli/pull/192/files#diff-f0e44a47958404962ca65659161c091891199ed61bd3e0cf6d11031365ca6db8
package-lock.jsonhttps://github.com/lessweb/deepcode-cli/pull/192/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
View file https://github.com/hqwlkj/deepcode-cli/blob/f291919df6a2a07b464c7e7b0d602706bf233ada/package-lock.json
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/192/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/192/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/192/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.