src/Framework.php
public function getInstallPath(PackageInterface $package) {

        if ('nbcx/framework' !== $package->getPrettyName()) {
            throw new \InvalidArgumentException('Unable to install this library:'. $package->getPrettyName());
        }

        if ($this->composer->getPackage()->getType() !== 'project') {
            return parent::getInstallPath($package);
        }

        if ($this->composer->getPackage()) {
            $extra = $this->composer->getPackage()->getExtra();
            if (!empty($extra['nb-path'])) {
                return $extra['nb-path'];
            }
        }

        return 'nb';
    }
public function getInstallPath(PackageInterface $package) {

        if ('nbcx/framework' !== $package->getPrettyName()) {
            throw new \InvalidArgumentException('Unable to install this library:'. $package->getPrettyName());
        }

        if ($this->composer->getPackage()->getType() !== 'project') {
            return parent::getInstallPath($package);
        }

        if ($this->composer->getPackage()) {
            $extra = $this->composer->getPackage()->getExtra();
            if (!empty($extra['nb-path'])) {
                return $extra['nb-path'];
            }
        }

        return 'nb';
    }
{@inheritDoc}