MCPcopy
hub / github.com/meteor/meteor / getSourceRoot

Method getSourceRoot

tools/isobuild/compiler-plugin.js:266–281  ·  view source on GitHub ↗
(tolerant = false)

Source from the content-addressed store, hash-verified

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;

Callers 3

findControlFileMethod · 0.95
resolveMethod · 0.95
runCompilerPluginsMethod · 0.45

Calls 1

getPackageNameMethod · 0.95

Tested by

no test coverage detected