
With this commit `ngc` is used instead of `tsc-wrapped` for collecting metadata and tsickle rewriting and `tsc-wrapped` is removed from the repository. `@angular/tsc-wrapped@5` is now deprecated and is no longer used, updated, or maintained as part as of Angular 5.x.x. `@angular/tsc-wrapped@4` is still maintained and required by Angular 4.x.x and will be maintained as long as 4.x.x is in LTS. PR Close #19298
23 lines
669 B
JavaScript
23 lines
669 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
const sourceMapTest = require('../source-map-test');
|
|
|
|
const excludedPackages = ['bazel', 'benchpress', 'compiler-cli', 'language-service'];
|
|
|
|
module.exports = (gulp) => () => {
|
|
const packageDir = path.resolve(process.cwd(), 'dist/packages-dist/');
|
|
const packages =
|
|
fs.readdirSync(packageDir).filter(package => excludedPackages.indexOf(package) === -1);
|
|
|
|
packages.forEach(package => {
|
|
if (sourceMapTest(package).length) {
|
|
process.exit(1);
|
|
}
|
|
});
|
|
|
|
if (!packages.length) {
|
|
console.log('No packages found in packages-dist. Unable to run source map test.');
|
|
process.exit(1);
|
|
}
|
|
};
|