FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build: update linker integration test to work with APF v13 by devversion · Pull Request #23883 · angular/components · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .bazel  (1) .json  (1) .lock  (1) .mjs  (1) All 4 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
1 change: 0 additions & 1 deletion integration/linker/BUILD.bazel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ nodejs_test(
"//src/youtube-player:npm_package",
"@npm//@angular/compiler-cli",
"@npm//@babel/core",
"@npm//@babel/traverse",
"@npm//chalk",
"@npm//glob",
],
Expand Down
5 changes: 2 additions & 3 deletions integration/linker/link-packages-test.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {getNpmPackagesFromRunfiles} from '../npm-packages-from-runfiles.mjs';
import fs from 'fs';
import path from 'path';
import babel from '@babel/core';
import traverse from '@babel/traverse';
import glob from 'glob';
import chalk from 'chalk';

Expand Down Expand Up @@ -57,7 +56,7 @@ if (failedPackages) {
* @returns An object containing linker failures and passed files.
*/
function testPackage(pkg) {
const entryPointFesmFiles = glob.sync(`fesm2015/**/*.js`, {cwd: pkg.pkgPath});
const entryPointFesmFiles = glob.sync(`+(fesm2015|fesm2020)/**/*.mjs`, {cwd: pkg.pkgPath});
const passedFiles = [];
const failures = [];

Expand All @@ -80,7 +79,7 @@ function testPackage(pkg) {
});

// Naively check if there are any Angular declarations left that haven't been linked.
traverse(ast, {
babel.traverse(ast, {
Identifier: astPath => {
if (astPath.node.name.startsWith('ɵɵngDeclare')) {
throw astPath.buildCodeFrameError(
Expand Down
3 changes: 1 addition & 2 deletions package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
"@angular/platform-server": "13.0.0-rc.3",
"@angular/router": "13.0.0-rc.3",
"@axe-core/webdriverjs": "^4.1.0",
"@babel/core": "^7.13.10",
"@babel/traverse": "^7.13.0",
"@babel/core": "^7.16.0",
"@bazel/bazelisk": "1.10.1",
"@bazel/buildifier": "4.2.1",
"@bazel/concatjs": "4.3.0",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
semver "^5.4.1"
source-map "^0.5.0"

"@babel/core@>=7.9.0", "@babel/core@^7.13.10", "@babel/core@^7.8.6":
"@babel/core@>=7.9.0", "@babel/core@^7.8.6":
version "7.14.8"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.14.8.tgz#20cdf7c84b5d86d83fac8710a8bc605a7ba3f010"
integrity sha512-/AtaeEhT6ErpDhInbXmjHcUQXH0L0TEgscfcxk1qbOvLuKCa5aZT0SOOtDKFY96/CLROwbLSKyFor6idgNaU4Q==
Expand All @@ -481,7 +481,7 @@
semver "^6.3.0"
source-map "^0.5.0"

"@babel/core@^7.12.3":
"@babel/core@^7.12.3", "@babel/core@^7.16.0":
version "7.16.0"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.0.tgz#c4ff44046f5fe310525cc9eb4ef5147f0c5374d4"
integrity sha512-mYZEvshBRHGsIAiyH5PzCFTCfbWfoYbO/jcSdXQSUQu1/pW0xDZAUP7KEc32heqWTAfAHhV9j1vH8Sav7l+JNQ==
Expand Down

Back | FazBrowse Home | New Git URL