<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>版本控制 on DeleyNomore</title>
    <link>https://deleynomore.github.io/Blog/tags/%E7%89%88%E6%9C%AC%E6%8E%A7%E5%88%B6/</link>
    <description>Recent content in 版本控制 on DeleyNomore</description>
    <image>
      <title>DeleyNomore</title>
      <url>https://deleynomore.github.io/Blog/images/papermod-cover.png</url>
      <link>https://deleynomore.github.io/Blog/images/papermod-cover.png</link>
    </image>
    <generator>Hugo -- 0.152.2</generator>
    <language>zh</language>
    <lastBuildDate>Fri, 14 Nov 2025 08:22:46 +0800</lastBuildDate>
    <atom:link href="https://deleynomore.github.io/Blog/tags/%E7%89%88%E6%9C%AC%E6%8E%A7%E5%88%B6/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>关于 package lock json 是否应该提交到 Git 仓库</title>
      <link>https://deleynomore.github.io/Blog/posts/DevOps/about-package-lock-json-should-it-be-committed-to-git-repository/</link>
      <pubDate>Fri, 14 Nov 2025 08:22:46 +0800</pubDate>
      <guid>https://deleynomore.github.io/Blog/posts/DevOps/about-package-lock-json-should-it-be-committed-to-git-repository/</guid>
      <description>&lt;p&gt;关于 &lt;code&gt;package-lock.json&lt;/code&gt; 是否应该提交到 Git 仓库，以下是经过验证的行业实践和技术分析：&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&#34;主流技术社区的共识&#34;&gt;&lt;strong&gt;主流技术社区的共识&lt;/strong&gt;&lt;/h3&gt;
&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;项目类型&lt;/th&gt;
          &lt;th&gt;推荐做法&lt;/th&gt;
          &lt;th&gt;代表案例&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;strong&gt;前端应用&lt;/strong&gt;&lt;/td&gt;
          &lt;td&gt;✅ 必须提交&lt;/td&gt;
          &lt;td&gt;Next.js、Create-React-App&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;strong&gt;Node 服务&lt;/strong&gt;&lt;/td&gt;
          &lt;td&gt;✅ 必须提交&lt;/td&gt;
          &lt;td&gt;Express、NestJS&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;strong&gt;开源库&lt;/strong&gt;&lt;/td&gt;
          &lt;td&gt;⚠️ 不提交（特殊情况除外）&lt;/td&gt;
          &lt;td&gt;React、Vue、Lodash&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;strong&gt;Monorepo&lt;/strong&gt;&lt;/td&gt;
          &lt;td&gt;✅ 必须提交&lt;/td&gt;
          &lt;td&gt;Nx、Turborepo&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;hr&gt;
&lt;h3 id=&#34;技术原理深度解析&#34;&gt;&lt;strong&gt;技术原理深度解析&lt;/strong&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;锁文件的作用&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;package-lock.json&lt;/code&gt; 记录&lt;strong&gt;精确的依赖树结构&lt;/strong&gt;，包括：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>