rsnext/packages/next/compiled/mkdirp/index.js
Guy Bedford 7b66da83e3
Update ncc (#18823)
This updates to the latest ncc@0.24.1 release.

Initially I thought chalk needed to be removed to make this work, but it turns out it was a caching issue.

I've also added a cache clear to the rebuild command to avoid these issues hopefully in future.
2020-11-05 03:30:37 +00:00

1 line
No EOL
1.3 KiB
JavaScript

module.exports=function(r,e){"use strict";var i={};function __webpack_require__(e){if(i[e]){return i[e].exports}var t=i[e]={i:e,l:false,exports:{}};r[e].call(t.exports,t,t.exports,__webpack_require__);t.l=true;return t.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(17)}return startup()}({17:function(r,e,i){var t=i(622);var n=i(747);var u=parseInt("0777",8);r.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(r,e,i,o){if(typeof e==="function"){i=e;e={}}else if(!e||typeof e!=="object"){e={mode:e}}var c=e.mode;var s=e.fs||n;if(c===undefined){c=u&~process.umask()}if(!o)o=null;var a=i||function(){};r=t.resolve(r);s.mkdir(r,c,function(i){if(!i){o=o||r;return a(null,o)}switch(i.code){case"ENOENT":mkdirP(t.dirname(r),e,function(i,t){if(i)a(i,t);else mkdirP(r,e,a,t)});break;default:s.stat(r,function(r,e){if(r||!e.isDirectory())a(i,o);else a(null,o)});break}})}mkdirP.sync=function sync(r,e,i){if(!e||typeof e!=="object"){e={mode:e}}var o=e.mode;var c=e.fs||n;if(o===undefined){o=u&~process.umask()}if(!i)i=null;r=t.resolve(r);try{c.mkdirSync(r,o);i=i||r}catch(n){switch(n.code){case"ENOENT":i=sync(t.dirname(r),e,i);sync(r,e,i);break;default:var s;try{s=c.statSync(r)}catch(r){throw n}if(!s.isDirectory())throw n;break}}return i}},622:function(r){r.exports=require("path")},747:function(r){r.exports=require("fs")}});