Skip to content

Commit

Permalink
chore: support for angular@6
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Mar 2, 2018
1 parent 436ea38 commit 50fa2d6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "codelyzer",
"version": "4.1.0",
"version": "4.2.0",
"description": "Linting for Angular applications, following angular.io/styleguide.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -75,11 +75,11 @@
"@types/js-yaml": "^3.5.31"
},
"peerDependencies": {
"@angular/compiler": "^2.3.1 || >=4.0.0-beta <6.0.0",
"@angular/core": "^2.3.1 || >=4.0.0-beta <6.0.0",
"@angular/platform-browser-dynamic": "^2.3.1 || >=4.0.0-beta <6.0.0",
"@angular/platform-browser": "^2.3.1 || >=4.0.0-beta <6.0.0",
"@angular/common": "^2.3.1 || >=4.0.0-beta <6.0.0",
"@angular/compiler": "^2.3.1 || >=4.0.0-beta <7.0.0",
"@angular/core": "^2.3.1 || >=4.0.0-beta <7.0.0",
"@angular/platform-browser-dynamic": "^2.3.1 || >=4.0.0-beta <7.0.0",
"@angular/platform-browser": "^2.3.1 || >=4.0.0-beta <7.0.0",
"@angular/common": "^2.3.1 || >=4.0.0-beta <7.0.0",
"tslint": "^5.0.0"
},
"dependencies": {
Expand All @@ -90,4 +90,4 @@
"source-map": "^0.5.6",
"sprintf-js": "^1.0.3"
}
}
}
3 changes: 2 additions & 1 deletion src/angular/templates/jitReflector.ts
Expand Up @@ -52,6 +52,7 @@ export const MODULE_SUFFIX = '';
const builtinExternalReferences = createBuiltinExternalReferencesMap();

export class JitReflector implements CompileReflector {
tryAnnotations: any;
private reflectionCapabilities: ReflectionCapabilities;
private builtinExternalReferences = new Map<ExternalReference, any>();

Expand All @@ -72,7 +73,7 @@ export class JitReflector implements CompileReflector {
} else if (moduleId !== null && moduleId !== void 0) {
throw syntaxError(
`moduleId should be a string in "${stringify(type)}". See https://goo.gl/wIDDiL for more information.\n` +
`If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.`
`If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.`
);
}

Expand Down

0 comments on commit 50fa2d6

Please sign in to comment.