scripts/docs/index.js
function getReadmeText(pkg) {
  const pkgDir = atPackagesDirectory().dir(pkg);
  const generatedDoc = pkgDir.read('./docs/docs.md');
  if (generatedDoc) pkgDir.write('Readme.md', generatedDoc);
  const text = pkgDir.read(README);
  if (text) return text;
  else return ''; // don't return "undefined"
}
function getReadmeText(pkg) {
  const pkgDir = atPackagesDirectory().dir(pkg);
  const generatedDoc = pkgDir.read('./docs/docs.md');
  if (generatedDoc) pkgDir.write('Readme.md', generatedDoc);
  const text = pkgDir.read(README);
  if (text) return text;
  else return ''; // don't return "undefined"
}
function getReadmeText ( pkg ) { const pkgDir = atPackagesDirectory ( ) . dir ( pkg ) ; const generatedDoc = pkgDir . read ( './docs/docs.md' ) ; if ( generatedDoc ) pkgDir . write ( 'Readme.md' , generatedDoc ) ; const text = pkgDir . read ( README ) ; if ( text ) return text ; else return '' ; // don't return "undefined" }
Returns the text of a README at a specific package
Returns the text of a README at a specific package