superlumen / knowledge

A repository for our research into topics related to dev, products, startups, lean...
4 stars 0 forks source link

Bug in meteor up / react 0.14.4 #2

Open chmac opened 8 years ago

chmac commented 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).

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');
  }