From a1c93a8f2be6dcf3cb8c2b4d14501aacbd9c6570 Mon Sep 17 00:00:00 2001 From: Chihab Date: Sat, 27 Nov 2021 12:54:43 +0100 Subject: [PATCH] chore: update peerDeps add compatibilty matrix --- README.md | 9 +++++++-- packages/builder/package.json | 3 +++ packages/core/package.json | 4 ++-- yarn.lock | 8 ++++---- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 318d49c..437936a 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,13 @@ NG_APP_BRANCH_NAME=$GITHUB_HEAD_REF ng test NG_APP_BRANCH_NAME=`git branch --show-current` npm run build ``` +# Compatiblity ⚠️ + +| Angular | @ngx-env/builder | +| -------- | ---------------- | +| [12, 13] | ^2.0.1 | +| [8, 12[ | ^1.1.0 | + # Using Environment Variables Your project can consume variables declared in your environment as if they were declared locally in your JS files. @@ -222,8 +229,6 @@ NG_APP_BAR=$DOMAIN/bar I wrote an article on [InDepth.dev](https://indepth.dev/tutorials/angular/inject-environment-variables) explaining how it works. -# Contribute - # Credits - [create-react-app](https://github.com/facebook/create-react-app) diff --git a/packages/builder/package.json b/packages/builder/package.json index 1b39131..8eb5d44 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -39,5 +39,8 @@ "devDependencies": { "@angular-devkit/schematics-cli": "^13.0.0", "ts-node": "^10.4.0" + }, + "peerDpendencies": { + "@angular-devkit/schematics-cli": ">=12.0.0" } } diff --git a/packages/core/package.json b/packages/core/package.json index 5f5d43c..f949e8a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -23,8 +23,8 @@ } }, "peerDependencies": { - "@angular/common": "^13.0.0", - "@angular/core": "^13.0.0" + "@angular/common": ">=12.0.0", + "@angular/core": ">=12.0.0" }, "devDependencies": { "ng-packagr": "^13.0.6" diff --git a/yarn.lock b/yarn.lock index 8dd5d50..b759083 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,7 +18,7 @@ "@angular-devkit/core" "13.0.3" rxjs "6.6.7" -"@angular-devkit/build-angular@~13.0.3": +"@angular-devkit/build-angular@~13.0.0": version "13.0.3" resolved "https://registry.yarnpkg.com/@angular-devkit/build-angular/-/build-angular-13.0.3.tgz#763db8882ff86612462a2b6bcdf441ba8e4b29a5" integrity sha512-5KFsknpnq3mc0KwcIDjvmqB3trz5cMt48dB0nrc23zkFI9v4hkpalc/OEg/H3G93K0c9g6dcyxmHkNfsU1+CHw== @@ -110,7 +110,7 @@ rxjs "6.6.7" source-map "0.7.3" -"@angular-devkit/schematics-cli@^13.0.3": +"@angular-devkit/schematics-cli@^13.0.0": version "13.0.3" resolved "https://registry.yarnpkg.com/@angular-devkit/schematics-cli/-/schematics-cli-13.0.3.tgz#ec216398e28ac4c8acf8f4467cd9022d976b2c0e" integrity sha512-iGEA3hEbHcmhAkGmrFXKWDnelzhSSJLaZPHr6SLPpztKEU8OFMZxv8NFATc/IpXknEhX3+Tm5DkrOpSc4rJlhA== @@ -122,7 +122,7 @@ minimist "1.2.5" symbol-observable "4.0.0" -"@angular-devkit/schematics@13.0.3", "@angular-devkit/schematics@^13.0.3": +"@angular-devkit/schematics@13.0.3", "@angular-devkit/schematics@^13.0.0": version "13.0.3" resolved "https://registry.yarnpkg.com/@angular-devkit/schematics/-/schematics-13.0.3.tgz#255895e10c2b025df8ee4ff93428cb2249ae5fc0" integrity sha512-+Va1E0zJBCg5jqSfITusghoMJgPAwlU+WUs49fuGVCzfJPwfSjTKSrsbhanahMd27+Ys3rovGZq0F2JUdL801A== @@ -140,7 +140,7 @@ dependencies: tslib "^2.3.0" -"@angular/cli@~13.0.3": +"@angular/cli@~13.0.0": version "13.0.3" resolved "https://registry.yarnpkg.com/@angular/cli/-/cli-13.0.3.tgz#7d357a80dc612421115b1288291ce6278720d0a4" integrity sha512-LDXDXDbQ1MBHVUstu4aNjFbyg5f9hLP52gEKB8Z6fQlf5CB1X5zD6UPcR4IvoYt03EFxg3DHco+ueJQ20oZUWQ==