Open chmac opened 8 years ago
The fix is here.
Edit /usr/lib/node_modules/mup/lib/build.js (might instead be at /usr/local/lib/node_modules/mup/lib/build.js).
/usr/lib/node_modules/mup/lib/build.js
/usr/local/lib/node_modules/mup/lib/build.js
function archiveIt(buildLocaltion, callback) { callback = _.once(callback); var bundlePath = pathResolve(buildLocaltion, 'bundle.tar.gz'); var sourceDir = pathResolve(buildLocaltion, 'bundle'); + var esprimaFolder = sourceDir+'/programs/server/npm/react-runtime-prod/node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/'; + if(fs.existsSync(esprimaFolder+'#README.md#')){ + fs.renameSync(esprimaFolder+'#README.md#',esprimaFolder+'.#README.md'); + }
Or here's the standalone snippet to copy & paste:
var esprimaFolder = sourceDir+'/programs/server/npm/react-runtime-prod/node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/'; if(fs.existsSync(esprimaFolder+'#README.md#')){ fs.renameSync(esprimaFolder+'#README.md#',esprimaFolder+'.#README.md'); }
The fix is here.
Edit
/usr/lib/node_modules/mup/lib/build.js
(might instead be at/usr/local/lib/node_modules/mup/lib/build.js
).Or here's the standalone snippet to copy & paste: