2019-11-14 19:56:55 -05:00
|
|
|
#!/usr/bin/env node
|
2020-03-02 12:35:30 -05:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 15:08:49 -04:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2020-03-02 12:35:30 -05:00
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
2020-02-29 15:25:49 -05:00
|
|
|
|
2019-11-14 19:56:55 -05:00
|
|
|
'use strict';
|
|
|
|
|
2020-02-29 14:05:23 -05:00
|
|
|
const {buildZoneJsPackage} = require('./zone-js-builder');
|
2019-11-14 19:56:55 -05:00
|
|
|
const {buildTargetPackages} = require('./package-builder');
|
|
|
|
|
|
|
|
|
2020-02-29 15:25:49 -05:00
|
|
|
// Build the ivy packages into `dist/packages-dist-ivy-aot/`.
|
2019-11-22 15:11:48 -05:00
|
|
|
buildTargetPackages('dist/packages-dist-ivy-aot', true, 'Ivy AOT');
|
2020-02-29 14:05:23 -05:00
|
|
|
|
|
|
|
// Build the `zone.js` npm package into `dist/zone.js-dist-ivy-aot/`, because it might be needed by
|
|
|
|
// other scripts/tests.
|
|
|
|
//
|
|
|
|
// NOTE:
|
|
|
|
// The `-ivy-aot` suffix is only used to differentiate from the packages built by the
|
|
|
|
// `build-packages-dist.js` script, so that there is no conflict when persisting them to the
|
|
|
|
// workspace on CI.
|
|
|
|
buildZoneJsPackage('dist/zone.js-dist-ivy-aot');
|