A tool for managing Unity projects with multiple UnityPackageManager packages.
Splitting up large codebases into separate independently versioned packages is extremely useful for code sharing. However, making changes across many repositories is messy and difficult to track, and testing across repositories gets complicated really fast.
NPM Publisher Suport is a tool that optimizes the workflow around managing multi-package repositories.
- Publish Npm packages to your registry directly from the Unity
- Track available updates for package dependencies:
- From Npm registry
- From Local project (it’s convenient if several packages are located in one project)
- Increment packages version from UnityEditor
- Patch Dependent option allow to automatically patch dependant packages version (If there are several packages in the project that depend on the current one)
There's actually very little to it. You have a file structure that looks like this:
Assets/
Package-A/
Sources/
Runtime/
package.json
README.md
LICENSE.md
Package-B/
Sources/
Runtime/
Editor/
package.json
README.md
LICENSE.md
Npm package is available at npmjs.com. To use it, add the following line to dependencies section of your manifest.json
. Unity should download and link the package automatically:
{
"scopedRegistries": [
{
"name": "CodeWriter",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.codewriter"
]
}
],
"dependencies": {
"com.codewriter.npm-publisher-support": "0.5.6"
}
}
Using NPM Publisher Support? Add a README badge to show it off:
[](https://github.com/vanifatovvlad/NpmPublisherSupport)