| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,64 @@ | |||
| 1 | + <a name="1.0.0-beta.21"></a> | ||
| 2 | + # [1.0.0-beta.21](https://github.com/angular/angular-cli/compare/v1.0.0-beta.20-1...v1.0.0-beta.21) (2016-11-23) | ||
| 3 | + | ||
| 4 | + | ||
| 5 | + ### Bug Fixes | ||
| 6 | + | ||
| 7 | + * **angular-cli:** add necessary dependencies. ([#3152](https://github.com/angular/angular-cli/issues/3152)) ([8f574e4](https://github.com/angular/angular-cli/commit/8f574e4)), closes [#3148](https://github.com/angular/angular-cli/issues/3148) | ||
| 8 | + * **angular-cli:** add necessary dependency. ([f7704b0](https://github.com/angular/angular-cli/commit/f7704b0)) | ||
| 9 | + * **angular-cli:** change version of webpack plugin. ([07e96ea](https://github.com/angular/angular-cli/commit/07e96ea)) | ||
| 10 | + * **aot:** lock the angular version to 2.2.1. ([#3242](https://github.com/angular/angular-cli/issues/3242)) ([6e8a848](https://github.com/angular/angular-cli/commit/6e8a848)) | ||
| 11 | + * **editorconfig:** use off instead of 0 for max line length ([#3186](https://github.com/angular/angular-cli/issues/3186)) ([f833d25](https://github.com/angular/angular-cli/commit/f833d25)) | ||
| 12 | + * **generate:** revert change to component dir in generate module, as it caused component declaration to go to parent module ([#3158](https://github.com/angular/angular-cli/issues/3158)) ([71bf855](https://github.com/angular/angular-cli/commit/71bf855)) | ||
| 13 | + * **github-pages-deploy:** Show more accurate url ([#3160](https://github.com/angular/angular-cli/issues/3160)) ([a431389](https://github.com/angular/angular-cli/commit/a431389)) | ||
| 14 | + | ||
| 15 | + | ||
| 16 | + ### Features | ||
| 17 | + | ||
| 18 | + * **build:** add sourcemap option ([#3113](https://github.com/angular/angular-cli/issues/3113)) ([6f9d2c1](https://github.com/angular/angular-cli/commit/6f9d2c1)) | ||
| 19 | + | ||
| 20 | + | ||
| 21 | + | ||
| 22 | + <a name="1.0.0-beta.20"></a> | ||
| 23 | + # [1.0.0-beta.20](https://github.com/angular/angular-cli/compare/v1.0.0-beta.19...v1.0.0-beta.20-1) (2016-11-16) | ||
| 24 | + | ||
| 25 | + | ||
| 26 | + ### Bug Fixes | ||
| 27 | + | ||
| 28 | + * **@ngtools/webpack:** fixed relative path for AoT. ([#3114](https://github.com/angular/angular-cli/issues/3114)) ([27a034d](https://github.com/angular/angular-cli/commit/27a034d)) | ||
| 29 | + * **aot:** exclude spec files from aot ([#2758](https://github.com/angular/angular-cli/issues/2758)) ([215e555](https://github.com/angular/angular-cli/commit/215e555)) | ||
| 30 | + * **aot:** output the sources in the sourcemap. ([#3107](https://github.com/angular/angular-cli/issues/3107)) ([7127dba](https://github.com/angular/angular-cli/commit/7127dba)) | ||
| 31 | + * **aot:** remove the genDir plugin option. ([0e91dfe](https://github.com/angular/angular-cli/commit/0e91dfe)), closes [#2849](https://github.com/angular/angular-cli/issues/2849) [#2876](https://github.com/angular/angular-cli/issues/2876) | ||
| 32 | + * **aot:** Use the proper path when statically analyzing lazy routes. ([#2992](https://github.com/angular/angular-cli/issues/2992)) ([88131a0](https://github.com/angular/angular-cli/commit/88131a0)), closes [#2452](https://github.com/angular/angular-cli/issues/2452) [#2735](https://github.com/angular/angular-cli/issues/2735) [#2900](https://github.com/angular/angular-cli/issues/2900) | ||
| 33 | + * **build:** correct forkChecker option for ATS. ([#3011](https://github.com/angular/angular-cli/issues/3011)) ([a987cf5](https://github.com/angular/angular-cli/commit/a987cf5)) | ||
| 34 | + * **build:** enable chunkhash in inline.js ([30cc482](https://github.com/angular/angular-cli/commit/30cc482)), closes [#2899](https://github.com/angular/angular-cli/issues/2899) | ||
| 35 | + * **build:** show full error stats ([#2879](https://github.com/angular/angular-cli/issues/2879)) ([d59fa1f](https://github.com/angular/angular-cli/commit/d59fa1f)) | ||
| 36 | + * **deps:** explicitely add portfinder ([#2831](https://github.com/angular/angular-cli/issues/2831)) ([2d8f162](https://github.com/angular/angular-cli/commit/2d8f162)), closes [#2755](https://github.com/angular/angular-cli/issues/2755) [#2769](https://github.com/angular/angular-cli/issues/2769) | ||
| 37 | + * **e2e:** fix broken test pipeline ([#2999](https://github.com/angular/angular-cli/issues/2999)) ([37a1225](https://github.com/angular/angular-cli/commit/37a1225)) | ||
| 38 | + * **generate:** fix module component path if module is created in child folder ([#3066](https://github.com/angular/angular-cli/issues/3066)) ([38d5f2c](https://github.com/angular/angular-cli/commit/38d5f2c)), closes [#3063](https://github.com/angular/angular-cli/issues/3063) | ||
| 39 | + * **generate:** stop default browser error from ng new --routing ([a45a1f2](https://github.com/angular/angular-cli/commit/a45a1f2)), closes [#2794](https://github.com/angular/angular-cli/issues/2794) | ||
| 40 | + * **package:** add some more metadata to webpack package.json ([c2dbf88](https://github.com/angular/angular-cli/commit/c2dbf88)), closes [#2854](https://github.com/angular/angular-cli/issues/2854) | ||
| 41 | + * **serve:** added accept html headers option to webpack-dev-server ([#2990](https://github.com/angular/angular-cli/issues/2990)) ([86f2a1b](https://github.com/angular/angular-cli/commit/86f2a1b)), closes [#2989](https://github.com/angular/angular-cli/issues/2989) | ||
| 42 | + * **test:** catches module loading errors ([f09439c](https://github.com/angular/angular-cli/commit/f09439c)), closes [#2640](https://github.com/angular/angular-cli/issues/2640) [#2785](https://github.com/angular/angular-cli/issues/2785) | ||
| 43 | + * **version:** update version of [@angular](https://github.com/angular) packages. ([#3145](https://github.com/angular/angular-cli/issues/3145)) ([a2f0a1a](https://github.com/angular/angular-cli/commit/a2f0a1a)) | ||
| 44 | + * bypass Watchman check ([#2846](https://github.com/angular/angular-cli/issues/2846)) ([9aa1099](https://github.com/angular/angular-cli/commit/9aa1099)), closes [#2791](https://github.com/angular/angular-cli/issues/2791) | ||
| 45 | + | ||
| 46 | + | ||
| 47 | + ### Features | ||
| 48 | + | ||
| 49 | + * **build:** add loaders for fonts ([3497373](https://github.com/angular/angular-cli/commit/3497373)), closes [#1765](https://github.com/angular/angular-cli/issues/1765) | ||
| 50 | + * **build:** use appConfig.index to set output index file ([d3fd8b0](https://github.com/angular/angular-cli/commit/d3fd8b0)), closes [#2241](https://github.com/angular/angular-cli/issues/2241) [#2767](https://github.com/angular/angular-cli/issues/2767) | ||
| 51 | + * **build:** use static files for css ([a6415cc](https://github.com/angular/angular-cli/commit/a6415cc)), closes [#2148](https://github.com/angular/angular-cli/issues/2148) [#2020](https://github.com/angular/angular-cli/issues/2020) [#2826](https://github.com/angular/angular-cli/issues/2826) [#2646](https://github.com/angular/angular-cli/issues/2646) | ||
| 52 | + * **serve:** allow CORS access while running ng serve ([#2872](https://github.com/angular/angular-cli/issues/2872)) ([#3009](https://github.com/angular/angular-cli/issues/3009)) ([7c834a8](https://github.com/angular/angular-cli/commit/7c834a8)) | ||
| 53 | + | ||
| 54 | + | ||
| 55 | + ### BREAKING CHANGES | ||
| 56 | + | ||
| 57 | + * aot: Using relative paths might lead to path clashing. We | ||
| 58 | + now properly output an error in this case. | ||
| 59 | + | ||
| 60 | + | ||
| 61 | + | ||
| 1 | 62 | <a name="1.0.0-beta.19"></a> | |
| 2 | 63 | # [1.0.0-beta.19](https://github.com/angular/angular-cli/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2016-10-28) | |
| 3 | 64 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -373,7 +373,7 @@ Some javascript libraries need to be added to the global scope, and loaded as if | |||
| 373 | 373 | they were in a script tag. We can do this using the `apps[0].scripts` and | |
| 374 | 374 | `apps[0].styles` properties of `angular-cli.json`. | |
| 375 | 375 | ||
| 376 | - As an example, to use [Boostrap 4](http://v4-alpha.getbootstrap.com/) this is | ||
| 376 | + As an example, to use [Bootstrap 4](http://v4-alpha.getbootstrap.com/) this is | ||
| 377 | 377 | what you need to do: | |
| 378 | 378 | ||
| 379 | 379 | First install Bootstrap from `npm`: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | { | |
| 2 | 2 | "name": "angular-cli", | |
| 3 | - "version": "1.0.0-beta.19-3", | ||
| 3 | + "version": "1.0.0-beta.21", | ||
| 4 | 4 | "description": "CLI tool for Angular", | |
| 5 | 5 | "main": "packages/angular-cli/lib/cli/index.js", | |
| 6 | 6 | "trackingCode": "UA-8594346-19", | |
@@ -34,10 +34,6 @@ | |||
| 34 | 34 | "npm": ">= 3.0.0" | |
| 35 | 35 | }, | |
| 36 | 36 | "author": "Angular Authors", | |
| 37 | - "contributors": [ | ||
| 38 | - "Rody Haddad <npm@rodyhaddad.com> (http://rodyhaddad.com/)", | ||
| 39 | - "Igor Minar <igor@angularjs.org>" | ||
| 40 | - ], | ||
| 41 | 37 | "license": "MIT", | |
| 42 | 38 | "bugs": { | |
| 43 | 39 | "url": "https://github.com/angular/angular-cli/issues" | |
@@ -46,15 +42,15 @@ | |||
| 46 | 42 | "dependencies": { | |
| 47 | 43 | "@angular-cli/ast-tools": "^1.0.0", | |
| 48 | 44 | "@angular/common": "~2.1.0", | |
| 49 | - "@angular/compiler": "~2.1.0", | ||
| 50 | - "@angular/compiler-cli": "~2.1.0", | ||
| 51 | - "@angular/core": "~2.1.0", | ||
| 45 | + "@angular/compiler": "2.2.1", | ||
| 46 | + "@angular/compiler-cli": "2.2.1", | ||
| 47 | + "@angular/core": "2.2.1", | ||
| 48 | + "@angular/tsc-wrapped": "0.4.0", | ||
| 52 | 49 | "@angular/platform-browser": "~2.1.0", | |
| 53 | 50 | "@angular/platform-server": "~2.1.0", | |
| 54 | - "@angular/tsc-wrapped": "^0.3.0", | ||
| 55 | 51 | "@angularclass/hmr-loader": "3.0.2", | |
| 56 | 52 | "angular2-template-loader": "^0.5.0", | |
| 57 | - "awesome-typescript-loader": "^2.2.3", | ||
| 53 | + "autoprefixer": "^6.5.3", | ||
| 58 | 54 | "chalk": "^1.1.3", | |
| 59 | 55 | "common-tags": "^1.3.1", | |
| 60 | 56 | "compression-webpack-plugin": "^0.3.2", | |
@@ -67,6 +63,7 @@ | |||
| 67 | 63 | "ember-cli-normalize-entity-name": "^1.0.0", | |
| 68 | 64 | "ember-cli-preprocess-registry": "^2.0.0", | |
| 69 | 65 | "ember-cli-string-utils": "^1.0.0", | |
| 66 | + "enhanced-resolve": "^2.3.0", | ||
| 70 | 67 | "exists-sync": "0.0.3", | |
| 71 | 68 | "extract-text-webpack-plugin": "^2.0.0-beta.4", | |
| 72 | 69 | "file-loader": "^0.8.5", | |
@@ -88,13 +85,13 @@ | |||
| 88 | 85 | "less": "^2.7.1", | |
| 89 | 86 | "less-loader": "^2.2.3", | |
| 90 | 87 | "lodash": "^4.11.1", | |
| 88 | + "magic-string": "^0.16.0", | ||
| 91 | 89 | "markdown-it": "4.3.0", | |
| 92 | 90 | "markdown-it-terminal": "0.0.3", | |
| 93 | 91 | "minimatch": "^3.0.0", | |
| 94 | 92 | "mkdirp": "^0.5.1", | |
| 95 | 93 | "node-modules-path": "^1.0.0", | |
| 96 | 94 | "node-sass": "^3.10.1", | |
| 97 | - "node-uuid": "^1.4.3", | ||
| 98 | 95 | "nopt": "^3.0.1", | |
| 99 | 96 | "npm-run-all": "^3.0.0", | |
| 100 | 97 | "offline-plugin": "^3.4.1", | |
@@ -108,6 +105,7 @@ | |||
| 108 | 105 | "quick-temp": "0.1.5", | |
| 109 | 106 | "raw-loader": "^0.5.1", | |
| 110 | 107 | "readline2": "0.1.1", | |
| 108 | + "reflect-metadata": "^0.1.8", | ||
| 111 | 109 | "remap-istanbul": "^0.6.4", | |
| 112 | 110 | "resolve": "^1.1.7", | |
| 113 | 111 | "rimraf": "^2.5.3", | |
@@ -118,6 +116,7 @@ | |||
| 118 | 116 | "semver": "^5.1.0", | |
| 119 | 117 | "silent-error": "^1.0.0", | |
| 120 | 118 | "sniffr": "1.1.4", | |
| 119 | + "source-map": "^0.5.6", | ||
| 121 | 120 | "source-map-loader": "^0.1.5", | |
| 122 | 121 | "sourcemap-istanbul-instrumenter-loader": "^0.2.0", | |
| 123 | 122 | "string-replace-loader": "^1.0.5", | |
@@ -132,6 +131,7 @@ | |||
| 132 | 131 | "tslint-loader": "^2.1.4", | |
| 133 | 132 | "typescript": "~2.0.3", | |
| 134 | 133 | "url-loader": "^0.5.7", | |
| 134 | + "uuid": "^3.0.0", | ||
| 135 | 135 | "walk-sync": "^0.2.6", | |
| 136 | 136 | "webpack": "2.1.0-beta.25", | |
| 137 | 137 | "webpack-dev-server": "2.1.0-beta.9", | |
@@ -159,6 +159,7 @@ | |||
| 159 | 159 | "@types/node": "^6.0.36", | |
| 160 | 160 | "@types/request": "0.0.30", | |
| 161 | 161 | "@types/rimraf": "0.0.25-alpha", | |
| 162 | + "@types/source-map": "^0.5.0", | ||
| 162 | 163 | "@types/webpack": "^1.12.22-alpha", | |
| 163 | 164 | "chai": "^3.5.0", | |
| 164 | 165 | "conventional-changelog": "^1.1.0", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,14 +18,17 @@ module.exports = { | |||
| 18 | 18 | { name: 'prefix', type: Boolean, default: true }, | |
| 19 | 19 | { name: 'spec', type: Boolean }, | |
| 20 | 20 | { name: 'view-encapsulation', type: String, aliases: ['ve'] }, | |
| 21 | - { name: 'change-detection', type: String, aliases: ['cd'] } | ||
| 21 | + { name: 'change-detection', type: String, aliases: ['cd'] }, | ||
| 22 | + { name: 'skip-import', type: Boolean, default: false } | ||
| 22 | 23 | ], | |
| 23 | 24 | ||
| 24 | - beforeInstall: function() { | ||
| 25 | + beforeInstall: function(options) { | ||
| 25 | 26 | try { | |
| 26 | 27 | this.pathToModule = findParentModule(this.project, this.dynamicPath.dir); | |
| 27 | 28 | } catch(e) { | |
| 28 | - throw `Error locating module for declaration\n\t${e}`; | ||
| 29 | + if (!options.skipImport) { | ||
| 30 | + throw `Error locating module for declaration\n\t${e}`; | ||
| 31 | + } | ||
| 29 | 32 | } | |
| 30 | 33 | }, | |
| 31 | 34 | ||
@@ -139,7 +142,7 @@ module.exports = { | |||
| 139 | 142 | const componentDir = path.relative(path.dirname(this.pathToModule), this.generatePath); | |
| 140 | 143 | const importPath = componentDir ? `./${componentDir}/${fileName}` : `./${fileName}`; | |
| 141 | 144 | ||
| 142 | - if (!options['skip-import']) { | ||
| 145 | + if (!options.skipImport) { | ||
| 143 | 146 | returns.push( | |
| 144 | 147 | astUtils.addDeclarationToModule(this.pathToModule, className, importPath) | |
| 145 | 148 | .then(change => change.apply(NodeHost))); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,14 +13,17 @@ module.exports = { | |||
| 13 | 13 | availableOptions: [ | |
| 14 | 14 | { name: 'flat', type: Boolean, default: true }, | |
| 15 | 15 | { name: 'prefix', type: Boolean, default: true }, | |
| 16 | - { name: 'spec', type: Boolean } | ||
| 16 | + { name: 'spec', type: Boolean }, | ||
| 17 | + { name: 'skip-import', type: Boolean, default: false } | ||
| 17 | 18 | ], | |
| 18 | 19 | ||
| 19 | - beforeInstall: function() { | ||
| 20 | + beforeInstall: function(options) { | ||
| 20 | 21 | try { | |
| 21 | 22 | this.pathToModule = findParentModule(this.project, this.dynamicPath.dir); | |
| 22 | 23 | } catch(e) { | |
| 23 | - throw `Error locating module for declaration\n\t${e}`; | ||
| 24 | + if (!options.skipImport) { | ||
| 25 | + throw `Error locating module for declaration\n\t${e}`; | ||
| 26 | + } | ||
| 24 | 27 | } | |
| 25 | 28 | }, | |
| 26 | 29 | ||
@@ -90,7 +93,7 @@ module.exports = { | |||
| 90 | 93 | const relativeDir = path.relative(moduleDir, fullGeneratePath); | |
| 91 | 94 | const importPath = relativeDir ? `./${relativeDir}/${fileName}` : `./${fileName}`; | |
| 92 | 95 | ||
| 93 | - if (!options['skip-import']) { | ||
| 96 | + if (!options.skipImport) { | ||
| 94 | 97 | returns.push( | |
| 95 | 98 | astUtils.addDeclarationToModule(this.pathToModule, className, importPath) | |
| 96 | 99 | .then(change => change.apply(NodeHost))); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,8 +58,12 @@ module.exports = { | |||
| 58 | 58 | }, | |
| 59 | 59 | ||
| 60 | 60 | afterInstall: function (options) { | |
| 61 | - options.entity.name = path.relative(this.dynamicPath.appRoot, this.generatePath); | ||
| 62 | - options.flat = false; | ||
| 61 | + // Note that `this.generatePath` already contains `this.dasherizedModuleName` | ||
| 62 | + // So, the path will end like `name/name`, | ||
| 63 | + // which is correct for `name.component.ts` created in module `name` | ||
| 64 | + var componentPath = path.join(this.generatePath, this.dasherizedModuleName); | ||
| 65 | + options.entity.name = path.relative(this.dynamicPath.appRoot, componentPath); | ||
| 66 | + options.flat = true; | ||
| 63 | 67 | options.route = false; | |
| 64 | 68 | options.inlineTemplate = false; | |
| 65 | 69 | options.inlineStyle = false; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,5 +9,5 @@ insert_final_newline = true | |||
| 9 | 9 | trim_trailing_whitespace = true | |
| 10 | 10 | ||
| 11 | 11 | [*.md] | |
| 12 | - max_line_length = 0 | ||
| 12 | + max_line_length = off | ||
| 13 | 13 | trim_trailing_whitespace = false | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,32 +12,33 @@ | |||
| 12 | 12 | }, | |
| 13 | 13 | "private": true, | |
| 14 | 14 | "dependencies": { | |
| 15 | - "@angular/common": "~2.1.0", | ||
| 16 | - "@angular/compiler": "~2.1.0", | ||
| 17 | - "@angular/core": "~2.1.0", | ||
| 18 | - "@angular/forms": "~2.1.0", | ||
| 19 | - "@angular/http": "~2.1.0", | ||
| 20 | - "@angular/platform-browser": "~2.1.0", | ||
| 21 | - "@angular/platform-browser-dynamic": "~2.1.0", | ||
| 22 | - "@angular/router": "~3.1.0", | ||
| 15 | + "@angular/common": "2.2.1", | ||
| 16 | + "@angular/compiler": "2.2.1", | ||
| 17 | + "@angular/core": "2.2.1", | ||
| 18 | + "@angular/forms": "2.2.1", | ||
| 19 | + "@angular/http": "2.2.1", | ||
| 20 | + "@angular/platform-browser": "2.2.1", | ||
| 21 | + "@angular/platform-browser-dynamic": "2.2.1", | ||
| 22 | + "@angular/router": "3.2.1", | ||
| 23 | 23 | "core-js": "^2.4.1", | |
| 24 | 24 | "rxjs": "5.0.0-beta.12", | |
| 25 | 25 | "ts-helpers": "^1.1.1", | |
| 26 | 26 | "zone.js": "^0.6.23" | |
| 27 | 27 | }, | |
| 28 | 28 | "devDependencies": {<% if(isMobile) { %> | |
| 29 | - "@angular/platform-server": "~2.1.0", | ||
| 29 | + "@angular/platform-server": "2.2.1", | ||
| 30 | 30 | "@angular/service-worker": "0.2.0", | |
| 31 | 31 | "@angular/app-shell": "0.0.0", | |
| 32 | 32 | "angular2-universal":"0.104.5", | |
| 33 | 33 | "angular2-universal-polyfills": "0.4.1", | |
| 34 | 34 | "preboot": "2.1.2", | |
| 35 | 35 | "parse5": "1.5.1",<% } %> | |
| 36 | - "@types/jasmine": "^2.2.30", | ||
| 36 | + "@angular/compiler-cli": "2.2.1", | ||
| 37 | + "@types/jasmine": "2.5.38", | ||
| 37 | 38 | "@types/node": "^6.0.42", | |
| 38 | 39 | "angular-cli": "<%= version %>", | |
| 39 | 40 | "codelyzer": "~1.0.0-beta.3", | |
| 40 | - "jasmine-core": "2.4.1", | ||
| 41 | + "jasmine-core": "2.5.2", | ||
| 41 | 42 | "jasmine-spec-reporter": "2.5.0", | |
| 42 | 43 | "karma": "1.2.0", | |
| 43 | 44 | "karma-chrome-launcher": "^2.0.0", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,14 +12,17 @@ module.exports = { | |||
| 12 | 12 | ||
| 13 | 13 | availableOptions: [ | |
| 14 | 14 | { name: 'flat', type: Boolean, default: true }, | |
| 15 | - { name: 'spec', type: Boolean } | ||
| 15 | + { name: 'spec', type: Boolean }, | ||
| 16 | + { name: 'skip-import', type: Boolean, default: false } | ||
| 16 | 17 | ], | |
| 17 | 18 | ||
| 18 | - beforeInstall: function() { | ||
| 19 | + beforeInstall: function(options) { | ||
| 19 | 20 | try { | |
| 20 | 21 | this.pathToModule = findParentModule(this.project, this.dynamicPath.dir); | |
| 21 | 22 | } catch(e) { | |
| 22 | - throw `Error locating module for declaration\n\t${e}`; | ||
| 23 | + if (!options.skipImport) { | ||
| 24 | + throw `Error locating module for declaration\n\t${e}`; | ||
| 25 | + } | ||
| 23 | 26 | } | |
| 24 | 27 | }, | |
| 25 | 28 | ||
@@ -78,7 +81,7 @@ module.exports = { | |||
| 78 | 81 | const relativeDir = path.relative(moduleDir, fullGeneratePath); | |
| 79 | 82 | const importPath = relativeDir ? `./${relativeDir}/${fileName}` : `./${fileName}`; | |
| 80 | 83 | ||
| 81 | - if (!options['skip-import']) { | ||
| 84 | + if (!options.skipImport) { | ||
| 82 | 85 | returns.push( | |
| 83 | 86 | astUtils.addDeclarationToModule(this.pathToModule, className, importPath) | |
| 84 | 87 | .then(change => change.apply(NodeHost))); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments