(tolerant = false)
| 264 | } |
| 265 | |
| 266 | getSourceRoot(tolerant = false) { |
| 267 | const sourceRoot = this._resourceSlot.packageSourceBatch.sourceRoot; |
| 268 | |
| 269 | if (_.isString(sourceRoot)) { |
| 270 | return sourceRoot; |
| 271 | } |
| 272 | |
| 273 | if (! tolerant) { |
| 274 | const name = this.getPackageName(); |
| 275 | throw new Error( |
| 276 | "Unknown source root for " + ( |
| 277 | name ? "package " + name : "app")); |
| 278 | } |
| 279 | |
| 280 | return null; |
| 281 | } |
| 282 | |
| 283 | getPathInPackage() { |
| 284 | var self = this; |
no test coverage detected