angular-cli-ghpages
Advanced tools
Comparing version
@@ -5,3 +5,4 @@ 'use strict'; | ||
fs = require('fs'), | ||
ghpages = require('gh-pages'), | ||
// If we require the gh-pages package on top, then the `ng build` is completely screwed, see below! | ||
// ghpages = require('gh-pages') | ||
denodeify = require('denodeify'); | ||
@@ -58,2 +59,15 @@ | ||
/* | ||
If we require the gh-pages package on top, then the `ng build` is completely screwed: | ||
> can't resolve module @angular/core/src/di/opaque_token from [project-dir]\src\index.ts | ||
> symbol.getDeclarations is not a function | ||
> TypeError: symbol.getDeclarations is not a function | ||
I have no clue why this happens but this late require works around the problem. | ||
This issue started to occur with angular-cli@1.0.0-beta.22-1. | ||
*/ | ||
var ghpages = require('gh-pages'); | ||
var ui = this.ui; | ||
@@ -60,0 +74,0 @@ var root = this.project.root; |
{ | ||
"name": "angular-cli-ghpages", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Angular CLI addon. Publish to any gh-pages branch on GitHub (or any other branch on any other remote).", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -21,3 +21,3 @@ # angular-cli-ghpages | ||
angular-cli-ghpages was sucessfully tested against __`angular-cli: 1.0.0-beta.21`__. | ||
angular-cli-ghpages was sucessfully tested against __`angular-cli@1.0.0-beta.22-1`__. | ||
@@ -24,0 +24,0 @@ |
27242
2.28%119
9.17%