Skip to content

Commit

Permalink
build: update dev-infra package to latest version with full ESM (#4…
Browse files Browse the repository at this point in the history
…6437)

Updates `angular/dev-infra` to the latest version which is now full ESM.

PR Close #46437
  • Loading branch information
devversion authored and AndrewKushnir committed Jun 21, 2022
1 parent 516c836 commit 6b82eb1
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 101 deletions.
2 changes: 1 addition & 1 deletion aio/package.json
Expand Up @@ -175,7 +175,7 @@
"stemmer": "^2.0.0",
"timezone-mock": "^1.1.3",
"tree-kill": "^1.1.0",
"ts-node": "^10.8.0",
"ts-node": "^10.8.1",
"tsec": "^0.2.2",
"tslint": "~6.1.3",
"typescript": "~4.7.2",
Expand Down
8 changes: 4 additions & 4 deletions aio/yarn.lock
Expand Up @@ -12232,10 +12232,10 @@ trough@^1.0.0:
resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.5.tgz#b8b639cefad7d0bb2abd37d433ff8293efa5f406"
integrity sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==

ts-node@^10.8.0:
version "10.8.0"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.8.0.tgz#3ceb5ac3e67ae8025c1950626aafbdecb55d82ce"
integrity sha512-/fNd5Qh+zTt8Vt1KbYZjRHCE9sI5i7nqfD/dzBBRDeVXZXS6kToW6R7tTU6Nd4XavFs0mAVCg29Q//ML7WsZYA==
ts-node@^10.8.1:
version "10.8.1"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.8.1.tgz#ea2bd3459011b52699d7e88daa55a45a1af4f066"
integrity sha512-Wwsnao4DQoJsN034wePSg5nZiw4YKXf56mPIAeD6wVmiv+RytNSWqc2f3fKvcUoV+Yn2+yocD71VOfQHbmVX4g==
dependencies:
"@cspotcode/source-map-support" "^0.8.0"
"@tsconfig/node10" "^1.0.7"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -178,7 +178,7 @@
},
"// 2": "devDependencies are not used under Bazel. Many can be removed after test.sh is deleted.",
"devDependencies": {
"@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#fb0ce9d4c7f9a15e0351dc30f771993d757dc870",
"@angular/dev-infra-private": "https://github.com/angular/dev-infra-private-builds.git#f2ca0a57e8ede868dc51c3b80a0d3ca56d5fdf65",
"@bazel/bazelisk": "^1.7.5",
"@bazel/buildifier": "^5.0.0",
"@bazel/ibazel": "^0.16.0",
Expand Down Expand Up @@ -208,7 +208,7 @@
"sauce-connect": "https://saucelabs.com/downloads/sc-4.7.1-linux.tar.gz",
"semver": "^7.3.5",
"send": "^0.18.0",
"ts-node": "^10.0.0",
"ts-node": "^10.8.1",
"tsec": "0.2.2",
"tslint-eslint-rules": "5.4.0",
"tslint-no-toplevel-property-access": "0.0.2",
Expand Down
17 changes: 0 additions & 17 deletions tools/postinstall-patches.js
Expand Up @@ -177,21 +177,4 @@ rm('-rf', [
'node_modules/rxjs/Subscription.*',
]);


log('\n# patch: dev-infra snapshotting');
// more info in https://github.com/angular/dev-infra/pull/449
['node_modules/@angular/dev-infra-private/ng-dev/bundles/cli.js',
'node_modules/@angular/dev-infra-private/ng-dev/bundles/cli.js.map',
].forEach(filePath => {
const contents = readFileSync(filePath, 'utf8');
const newContents = contents.replace('*[0-9]*.[0-9]*.[0-9]*', '?[0-9]*.[0-9]*.[0-9]*');
if (contents !== newContents) {
writeFileSync(filePath, newContents, 'utf8');
log(`Release tag matcher for snapshots replaced in ${filePath}`);
} else {
log(`Release tag matcher for snapshots were already replaced in ${filePath}`);
}
});


log('===== finished running the postinstall-patches.js script =====');

0 comments on commit 6b82eb1

Please sign in to comment.