diff --git a/schematics/scully/package-lock.json b/schematics/scully/package-lock.json index 173bb8a7d..fd5f90b6b 100644 --- a/schematics/scully/package-lock.json +++ b/schematics/scully/package-lock.json @@ -1,6 +1,6 @@ { "name": "@scullyio/init", - "version": "0.0.7", + "version": "0.0.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/schematics/scully/package.json b/schematics/scully/package.json index 3b7f225ec..8225937d5 100644 --- a/schematics/scully/package.json +++ b/schematics/scully/package.json @@ -1,6 +1,6 @@ { "name": "@scullyio/init", - "version": "0.0.7", + "version": "0.0.10", "description": "Add scully to your angular app", "repository": { "type": "GIT", diff --git a/schematics/scully/src/ng-add/index.ts b/schematics/scully/src/ng-add/index.ts index 5f3b43286..5752ed6db 100644 --- a/schematics/scully/src/ng-add/index.ts +++ b/schematics/scully/src/ng-add/index.ts @@ -22,7 +22,7 @@ export default (options: Schema): Rule => { const addDependencies = (options: Schema) => (tree: Tree, context: SchematicContext) => { addPackageToPackageJson(tree, '@scullyio/scully', `${scullyVersion}`); const ngCoreVersionTag = getPackageVersionFromPackageJson(tree, '@angular/core'); - if (+ngCoreVersionTag.search(/(^8|~8)/g) < 0) { + if (+ngCoreVersionTag.search((/(\^8|~8)/g)) === 0) { console.log('⚠ install ng-lib for Angular v8'); addPackageToPackageJson(tree, '@scullyio/ng-lib-8', `${scullyComponentVersion}`); } else {