Skip to content

Commit

Permalink
build: update tsec and drop corresponding postinstall patch
Browse files Browse the repository at this point in the history
Updates tsec and drops the corresponding postinstall patch that
we added when we updated to Bazel v5. See: google/tsec#25
  • Loading branch information
devversion committed Apr 26, 2022
1 parent 653457e commit 4532fa8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
"stylelint": "^14.5.0",
"terser": "^5.10.0",
"ts-node": "^10.4.0",
"tsec": "0.2.1",
"tsec": "0.2.2",
"tsickle": "0.39.1",
"tslint": "^6.1.3",
"tsutils": "^3.21.0",
Expand Down
5 changes: 1 addition & 4 deletions tools/postinstall/apply-patches.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const chalk = require('chalk');
* Version of the post install patch. Needs to be incremented when
* existing patches or edits have been modified.
*/
const PATCH_VERSION = 15;
const PATCH_VERSION = 16;

/** Path to the project directory. */
const projectDir = path.join(__dirname, '../..');
Expand Down Expand Up @@ -55,9 +55,6 @@ function applyPatches() {
// Switches the devmode output for Angular Bazel to ES2020 target and module.
applyPatch(path.join(__dirname, './devmode-es2020-bazel.patch'));

// Workaround until https://github.com/google/tsec/pull/25 is available.
searchAndReplace('@bazel/typescript', '@bazel/concatjs', 'node_modules/tsec/index.bzl');

// More info in https://github.com/angular/angular/pull/33786
shelljs.rm('-rf', [
'node_modules/rxjs/add/',
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14165,10 +14165,10 @@ ts-node@^10.4.0:
v8-compile-cache-lib "^3.0.0"
yn "3.1.1"

[email protected].1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/tsec/-/tsec-0.2.1.tgz#017423174b2be54f26da5cb7591dc7035996086b"
integrity sha512-RP9vhbRbRI9VH4CfOlQvo5W9HdfiPKq0gdiUOWI5oKmLaZKNFN8CsPwBfT5ySmhnKNwmmAS/BtY3WoTfABwwig==
[email protected].2:
version "0.2.2"
resolved "https://registry.yarnpkg.com/tsec/-/tsec-0.2.2.tgz#d86d771215fb09a5e226f2b252a1c038c7fa17ca"
integrity sha512-gKm+nnIKcE9xtrJw2cIJFjfuDGK0AvH3r4RayTEIkUvja/s9z9GPFgcSdEaapm6N10KrmWWcLjsHlKmH2tqzMw==
dependencies:
glob "^7.1.1"
minimatch "^3.0.3"
Expand Down

0 comments on commit 4532fa8

Please sign in to comment.