From 9703207075c474b9909998750b64426d202ff5c7 Mon Sep 17 00:00:00 2001 From: Ignacio Falk Date: Thu, 29 Aug 2019 02:47:02 -0400 Subject: [PATCH] add support for build-angular ~0.803.0 --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/ng-add-setup/index.ts | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..57cd81f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ + + +## 0.0.5 +* added support for build-angular ~0.803.0 \ No newline at end of file diff --git a/package.json b/package.json index d93de33..2e92629 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@flakolefluk/tailwind-schematics", - "version": "0.0.4", + "version": "0.0.5", "description": "TailwindCSS schematics for angular", "scripts": { "build": "tsc -p tsconfig.json", diff --git a/src/ng-add-setup/index.ts b/src/ng-add-setup/index.ts index fa57bdf..e2013c9 100644 --- a/src/ng-add-setup/index.ts +++ b/src/ng-add-setup/index.ts @@ -82,6 +82,10 @@ function updatePackageJson(pkgJson: PackageJson): Rule { builderVersion.indexOf('.') + 1, builderVersion.lastIndexOf('.'), ); + + if(parseInt(partialVersion, 10)>=802){ + customBuilderVersion = '~8.2.0' + } else customBuilderVersion = `~${partialVersion[0]}.${partialVersion[2]}.0`; }