<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Melissa Zhang on Medium]]></title>
        <description><![CDATA[Stories by Melissa Zhang on Medium]]></description>
        <link>https://medium.com/@melissazhang_32724?source=rss-17956150d635------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6rneq3RzpZXMfspw7kkwfA@2x.jpeg</url>
            <title>Stories by Melissa Zhang on Medium</title>
            <link>https://medium.com/@melissazhang_32724?source=rss-17956150d635------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 19:17:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@melissazhang_32724/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Use Github branch as dependency in package.json with private repos]]></title>
            <link>https://medium.com/@melissazhang_32724/use-github-branch-as-dependency-in-package-json-with-private-repos-a0c336e0ba74?source=rss-17956150d635------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0c336e0ba74</guid>
            <dc:creator><![CDATA[Melissa Zhang]]></dc:creator>
            <pubDate>Wed, 16 Mar 2022 19:42:41 GMT</pubDate>
            <atom:updated>2023-07-02T14:42:20.370Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*L8UNuOcuYocPonXKeU2RxQ.jpeg" /></figure><p>This is an elaboration on all the steps to achieve branch linking for testing purposes, and symlink for whatever reason doesn’t work. It’s not ideal as one shouldn’t check into Github build files but, I’ve landed here after a couple of larger bad design decisions and needed a quick workaround. If you’ve somehow landed on needing this too, then this should be of help.</p><p>First, you’ll want to update in the consuming apps’ package.json the link to clone the repo you are consuming. Since Github now takes personal access tokens instead of passwords, you’ll want to include that in the url itself such as —</p><p>{package-name: <a href="https://xxx_personal_access_token_here@github.com/namespace/repo.">https://xxx_personal_access_token_here@github.com/namespace/repo}.</a></p><p>WARNING: Do not check the above in as this is a major security violation.</p><p>Be sure to temporarily remove in .gitignore the /build or /dist folder. The index.js file in them is what we will need to reference in the consuming app.</p><p>Now, on the consuming side, you’ll need to import the index file that contains your modules relatively from the node_modules folder like this -</p><p>import {Button} from ‘../../../node_modules/@namespace/repo/dist/index.js’.</p><p>Make sure the relative imports are below all the absolute ones if your lint helper has not complained yet.</p><p>And then that should be it!</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0c336e0ba74" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>