Комментарии:
I followed your video till the end. Definitely gained confidence on few things. This video does not publish the packages though. Just creates a PR. I would definitely love to see the complete picture. If you have a course to setup pnpm, turborepo, tsup and related course, please share the link
ОтветитьThat's just way too much information in 4 minutes to grasp, create a 30 minutes+ video on this
ОтветитьI would love to see an updated video for releasing a npm package. Specificaly, where you also walkthrough how to configure the github actions and getting it completely released. You said nothing about it in this video. There are also a few mistakes in this video, e.g. you never added the release script. Love your videos in general, but would love a better video about this topic
ОтветитьWhen Matt uploads a new video, we know it’s going to be a new useful knowledge. You’re awesome..❤
ОтветитьThank you so much Matt Pocock
ОтветитьThis was great! Fast is good, people
Ответитьit was way too fast for me
Ответитьthe amount of info you can pack in one video plus the clarity of the sentences is remarkable
Ответитьhow to publish components of(Vite React + typescript) to npm . i did it but when i use it by installing that libaray it arise with some issue🥲
ОтветитьToo much info. I'll come back later. But I'll return.
ОтветитьNice video, how you can group files index.js and index.d.ts in file explorer?
ОтветитьProbably one of the best informative videos I’ve seen in a long time
ОтветитьAwesome! Could you make a tutorial of you how to this while using bun?
ОтветитьOn using "type": "module", config change to "main": "dist/index.cjs", "module": "dist/index.js". Right ?
ОтветитьI've been running around in circles all day trying to figure out how to bundle my TS package properly in a way that let's it work properly with 'npm link'. Finally, finally, I've found a video that gives a working process (and in a very concise, easily digestible manner at that)—thank you.
ОтветитьThat is great but if you want to deploy a package that has multiple files and you want it to export files individually (like date-fns or lodash to name a few) then you will find zero docs/common best practices to do it online
ОтветитьIt when from 0-100 so fast! 😂
ОтветитьLove this... Would this work with a mono-repo style where you have several packages all with differing versions?
ОтветитьAwesome video/videos, thanks! Heads up for a newbie question.. When you publish the package to NPM would you publish it with the same package.json as you have when coding the package? I guess that the final package sent to NPM does not need/need to know the dependency to tsup now when the source code is bundled? Even if they are set as 'devDependencies' do we really need to include them in the final package.json at all?
ОтветитьI'm in Windows and I can't run npm changeset. Does anyone else have this problem or know a solution? Thanks. *Update* You have to run npx changeset, but now I'm getting Error: Failed to find where HEAD diverged from main. Does main exist?
ОтветитьGreat summary, just what I was looking for. Nice pace also!
ОтветитьI'm sure it's just me being a novice, but Rollup gave me nightmares! No matter what I tried, nothing worked, and don't get me started on the questions I had to go through to resolve path alias errors.
tsup just works! 😍This video is such a life saver, THANK YOU!!!
This looks awesome, but my main question around changeset is how to add it in the context of a monorepo (lets say with turborepo). Video idea right there!
ОтветитьThe fact that this video is < 4 minutes is incredibly appreciated
ОтветитьThis publish thing didn't work for me, too many errors
ОтветитьNow its time to do it with the Bun bundler :D
ОтветитьAnyone know how this differs when using bun?
ОтветитьDoes not fully work for me. Build fails with pnpm install --frozen-lock-file. I had to add auto-install-peers=false in .npmrc file, then it works.
Publish however requires GITHUB_TOKEN so I added env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} line in publish.yaml, but github does not allow secret name to start with GITHUB so I'm kinda stuck on publish step.
Matt, do you still use this method? or do you use another packager now? using vite etc
ОтветитьThis is what I looking for
Ответитьhow can i export css file from the package?
ОтветитьGetting publish
Error: The process '/usr/bin/git' failed with exit code 128
Anyone know the answer? :)
Awesome, thank you. Good introduction to tsup will help me to get rid of my overkill rollup setup.
ОтветитьYou made me watch a 3 minutes video in 40 minutes, the content is just too good. Big thanks :)
ОтветитьI'd recommend the `wireit` script runner developed by google for all but the most simple `npm run` scripts.
ОтветитьSeriously I had lost hope to support CommonJS and ES6 imports and publish a package ... but at last found your video ... Tks man!!
ОтветитьI just across your channel. Can't belive I've been missing all of these golden content for all these days!
ОтветитьI really can't thank you enough for this condensed video.
The pace made me struggle the first time I watched the video a while ago, but now that I needed the instructions, I know that this pace is all I needed! <3
I also struggled with github actions and workflows at first (because of an authentication problem, and the fact that this is my first time ever to try actions), but when I fussed around with it I learned a lot.
Also, thanks for not using npm by default. I learned a lot about the use of npx to run stuff like changeset and the likes.
A 3 and a half minute video that gave me a crash course for a lifetime. <3
So, thanks a bunch!
publish workflow doesn't work
Ответитьdoes it work for building backend nodejs library? Should we bundle backend nodejs libraries?
ОтветитьHo other people are asking about monorepo stuff and they do deserve to learn all that jazz from you 😅 oh — Me? No I am just asking for a friend… I am using multi root VSCode workspaces and I started using the Rush Stack but I feel like it is not something that is convivial enough for my workflow 😮
ОтветитьI would love to have a long form video about each of those topics all alone for maximum understanding… it could be fast paced I love it when it is fast but it should be going more into the details… 🎉🎉🎉🎉
ОтветитьThank Matt. Any idea how I can build to a single .js file that could be hosted on a CDN?
ОтветитьI used the bundler and now I am getting a bunch of errors of these 2 types. Does anyone please know how to fix this?
The inferred type of 'router' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@types/express'. This is likely not portable. A type annotation is necessary.
Property 'app' of exported class expression may not be private or protected.ts(4094)
Amazing video! But how good it changesets for beta releases?
ОтветитьThis is exactly what I was looking for. Thank you very much Matt!
ОтветитьWould it be the same process for creating a react package?
ОтветитьThis is great! Any chance you could do a GitLab version of the video?
ОтветитьOne part of the flow I'm confused about is when the changeset action creates a PR? So for example, a changeset would be created in a feature PR and then that would get merged into main. After the feature PR is merged into main, is that when the action creates the new PR for bumping the version and adding the changeset to the changelog? Then once that's merged it publishes the package?
Ответить