{"id":18043746,"url":"https://github.com/thundernerd/unity3d-packagemanifesteditor","last_synced_at":"2025-06-13T17:02:25.672Z","repository":{"id":52250733,"uuid":"327415396","full_name":"Thundernerd/Unity3D-PackageManifestEditor","owner":"Thundernerd","description":"A utility to edit package manifests through code","archived":false,"fork":false,"pushed_at":"2021-05-03T13:41:30.000Z","size":55,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T22:49:11.418Z","etag":null,"topics":["manifest","npm","package","package-manager","unity3d","upm"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thundernerd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"thundernerd","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-01-06T19:52:42.000Z","updated_at":"2022-07-26T13:18:26.000Z","dependencies_parsed_at":"2022-08-30T19:50:50.804Z","dependency_job_id":null,"html_url":"https://github.com/Thundernerd/Unity3D-PackageManifestEditor","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/Thundernerd/Unity3D-PackageManifestEditor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-PackageManifestEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-PackageManifestEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-PackageManifestEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-PackageManifestEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thundernerd","download_url":"https://codeload.github.com/Thundernerd/Unity3D-PackageManifestEditor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-PackageManifestEditor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259685849,"owners_count":22896044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["manifest","npm","package","package-manager","unity3d","upm"],"created_at":"2024-10-30T17:09:39.087Z","updated_at":"2025-06-13T17:02:25.618Z","avatar_url":"https://github.com/Thundernerd.png","language":"C#","funding_links":["https://ko-fi.com/thundernerd","https://ko-fi.com/J3J11GEYY"],"categories":[],"sub_categories":[],"readme":"# Package Manifest Editor\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg alt=\"GitHub package.json version\" src =\"https://img.shields.io/github/package-json/v/Thundernerd/Unity3D-PackageManifestEditor\" /\u003e\n\t\u003ca href=\"https://github.com/Thundernerd/Unity3D-PackageManifestEditor/issues\"\u003e\n\t\t\u003cimg alt=\"GitHub issues\" src =\"https://img.shields.io/github/issues/Thundernerd/Unity3D-PackageManifestEditor\" /\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://github.com/Thundernerd/Unity3D-PackageManifestEditor/pulls\"\u003e\n\t\t\u003cimg alt=\"GitHub pull requests\" src =\"https://img.shields.io/github/issues-pr/Thundernerd/Unity3D-PackageManifestEditor\" /\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://github.com/Thundernerd/Unity3D-PackageManifestEditor/blob/master/LICENSE.md\"\u003e\n\t\t\u003cimg alt=\"GitHub license\" src =\"https://img.shields.io/github/license/Thundernerd/Unity3D-PackageManifestEditor\" /\u003e\n\t\u003c/a\u003e\n\t\u003cimg alt=\"GitHub last commit\" src =\"https://img.shields.io/github/last-commit/Thundernerd/Unity3D-PackageManifestEditor\" /\u003e\n\u003c/p\u003e\n\nPackage Manifest Editor is a utility to edit package manifests through code.\n\n## Installation\n1. The package is available on the [openupm registry](https://openupm.com). You can install it via [openupm-cli](https://github.com/openupm/openupm-cli).\n```\nopenupm add net.tnrd.packagemanifesteditor\n```\n2. Installing through a [Unity Package](http://package-installer.glitch.me/v1/installer/package.openupm.com/net.tnrd.packagemanifesteditor?registry=https://package.openupm.com) created by the [Package Installer Creator](https://package-installer.glitch.me) from [Needle](https://needle.tools)\n\n[\u003cimg src=\"https://img.shields.io/badge/-Download-success?style=for-the-badge\"/\u003e](http://package-installer.glitch.me/v1/installer/package.openupm.com/net.tnrd.packagemanifesteditor?registry=https://package.openupm.com)\n\n## Usage\n\nBefore you can do anything you'll have to open a manifest for editing like so\n```c#\nprivate void Foo()\n{\n    ManifestEditor editor = ManifestEditor.OpenById(\"Package Folder Name\");\n}\n```\nI personally put my packages in folders with the reverse domain name notation so I would use something along the lines of \n```ManifestEditor.OpenById(\"tld.domain.packagename\");```\n\n### Supported attributes\nThis package follows Unity's manifest definition which can be found here: [https://docs.unity3d.com/Manual/upm-manifestPkg.html](https://docs.unity3d.com/Manual/upm-manifestPkg.html)\n\nThe odd one out are is the dependencies attribute. This one can only be read by using the `Dependencies` property on the `ManifestEditor`.\n\nTo add a dependency one can use the `AddDependency` method like so\n```c#\nprivate void Foo()\n{\n    ManifestEditor editor = ManifestEditor.OpenById(\"tld.domain.packagename\");\n    editor.AddDependency(\"tld.domain.packagedependency\", \"1.0.0\");\n}\n```\nThe second parameter requires a version number according to the Semantic Versioning spec using [Artees' SemVer](https://github.com/Artees/Unity-SemVer).\n\nRemoving a dependency is done using the `RemoveDependency` method like so\n```c#\nprivate void Foo()\n{\n    ManifestEditor editor = ManifestEditor.OpenById(\"tld.domain.packagename\");\n    editor.RemoveDependency(\"tld.domain.packagedependency\");\n}\n```\n\n### Saving\nOnce you're done with your changes you can save the manifest file. It will overwrite the existing one on disk.\n```c#\nprivate void Foo()\n{\n    ManifestEditor editor = ManifestEditor.OpenById(\"tld.domain.packagename\");\n    // Do some changes\n    editor.Save();\n}\n```\n\n### Undoing your changes\nIf you want to undo your changes you can simply reload the manifest from disk like so\n```c#\nprivate void Foo()\n{\n    ManifestEditor editor = ManifestEditor.OpenById(\"tld.domain.packagename\");\n    // Some changes applied that you want to undo\n    editor.Reload();\n}\n```\n\n\n## Support\n**Package Manifest Editor** is a small and open-source utility that I hope helps other people. It is by no means necessary but if you feel generous you can support me by donating.\n\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/J3J11GEYY)\n\n## Contributing\nPull requests are welcomed. Please feel free to fix any issues you find, or add new features.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundernerd%2Funity3d-packagemanifesteditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthundernerd%2Funity3d-packagemanifesteditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundernerd%2Funity3d-packagemanifesteditor/lists"}