(function(done) { working = CORE.path.normalize(working); CORE.async(function() { return require.loader.openNearestPackage(working); })(function(err, workingPackage) { if (!err && !workingPackage) { err = new Error("working package could not be found for "+working); } if (err) return done(err); return done(null, workingPackage); }); // next, find the packages for the packageId's in seed })(function(err, workingPackage) {
isUnderSourceControl = SRC_DIRS.some(function(dirname) { return CORE.fs.exists(CORE.path.join(pkg.path, dirname)); });