Skip to content

Latest commit

 

History

History
87 lines (64 loc) · 3.37 KB

File metadata and controls

87 lines (64 loc) · 3.37 KB

OpenUPM Dependency Resolver

GitHub release openupm semantic-release: angular License: MIT

This package adds support for resolving packages hosted on OpenUPM as package dependencies. Inspired by mob-sakai's Git Dependency Resolver For Unity.

Usage

Package User

  1. Install OpenUPM CLI if you have not already
  2. Install this package (see 🪛 Installation)

Package Developer

{
  ...
  "openUpmDependencies": {
    "your.package": "1.0.0",
    ...
  }
}
  • You must use openUpmDependencies instead of dependencies to define OpenUPM-based dependencies for the package.
  • Package users must install com.nmacadam.openupm-dependency-resolver.
  • Optionally specify a which package version to retrieve from OpenUPM
    • You may use the version string default to download the latest version (though this is not recommended)

🪛 Installation

Install OpenUPM CLI if you have not already.

Install with OpenUPM via CLI or scoped registry (recommended)

 ✨ To add a package via openupm-cli, run the following command:

openupm install com.nmacadam.openupm-dependency-resolver


 🗃️ To add a package via scoped registry:

  • Open Edit/Project Settings/Package Manager
  • Add a new Scoped Registry:
    Name: OpenUPM
    URL:  https://package.openupm.com/
    Scope(s): com.nmacadam
    
  • Open Window/Package Manager
  • Click +
  • Add from Git URL
  • com.nmacadam.openupm-dependency-resolver Add
Install with Git URL
  • Open Window/Package Manager
  • Click +
  • Add from Git URL
  • https://github.com/nmacadam/com.nmacadam.openupm-dependency-resolver.git Add

 Note that you won't be able to receive updates through Package Manager this way, you'll have to update manually.

Install manually
  • Download the upm branch of this repository as a .zip file and extract it
  • Open Window/Package Manager
  • Click +
  • Add package from disk
  • Select package.json in the extracted folder

 Note that you won't be able to receive updates through Package Manager this way, you'll have to update manually.