Different sources for composer package

I need to use different sources for local environment and any other (CI/Staging/Test/Production/e.t.c.).

My composer.json looks next way:

{
    "name": "laravel/laravel",
    "type": "project",
    "license": "proprietary",
    "require": {
        ...
        "my/package": "^2|@dev"
    },
    "config": {
        "preferred-install": {
            "my/package": "source",
            "*": "dist"
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": false,
    "repositories": [
        {
            "type": "path",
            "url": "../path/to/package/in/local/environment",
            "options": {
                "symlink": true
            }
        },
        {
            "type": "composer",
            "url": "https://private.registry.of/my/package"
        }
    ]
}

In local environment it works, but when I execute composer install at production it throws:
Source path "../path/to/package/in/local/environment" is not found for package my/package. Which is understandable, but I can’t understand why it doesn’t try to get package from registry.