Skip to content

Commit

Permalink
add support for build-angular ~0.803.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flakolefluk committed Aug 29, 2019
1 parent 99a439e commit 9703207
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


## 0.0.5
* added support for build-angular ~0.803.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/ng-add-setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}

Expand Down

0 comments on commit 9703207

Please sign in to comment.