[Pkg-javascript-devel] Bug#972952: Bug#972952: node-mkdirp 1.0 is incompatible with 0.5, breaks yarnpkg
Xavier
yadd at debian.org
Tue Oct 27 06:41:34 GMT 2020
Le 26/10/2020 à 20:50, Paolo Greppi a écrit :
> Hi Xavier,
>
> Il 26/10/20 20:24, Xavier ha scritto:
>> Le 26/10/2020 à 15:28, anomie at users.sourceforge.net a écrit :
>>> ...
>>
>> Hi JS Team,
>>
>> yarnpkg is not in testing due to babel problems. Do you agree to
>> dicrease severity of this bug to allow mkdirp transition (or reassign
>> this bug to node-yarnpkg) ?
>>
>> Cheers,
>> Xavier
>>
>
> I think this should be reassigned to node-yarnpkg and then escalated to
> upstream
> I volunteer to do the second part.
>
> Paolo
Done, thanks!
migration from mkdirp 0.53 to 1.0.x is easy but I'm not able to patch
yarnpkg since build already fails for some babel reasons.
How to do migration:
1. replace any
mkdirp( path <, mode>, function(err) {
if(err) throw err;
/* MAIN FUNCTION *>
})
by:
mkdirp( path <, mode> ).then( () => {
/* MAIN FUNCTION */
}).catch( (err) => {
throw err
})
2. replace any
mkdirp( path <, mode>, callback )
by
mkdirp( path <, mode> ).then( () => {
callback()
}).catch( (err) => {
callback(err)
})
More information about the Pkg-javascript-devel
mailing list