Closed mcdonnelldean closed 8 years ago
The /dist folder is git ignored so we will need an .npmignore
to override this as far as I know.
At this point npm publish
not publishing dist
directory to npm even with it included in files array in package.json or with .npmignore ommited in it. Needs more digging on the subject.
So i think this is because it is ignored in the .gitignore. Yeah dig away see what you come up with.
Kindest Regards,
Dean
On 5 Apr 2016, at 16:10, Vladimir Islamov notifications@github.com wrote:
At this point npm publish not publishing dist directory to npm even with it included in files array in package.json or with .npmignore ommited in it. Needs more digging on the subject.
— You are receiving this because you were assigned. Reply to this email directly or view it on GitHub
@vislamov @AdrianRossouw We need to chat about this. Basically the .npmignore needs to allow dist for publishing but it also breaks our fuge config. Any more ideas on how to progress this?
IIRC it will fall back to gitignore if there is no npmignore. I removed the npmignore, because it only really had the ~* in there.
so just touch and commit the .npmignore?
I think that should work. I'm pushing releases today so I can check?
Kindest Regards,
Dean
On 10 Apr 2016, at 03:34, Adrian Rossouw notifications@github.com wrote:
IIRC it will fall back to gitignore if there is no npmignore. I removed the npmignore, because it only really had the ~* in there.
so just touch and commit the .npmignore?
— You are receiving this because you were assigned. Reply to this email directly or view it on GitHub
I was trying with .npmignore, the doc says if it's omitted in .npmingnore then it should take it, but didn't work for me, please give it a shot, may be I didn't do it right.
Closed as complete.
When we move to dot version we will need to prebuild the site on publish. Will need to use this for it to work correctly. https://www.npmjs.com/package/in-publish