Paket packages can now be configured to be installed as UPM packages. This can be useful when your paket package contains an UPM one (with a package.json file), and you want it to be integrated with Unity's packages folder.
This mode sets the installation directory (paketOutputDirectoryName) to the unity project's Packages folder, and ensures that the package.jsonfile for each dependency is in the installed package root.
If an installed package is not UPM-compatible, that is, it doesn't have a package.json file, such file will be created. By default, a package.json is generated with com.wooga.nuget.${paketPackage.toLowerCase()} name, and version 0.0.0, but those can be overridden and more properties can be added on using the mappings in paketUpmPacakgeJson.
UPM mode can be enabled through the paketUpmPackageEnabled property, or using the paketUnity.enablePaketUpmPackages() extension method. It is disabled by default.
Changes
Packages can now be installed in UPM mode in paket-unity plugin
UPM mode in PaketUnityInstall task
paketUpmPackageEnabled and paketUpmPacakgeJson properties to PaketUnityPluginExtension
Description
Paket packages can now be configured to be installed as UPM packages. This can be useful when your paket package contains an UPM one (with a
package.json
file), and you want it to be integrated with Unity's packages folder.This mode sets the installation directory (
paketOutputDirectoryName
) to the unity project'sPackages
folder, and ensures that thepackage.json
file for each dependency is in the installed package root.If an installed package is not UPM-compatible, that is, it doesn't have a
package.json
file, such file will be created. By default, apackage.json
is generated withcom.wooga.nuget.${paketPackage.toLowerCase()}
name, and version0.0.0
, but those can be overridden and more properties can be added on using the mappings inpaketUpmPacakgeJson
.UPM mode can be enabled through the
paketUpmPackageEnabled
property, or using thepaketUnity.enablePaketUpmPackages()
extension method. It is disabled by default.Changes
PaketUnityInstall
taskpaketUpmPackageEnabled
andpaketUpmPacakgeJson
properties toPaketUnityPluginExtension