<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pankaj Singh</title>
    <description>The latest articles on DEV Community by Pankaj Singh (@pankaj_singh_3986f6a48897).</description>
    <link>https://dev.to/pankaj_singh_3986f6a48897</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2106201%2F3e3f0104-52a5-4b84-bd19-bf2c2630256f.png</url>
      <title>DEV Community: Pankaj Singh</title>
      <link>https://dev.to/pankaj_singh_3986f6a48897</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pankaj_singh_3986f6a48897"/>
    <language>en</language>
    <item>
      <title>Adding Edited Node Modules to the deployment.</title>
      <dc:creator>Pankaj Singh</dc:creator>
      <pubDate>Wed, 02 Oct 2024 10:12:03 +0000</pubDate>
      <link>https://dev.to/pankaj_singh_3986f6a48897/adding-edited-node-modules-to-the-deployment-60k</link>
      <guid>https://dev.to/pankaj_singh_3986f6a48897/adding-edited-node-modules-to-the-deployment-60k</guid>
      <description>&lt;p&gt;What is problem with editing the node modules?&lt;br&gt;
Let's say you want to make changes to a module and you got that file and make changes and everything seems to work fine in localhost. But when you push the website to github, the node modules do not do get uploaded. So when the website is deployed you might face errors.&lt;/p&gt;

&lt;p&gt;The way to tackle this issue one can something like a patch-package.&lt;br&gt;
&lt;code&gt;patch-package&lt;/code&gt; allows you to modify the code in the node_modules` directory, in the form of patches. The usage was quite simple too.&lt;/p&gt;

&lt;p&gt;Install the patch-package module.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm i patch-package&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Make changes to the node-module locally.&lt;/p&gt;

&lt;p&gt;Now to make a patch of any of the node module, run the following command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npx patch-package 'module-name'&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This will make a patches folder containing the patch of the specific module.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fha8m35hovwdzkd57z5kc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fha8m35hovwdzkd57z5kc.png" alt="Image description" width="194" height="48"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now if you push the repo to deployment, you will find everything working fine.&lt;/p&gt;

&lt;p&gt;Thanks for reading. Do like the post and do share your thoughts in the comment section.&lt;/p&gt;

&lt;p&gt;`&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>react</category>
      <category>nextjs</category>
    </item>
  </channel>
</rss>
