Skip to content

Commit

Permalink
build: update to Nx version 12.0.x and TypeScript 4.1.x (#2999)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
brandonroberts authored Apr 22, 2021
1 parent 7c6d4e4 commit cb258cb
Show file tree
Hide file tree
Showing 3 changed files with 1,286 additions and 992 deletions.
4 changes: 2 additions & 2 deletions build/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function remove(target: string): Promise<void> {
});
}

export function writeFile(target: string, contents: string) {
export function writeFile(target: string, contents: string): Promise<void> {
return new Promise((resolve, reject) => {
fs.writeFile(target, contents, (err) => {
if (err) return reject(err);
Expand All @@ -54,7 +54,7 @@ export function getListOfFiles(
});
}

export function removeRecursively(glob: string) {
export function removeRecursively(glob: string): Promise<void> {
return new Promise((resolve, reject) => {
rimraf(glob, (err) => {
if (err) {
Expand Down
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"example:build:prod": "yarn example:build --no-progress --base-href \"/platform/example-app/\"",
"ci": "yarn run test && nyc report --reporter=text-lcov | coveralls",
"prettier": "prettier --write \"**/*.ts\"",
"postinstall": "opencollective postinstall && ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points",
"postinstall": "opencollective postinstall && ngcc --properties es2015 browser module main",
"prepublish": "ngc -p angular-metadata.tsconfig.json",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"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",
Expand Down Expand Up @@ -96,19 +96,19 @@
]
},
"dependencies": {
"@angular/animations": "11.2.0",
"@angular/animations": "11.2.11",
"@angular/cdk": "^11.2.0",
"@angular/common": "11.2.0",
"@angular/compiler": "11.2.0",
"@angular/core": "11.2.0",
"@angular/forms": "11.2.0",
"@angular/common": "11.2.11",
"@angular/compiler": "11.2.11",
"@angular/core": "11.2.11",
"@angular/forms": "11.2.11",
"@angular/material": "^11.2.0",
"@angular/platform-browser": "11.2.0",
"@angular/platform-browser-dynamic": "11.2.0",
"@angular/platform-browser": "11.2.11",
"@angular/platform-browser-dynamic": "11.2.11",
"@angular/platform-server": "^11.2.0",
"@angular/router": "11.2.0",
"@angular/router": "11.2.11",
"@applitools/eyes-cypress": "^3.4.12",
"@nrwl/angular": "11.2.12",
"@nrwl/angular": "12.0.8",
"core-js": "^2.5.4",
"hammerjs": "^2.0.8",
"opencollective": "^1.0.3",
Expand All @@ -117,25 +117,25 @@
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "0.1100.7",
"@angular-devkit/build-angular": "0.1102.10",
"@angular/bazel": "^11.0.2",
"@angular/cli": "11.0.7",
"@angular/compiler-cli": "11.2.0",
"@angular/cli": "11.2.10",
"@angular/compiler-cli": "11.2.11",
"@babel/core": "7.9.0",
"@bazel/bazelisk": "1.4.0",
"@bazel/buildifier": "^2.2.1",
"@bazel/ibazel": "0.12.4",
"@bazel/jasmine": "1.6.0",
"@bazel/typescript": "1.6.0",
"@cypress/webpack-preprocessor": "^4.0.3",
"@nrwl/cli": "11.2.12",
"@nrwl/cypress": "11.2.12",
"@nrwl/jest": "11.2.12",
"@nrwl/node": "11.2.12",
"@nrwl/nx-cloud": "^9.3.5",
"@nrwl/nx-plugin": "11.2.12",
"@nrwl/tao": "11.2.12",
"@nrwl/workspace": "11.2.12",
"@nrwl/cli": "12.0.8",
"@nrwl/cypress": "12.0.8",
"@nrwl/jest": "12.0.8",
"@nrwl/node": "12.0.8",
"@nrwl/nx-cloud": "11.2.0",
"@nrwl/nx-plugin": "12.0.8",
"@nrwl/tao": "12.0.8",
"@nrwl/workspace": "12.0.8",
"@octokit/rest": "^15.17.0",
"@testing-library/cypress": "^7.0.1",
"@types/fs-extra": "^2.1.0",
Expand All @@ -146,7 +146,7 @@
"@types/jest": "26.0.8",
"@types/lodash": "^4.14.80",
"@types/ncp": "^2.0.1",
"@types/node": "12.12.38",
"@types/node": "14.14.33",
"@types/ora": "^1.3.1",
"@types/prettier": "^1.19.0",
"@types/rimraf": "^0.0.28",
Expand Down Expand Up @@ -179,7 +179,7 @@
"karma-jasmine-html-reporter": "1.5.4",
"lint-staged": "^8.0.0",
"ncp": "^2.0.0",
"ng-packagr": "^11.2.0",
"ng-packagr": "11.2.4",
"npm-run-all": "^4.1.5",
"nyc": "^10.1.2",
"ora": "^1.3.0",
Expand All @@ -204,7 +204,7 @@
"tsickle": "^0.37.0",
"tslint": "6.1.3",
"tsutils": "2.27.2",
"typescript": "4.0.7",
"typescript": "4.1.4",
"uglify-js": "^3.1.9"
},
"collective": {
Expand Down
Loading

0 comments on commit cb258cb

Please sign in to comment.