#PNPM
I'm thinking about how I could a good #cli for #hsml
I may orientate on existing CLIs like #Rust, #deno or #pnpm
so e.g.
```bash
hsml compile # compiles all .hsml files to .html inside current folder and recursive below
hsml compile ./example.hsml # just compiles the given file
hsml fmt # formats
hsml fmt # just formats given file
hsml parse ./example.hsml # parses the given file and std::out as json AST
```
But I'm not sure if this fulfills all need or if I need to change something
People who are working with #npm #monorepo's, if I have a package (eslint config) in the monorepo that is used as `devDependency` in other package from the same repo, and that other package is going to be published. Does this `devDependency` has to be published too? Or can it stay private? I really don't see sense publishing it, but also couldn't find information whether npm cares about devDeps...
Also tagging #nx #lerna #turborepo #pnpm #javascript, in case you guys maybe know the answer.
“Flat node_modules is not the only way” by @zkochan
[How pnpm manages node_modules]
https://pnpm.io/blog/2020/05/27/flat-node-modules-is-not-the-only-way
#NodeJS #npm #pnpm
#Storybook 7.0 has been officially released, with an obligitory hype video: https://youtu.be/UF3d34a6kqg
Read the announcement for the deets on all the goodies like:
- First-class @vite support
- Zero-config Sveltekit
- Zero-config Next.js
- Improved #TypeScript type safety
- Full #pnpm support
📢 Da hat sich einiges an Themen angesammelt, die wir besprechen müssen. Mit dabei unser geliebtes MS Teams, #zsh, #pnpm, #java 20, #chezmoi, #fdroid und #inkbook. 🤯
🛠️ Thematisch machen wir einen deep dive zum Thema #javascript build tools.
🦸♀️Im Konsum besprechen wir dann mal noch fix die ersten drei Phasen des MCU (und das ist der kurze Teil der Folge).
🎉 Ach, und wir haben einen Rabattcode für die #enterJS (auch in den Shownotes)
https://ready-for-review.dev/2023/04/12/rfr045-engelsklang-und-teufelszeug/ 😇😈
Misskey 13.11.1 is now available with lots of bug fixes @syuilo
https://github.com/misskey-dev/misskey/releases/tag/13.11.1
#misskey #opensource #foss #fediverse #misskeydev #social #network #socialnetwork #microblog #activitypub #typescript #vue #pnpm #vite
Just realized I misspelled the "packageManager" key in my package.json when I migrated to pnpm. There is still no way to use semver in that key after all. People started putting their ^ at the start because it doesn't fail the regex used in vscode, but this doesn't work at all and will just make corepack fail. #pnpm #npm #vscode #node
#TIL that you can run `npm version patch` to do a patch (or minor, major etc) version increment which will update your package.json file and create a new git tag. Very cool.
#javascript #typescript #opensource #foss #fosstodon #npm #git #github #pnpm
looks like #github is having a time™ the one time I actually feel like messing around on my projects. I just learned where to put my userconfig for #pnpm to globally disable dependency postinstall scripts and it's not letting me push to my dotfiles repo
TL;DR:
mkdir -p ~/.config/pnpm
echo "ignore-dep-scripts=true" >> ~/.config/pnpm/rc
Just quickly checked and #pnpm has an option to disable postinstall scripts by default: https://pnpm.io/npmrc#ignore-scripts
Now I just gotta add running my own (git hook setup, codegen) as a manual step to my docs :P
Edit: I just continued reading and there is a specific setting just for dependencies that is even better for my usecase. Now I really wanna migrate all my projects to pnpm.
So far I've used good ol' #NPM for all my JS/TS projects. Lately I've been eying #PNPM, mostly because installs are much faster, although the disk space savings are nice too.
However, I am not 100% convinced that it's the best decision as it's yet another thing that the whole team has to install. One more barrier before you can get the code up and running as a new dev on the team.
Is it worth it? I'm 50/50, can't really decide.
Pro tip time 🧑💻⏱
Now that we have automatic unstable releases for embroider packages you can update all of your dependencies in a pnpm monorepo with the following command:
```
pnpm -r update @embroider/test-setup@unstable @embroider/addon-shim@unstable @embroider/addon-dev@unstable @embroider/webpack@unstable
```
This can be super useful to test the upcoming release on a branch in your CI or staging environments 🎉
99 problems and a #JavaScript package manager ain't one! #npm #yarn #pnpm
Quick one about enabling #pnpm build on #CloudflarePages ...
Do you use pnpm in your projects?
I just made my first GitHub action that combines 3 common steps into one line, saving you over 10 lines per workflow file!
(in some cases, you could convert 50+ lines to 5!)
Another release for Misskey - upgrade to v13.9.1 now ... server performance improvement and bug fixes
https://github.com/misskey-dev/misskey/releases/tag/13.9.1
#misskey #opensource #foss #fediverse #misskeydev #social #network #socialnetwork #microblog #activitypub #typescript #vue #pnpm #vite

