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

Signature

archive(args: { name: string, package: string, dist: string }): Promise<void>
ParameterTypeRequiredDescription
argsobjectYesArguments for this method.
namestringYesName of package
packagestringYesPath to package.json for VPM Package
diststringYesPath to output VPM package

Description

VPM Package を作成します。

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",
});
archive(args: { name: string, package: string, dist: string }): Promise<void> / vpmpackage / Natsuneko Laboratory Docs