Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get dependencies(): Package[] {
// we can't use this.owningAddon.dependencies because that won't include
// devDeps. We need to construct a new temporary package with the
// mayUseDevDeps flag to true.
let upstream = new Package(this.owningAddon.root, this.packageCache, true).dependencies.slice();
// the dummy app has a dependency on the owning addon
upstream.unshift(this.owningAddon);
return upstream;
}
}
private movedPackage(originalPkg: Package): Package {
let newRoot = this.localPath(originalPkg.root);
return getOrCreate(this.rootCache, newRoot, () => new Package(newRoot, this, false));
}