Am 22.06. darf ich auf der #enterjs in Darmstadt erzählen, wie wir unser Projekt auf #pnpm umgestellt haben. Wird ein Praxisbericht mit einigen Dingen, die wir gelernt haben. https://enterjs.de/veranstaltung-20055-0-heute-hoist-ich-morgen-bau-ich--dependency-management-aber-richtig-mit-pnpm.html
So I finally figured out how to deal with some mystery slowness during file extraction in #orogene, and managed to get full extraction working and it is:
👉🏻 4x faster than #pnpm
👉🏻 4x faster than #yarn
👉🏻 3x faster than #npm
...and these are just some initial numbers! There's still some stuff I'm sure I haven't tried to do yet that could bump that further.
On my machine, this means it can fully resolve and install a react app in 11 seconds.
v v exciting results so far.
wish #pnpm had ‘bt’ command which would run build and then test scripts...
Why is it so unreasonably hard to get #PNPM to generate a damn lockfile? Even if I don't have any dependencies, I still want a lockfile!
Hello Devs,
Which one you like the most?
🎈 Do you use a #pnpm workspace in your Rush repo? We just published the 1.0.0 release of "Lockfile Explorer", a new tool for troubleshooting version conflicts. Thanks William Huang from TikTok for contributing this cool app! ✨
TIL #pnpm command line tab-completion, setup with `pnpm install-completion`
https://pnpm.io/completion
[New Post] ✍🏼 Failing to debug pnpm workspaces
https://www.mehulkar.com/blog/2023/01/failing-to-debug-pnpm-workspaces/
#javascript #debugging #frontend #pnpm
New Misskey v13 with rewriten backend released but avoid it. Build issues with new installations and possibly other issues with upgrades as well
If you still want to proceed here's the link to v13: https://github.com/misskey-dev/misskey/releases/tag/13.0.0
#misskey #opensource #foss #fediverse #misskeydev #social #network #socialnetwork #microblog #activitypub #typescript #vue #pnpm #vite

After struggling efficiently using (and updating) #pnpm on a system where nvm was being used for #nodejs version management, I finally found the best way to get everything working without a headache. I ditched nvm, now use https://github.com/Schniz/fnm (written in #rust) and installed pnpm with #corepack (from the fnm-installed node).
The year 2022 for pnpm
https://pnpm.io/blog/2022/12/30/yearly-update
#EsNextNews #EcmaScript #JavaScript #pnpm
The latest #storybook 7.0 beta has a handful of small #pnpm fixes that I worked on over the last few days. Thank you to those who reported problems.
`pnpx sb@next init` to try it out.
https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.19
If you had trouble with #pnpm and #storybook in the past, give the new 7.0 beta a try! It wasn't easy, but we worked hard to make sure pnpm is fully supported without hoisting or workarounds.
Use `pnpx sb@next init` to add Storybook to a project, or `pnpx sb@next upgrade --prerelease` to upgrade an existing Storybook project.
Let me know if you experience any issues.
The #Storybook 7.0 beta has been announced: https://storybook.js.org/blog/7-0-beta/
I and the rest of the team have been working hard to ensure that it works seamlessly with #PNPM, #ViteJS, #Svelte, and more. There's a ton to love in this release.
The holidays are a good time to experiment with new things, so give it a whirl today. And feel free to let me know if you have any trouble, I'm happy to help out.
I really enjoyed adding #turborepo and #pnpm to our stack. Everything is so fast now 🤩
I want to contribute a new #eInk display to https://github.com/samsonmking/epaper.js #NodeJS but the #pnpm workspaces flow has me baffled.
#MonoRepo blues!
It would be great to get this feature in pnpm too, so I created an issue here: https://github.com/pnpm/pnpm/issues/5695
Immerhin zahlt es sich aus, Zeit in #pnpm zu investieren. Tolles Tool und mein bevorzugter Package Manager aktuell
Schöner Talk, der erklärt, wie #pnpm funktioniert und wo es sich von #npm und #yarn unterscheidet. https://viteconf.org/2022/replay/pnpm
My PR to tackle the final challenges when using #pnpm and #vitejs in #storybook is green in CI and has at least one approval. :its-happening:
It's https://github.com/storybookjs/storybook/pull/19689 if anyone wants to follow along and try it out once it's released in the next 7.0 alpha.
Great to see so many friendly faces on the #storybook monthly roadmap meeting! We're covering topics like prebundling, first-class #nextjs support, and first-class #pnpm support. These happen every month on the first Monday in our discord: discord.gg/storybook.
Habe letzte Woche ein paar Projekte auf #pnpm umgestellt, die schon mit npm schnell gebaut haben. Sieht gerade so aus, also ob pnpm da trotzdem abermals schneller ist.
JavaScript-Paketmanager pnpm vermeidet doppelte Packages
#JavaScript #YARN #npm #paketmanager #pnpm