Fix for version glob error in #26#29
Conversation
|
Whoops, don't merge. I reviewed my validation. Hold your horses, I'll update. |
|
This turned out to be more complex than I thought, due to various bugs and weird stuff in NPM. From the "Files and Ignores" section:
Then there is the fact that NPM doesn't respect There's a workaround, though:
|
The `.npmignore` file is not respected when using the `files` section in `package.json`, so simply fixing the `files` section was not enough. Thankfully, moving the `.npmignore` file into `lib` is a workaround for npm/npm#11669.
|
@fatso83 any ETA on the resolution for this ? |
|
Explicitly adding nise@1.2.0 doesn't even seem to work in Yarn |
2022a89 to
1632b9d
Compare
|
@webdevian maybe you need to clean your lock file so it removes any reference of nise@1.2.1 ? |
|
This is now correct, as the output from tar doesn't contain any test references |
|
Maybe the latest tag should be moved also to 1.2.0. |
|
@fatso83 I see the deprecation message, but the issue is still there... can't you just unpublish this version until it is fixed ? |
|
The fix in Yarn (v1) is to use a resolution "resolutions": {
"nise": "1.2.0"
}, |
|
Version 1.2.2 was released some minutes ago and version 1.2.1 has been retracted, as per @f-roland's suggestion: I was under the impression that NPM couldn't unpublish after the |
|
Well luckily, unpublish still works :) This is especially important when you are required by big libraries like sinon that are very widely used ! |
|
@f-roland Not sure if that would be avoiding anything, as very few people actively seek out pre-releases of libraries. I would rather have someone suggest a good postbuild step for our CI server that validated the built package. #helpwanted |
Fix for error in #26
The files section included
[^test}, which will avoid including any file that has eithert,e,s, ortin it. AFAIK the patterns section doesn't really employ true regexes, but glob patterns, which includes another way of specifying inverse matches..
Validation