I’ve a package that we build and upload and everything works locally and tested with npm pack, but when it runs through GitHub actions, and also previously on Azure, it is missing some of the files it is supposed to gzip.
Package looks like this:
{
"name": "xxx",
"version": "2.3.5",
"description": "xxx",
"main": "xxx.js",
"scripts": {
"test": "echo "No tests specified.""
},
"files": [
"components/**/**, assets/**/**",
"*"
],
"author": "XXX",
"license": "ISC",
"dependencies": {
"@floating-ui/dom": "^1.6.3"
}
}
File Structure is
|folder
|- package.json
|- /assets
|- /components
|--component
|---types.d.ts
I have white listed the directories I want included as saw we shouldn’t use .npmignore, the .gitignore does ignore this entire directory as this is all copied into a dist directory but that doesn’t seem to be the problem because some of the files are grabbed.
Why would it grab some files and not all of them? Is there a cache somewhere to bust? Is it running out of memory? It’s not even missing them in alphabetical order either.