bluwy/create-vite-extra

"files" field in package.json doesn't work properly in new node

JLarky opened this issue · 1 comments

JLarky commented

I think template-* pattern doesn't work in new node anymore. I got the best results by just removing "files" section, but that causes .* files to be added in the root, which isn't probably that big of a problem. You can see on the screenshot that only README is getting sent from the template

image

bluwy commented

Seems like a breaking change from https://github.com/npm/npm-packlist, changing it to template-*/** fixes it, but causes npm v8 and pnpm to hang (because they're using an older version of npm-packlist). For now since I'm using pnpm to publish, I'm sticking with the current syntax for now. Thanks for bringing this up!