Menu

Methods

@natsuneko-laboratory/vpmpackage provides the following method(s).

archive(args: { name: string, package: string, dist: string }): Promise<void>

Signature

ParameterTypeRequiredDescription
argsobjectYesArguments for this method.
namestringYesName of package
packagestringYesPath to package.json for VPM Package
diststringYesPath to output VPM package

Description

Create vpmpackage from your Unity project.

Exception

Exception NameDescription
ErrorThrown if files is empty or root is not directory or dist is not file

Example

import { archive } from "@natsuneko-laboratory/vpmpackage";

await archive({
  name: "cat.natsuneko.vpmpackage",
  package: "./Asset/NatsunekoLaboratory/YourPackage/package.json",
  dist: "./cat.natsuneko.vpmpackage-v1.0.0.zip",
});