File tree 4 files changed +5
-8
lines changed
4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ nodejs_test(
15
15
"//src/youtube-player:npm_package" ,
16
16
"@npm//@angular/compiler-cli" ,
17
17
"@npm//@babel/core" ,
18
- "@npm//@babel/traverse" ,
19
18
"@npm//chalk" ,
20
19
"@npm//glob" ,
21
20
],
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import {getNpmPackagesFromRunfiles} from '../npm-packages-from-runfiles.mjs';
9
9
import fs from 'fs' ;
10
10
import path from 'path' ;
11
11
import babel from '@babel/core' ;
12
- import traverse from '@babel/traverse' ;
13
12
import glob from 'glob' ;
14
13
import chalk from 'chalk' ;
15
14
@@ -57,7 +56,7 @@ if (failedPackages) {
57
56
* @returns An object containing linker failures and passed files.
58
57
*/
59
58
function testPackage ( pkg ) {
60
- const entryPointFesmFiles = glob . sync ( `fesm2015/**/*.js ` , { cwd : pkg . pkgPath } ) ;
59
+ const entryPointFesmFiles = glob . sync ( `+( fesm2015|fesm2020) /**/*.mjs ` , { cwd : pkg . pkgPath } ) ;
61
60
const passedFiles = [ ] ;
62
61
const failures = [ ] ;
63
62
@@ -80,7 +79,7 @@ function testPackage(pkg) {
80
79
} ) ;
81
80
82
81
// Naively check if there are any Angular declarations left that haven't been linked.
83
- traverse ( ast , {
82
+ babel . traverse ( ast , {
84
83
Identifier : astPath => {
85
84
if ( astPath . node . name . startsWith ( 'ɵɵngDeclare' ) ) {
86
85
throw astPath . buildCodeFrameError (
Original file line number Diff line number Diff line change 78
78
"@angular/platform-server" : " 13.0.0-rc.3" ,
79
79
"@angular/router" : " 13.0.0-rc.3" ,
80
80
"@axe-core/webdriverjs" : " ^4.1.0" ,
81
- "@babel/core" : " ^7.13.10" ,
82
- "@babel/traverse" : " ^7.13.0" ,
81
+ "@babel/core" : " ^7.16.0" ,
83
82
"@bazel/bazelisk" : " 1.10.1" ,
84
83
"@bazel/buildifier" : " 4.2.1" ,
85
84
"@bazel/concatjs" : " 4.3.0" ,
Original file line number Diff line number Diff line change 460
460
semver "^5.4.1"
461
461
source-map "^0.5.0"
462
462
463
- "@babel/core@>=7.9.0", "@babel/core@^7.13.10", "@babel/core@^7. 8.6":
463
+ "@babel/core@>=7.9.0", "@babel/core@^7.8.6":
464
464
version "7.14.8"
465
465
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.14.8.tgz#20cdf7c84b5d86d83fac8710a8bc605a7ba3f010"
466
466
integrity sha512-/AtaeEhT6ErpDhInbXmjHcUQXH0L0TEgscfcxk1qbOvLuKCa5aZT0SOOtDKFY96/CLROwbLSKyFor6idgNaU4Q==
481
481
semver "^6.3.0"
482
482
source-map "^0.5.0"
483
483
484
- "@babel/core@^7.12.3":
484
+ "@babel/core@^7.12.3", "@babel/core@^7.16.0" :
485
485
version "7.16.0"
486
486
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.0.tgz#c4ff44046f5fe310525cc9eb4ef5147f0c5374d4"
487
487
integrity sha512-mYZEvshBRHGsIAiyH5PzCFTCfbWfoYbO/jcSdXQSUQu1/pW0xDZAUP7KEc32heqWTAfAHhV9j1vH8Sav7l+JNQ==
You can’t perform that action at this time.
0 commit comments