scripts/release/cp-pkgs.js
function cpTypes(typeAsset) {
  const {dir, base} = path.parse(typeAsset);
  let destDir = dir.split('build/types/')[1];
  destDir = destDir.split('/');
  destDir.splice(2, 0, 'dist');
  destDir = `${destDir.join('/')}/${base}`;
  addTsIgnore(typeAsset);
  return cpFile(typeAsset, destDir)
    .then(() => console.log(`cp ${typeAsset} -> ${destDir}`));
}
function cpTypes(typeAsset) {
  const {dir, base} = path.parse(typeAsset);
  let destDir = dir.split('build/types/')[1];
  destDir = destDir.split('/');
  destDir.splice(2, 0, 'dist');
  destDir = `${destDir.join('/')}/${base}`;
  addTsIgnore(typeAsset);
  return cpFile(typeAsset, destDir)
    .then(() => console.log(`cp ${typeAsset} -> ${destDir}`));
}
function cpTypes ( typeAsset ) { const { dir , base } = path . parse ( typeAsset ) ; let destDir = dir . split ( 'build/types/' ) [ 1 ] ; destDir = destDir . split ( '/' ) ; destDir . splice ( 2 , 0 , 'dist' ) ; destDir = ` ${ destDir . join ( '/' ) } ${ base } ` ; addTsIgnore ( typeAsset ) ; return cpFile ( typeAsset , destDir ) . then ( ( ) => console . log ( ` ${ typeAsset } ${ destDir } ` ) ) ; }
takes assetPath, computes the destination file directory path and copies file into destination directory
takes assetPath computes the destination file directory path and copies file into destination directory