cli/build-public-library.js
function transpile() {
  return new Promise((resolve, reject) => {
    const result = spawn.sync(
      skyPagesConfigUtil.spaPath('node_modules', '.bin', 'ngc'),
      [
        '--project',
        skyPagesConfigUtil.spaPathTemp('tsconfig.json')
      ],
      { stdio: 'inherit' }
    );

    // Catch ngc errors.
    if (result.err) {
      reject(result.err);
      return;
    }

    // Catch non-zero status codes.
    if (result.status !== 0) {
      reject(new Error(`Angular compiler (ngc) exited with status code ${result.status}.`));
      return;
    }

    resolve();
  });
}
function transpile() {
  return new Promise((resolve, reject) => {
    const result = spawn.sync(
      skyPagesConfigUtil.spaPath('node_modules', '.bin', 'ngc'),
      [
        '--project',
        skyPagesConfigUtil.spaPathTemp('tsconfig.json')
      ],
      { stdio: 'inherit' }
    );

    // Catch ngc errors.
    if (result.err) {
      reject(result.err);
      return;
    }

    // Catch non-zero status codes.
    if (result.status !== 0) {
      reject(new Error(`Angular compiler (ngc) exited with status code ${result.status}.`));
      return;
    }

    resolve();
  });
}
function transpile ( ) { return new Promise ( ( resolve , reject ) => { const result = spawn . sync ( skyPagesConfigUtil . spaPath ( 'node_modules' , '.bin' , 'ngc' ) , [ '--project' , skyPagesConfigUtil . spaPathTemp ( 'tsconfig.json' ) ] , { stdio : 'inherit' } ) ; // Catch ngc errors. if ( result . err ) { reject ( result . err ) ; return ; } // Catch non-zero status codes. if ( result . status !== 0 ) { reject ( new Error ( ` ${ result . status } ` ) ) ; return ; } resolve ( ) ; } ) ; }
Transpiles TypeScript files into JavaScript files
to be included with the NPM package.
Transpiles TypeScript files into JavaScript files to be included with the NPM package .