Skip to content

Commit cb258cb

Browse files
build: update to Nx version 12.0.x and TypeScript 4.1.x (#2999)
BREAKING CHANGE: The minimum TypeScript version has been updated to 4.1.x BEFORE: The minimum TypeScript version is 4.0.x AFTER: The minimum TypeScript version is 4.1.x
1 parent 7c6d4e4 commit cb258cb

File tree

3 files changed

+1286
-992
lines changed

3 files changed

+1286
-992
lines changed

build/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function remove(target: string): Promise<void> {
2828
});
2929
}
3030

31-
export function writeFile(target: string, contents: string) {
31+
export function writeFile(target: string, contents: string): Promise<void> {
3232
return new Promise((resolve, reject) => {
3333
fs.writeFile(target, contents, (err) => {
3434
if (err) return reject(err);
@@ -54,7 +54,7 @@ export function getListOfFiles(
5454
});
5555
}
5656

57-
export function removeRecursively(glob: string) {
57+
export function removeRecursively(glob: string): Promise<void> {
5858
return new Promise((resolve, reject) => {
5959
rimraf(glob, (err) => {
6060
if (err) {

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"example:build:prod": "yarn example:build --no-progress --base-href \"/platform/example-app/\"",
2626
"ci": "yarn run test && nyc report --reporter=text-lcov | coveralls",
2727
"prettier": "prettier --write \"**/*.ts\"",
28-
"postinstall": "opencollective postinstall && ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points",
28+
"postinstall": "opencollective postinstall && ngcc --properties es2015 browser module main",
2929
"prepublish": "ngc -p angular-metadata.tsconfig.json",
3030
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
3131
"bazel:format": "find . -type f \\( -name \"*.bzl\" -or -name WORKSPACE -or -name BUILD -or -name BUILD.bazel \\) ! -path \"*/node_modules/*\" ! -path \"./dist/*\" | xargs buildifier -v --warnings=attr-cfg,attr-license,attr-non-empty,attr-output-default,attr-single-file,constant-glob,ctx-actions,ctx-args,depset-iteration,depset-union,dict-concatenation,duplicated-name,filetype,git-repository,http-archive,integer-division,load,load-on-top,native-build,native-package,out-of-order-load,output-group,package-name,package-on-top,positional-args,redefined-variable,repository-name,same-origin-load,string-iteration,unsorted-dict-items,unused-variable",
@@ -96,19 +96,19 @@
9696
]
9797
},
9898
"dependencies": {
99-
"@angular/animations": "11.2.0",
99+
"@angular/animations": "11.2.11",
100100
"@angular/cdk": "^11.2.0",
101-
"@angular/common": "11.2.0",
102-
"@angular/compiler": "11.2.0",
103-
"@angular/core": "11.2.0",
104-
"@angular/forms": "11.2.0",
101+
"@angular/common": "11.2.11",
102+
"@angular/compiler": "11.2.11",
103+
"@angular/core": "11.2.11",
104+
"@angular/forms": "11.2.11",
105105
"@angular/material": "^11.2.0",
106-
"@angular/platform-browser": "11.2.0",
107-
"@angular/platform-browser-dynamic": "11.2.0",
106+
"@angular/platform-browser": "11.2.11",
107+
"@angular/platform-browser-dynamic": "11.2.11",
108108
"@angular/platform-server": "^11.2.0",
109-
"@angular/router": "11.2.0",
109+
"@angular/router": "11.2.11",
110110
"@applitools/eyes-cypress": "^3.4.12",
111-
"@nrwl/angular": "11.2.12",
111+
"@nrwl/angular": "12.0.8",
112112
"core-js": "^2.5.4",
113113
"hammerjs": "^2.0.8",
114114
"opencollective": "^1.0.3",
@@ -117,25 +117,25 @@
117117
"zone.js": "~0.10.3"
118118
},
119119
"devDependencies": {
120-
"@angular-devkit/build-angular": "0.1100.7",
120+
"@angular-devkit/build-angular": "0.1102.10",
121121
"@angular/bazel": "^11.0.2",
122-
"@angular/cli": "11.0.7",
123-
"@angular/compiler-cli": "11.2.0",
122+
"@angular/cli": "11.2.10",
123+
"@angular/compiler-cli": "11.2.11",
124124
"@babel/core": "7.9.0",
125125
"@bazel/bazelisk": "1.4.0",
126126
"@bazel/buildifier": "^2.2.1",
127127
"@bazel/ibazel": "0.12.4",
128128
"@bazel/jasmine": "1.6.0",
129129
"@bazel/typescript": "1.6.0",
130130
"@cypress/webpack-preprocessor": "^4.0.3",
131-
"@nrwl/cli": "11.2.12",
132-
"@nrwl/cypress": "11.2.12",
133-
"@nrwl/jest": "11.2.12",
134-
"@nrwl/node": "11.2.12",
135-
"@nrwl/nx-cloud": "^9.3.5",
136-
"@nrwl/nx-plugin": "11.2.12",
137-
"@nrwl/tao": "11.2.12",
138-
"@nrwl/workspace": "11.2.12",
131+
"@nrwl/cli": "12.0.8",
132+
"@nrwl/cypress": "12.0.8",
133+
"@nrwl/jest": "12.0.8",
134+
"@nrwl/node": "12.0.8",
135+
"@nrwl/nx-cloud": "11.2.0",
136+
"@nrwl/nx-plugin": "12.0.8",
137+
"@nrwl/tao": "12.0.8",
138+
"@nrwl/workspace": "12.0.8",
139139
"@octokit/rest": "^15.17.0",
140140
"@testing-library/cypress": "^7.0.1",
141141
"@types/fs-extra": "^2.1.0",
@@ -146,7 +146,7 @@
146146
"@types/jest": "26.0.8",
147147
"@types/lodash": "^4.14.80",
148148
"@types/ncp": "^2.0.1",
149-
"@types/node": "12.12.38",
149+
"@types/node": "14.14.33",
150150
"@types/ora": "^1.3.1",
151151
"@types/prettier": "^1.19.0",
152152
"@types/rimraf": "^0.0.28",
@@ -179,7 +179,7 @@
179179
"karma-jasmine-html-reporter": "1.5.4",
180180
"lint-staged": "^8.0.0",
181181
"ncp": "^2.0.0",
182-
"ng-packagr": "^11.2.0",
182+
"ng-packagr": "11.2.4",
183183
"npm-run-all": "^4.1.5",
184184
"nyc": "^10.1.2",
185185
"ora": "^1.3.0",
@@ -204,7 +204,7 @@
204204
"tsickle": "^0.37.0",
205205
"tslint": "6.1.3",
206206
"tsutils": "2.27.2",
207-
"typescript": "4.0.7",
207+
"typescript": "4.1.4",
208208
"uglify-js": "^3.1.9"
209209
},
210210
"collective": {

0 commit comments

Comments
 (0)