diff --git a/commands/initial/templates/tasks/build.js b/commands/initial/templates/tasks/build.js index c636f22..08dc150 100644 --- a/commands/initial/templates/tasks/build.js +++ b/commands/initial/templates/tasks/build.js @@ -43,7 +43,7 @@ const getAngularCompilerVersion = () => { if (compilerLine) { version = compilerLine.match(/\bangular\/compiler@[^\s]+\s?/) || ['']; - version = version[0].trim().replace('angular/compiler@', ''); + version = version[0].trim().replace('angular/compiler@', '').replace('^', ''); } if (!version || version === '(empty)') {