Create a VPMPackage from Node.js, written in TypeScript. No platform dependency. No additional instructions.
- Node.js >= 16
$ yarn add @natsuneko-laboratory/vpmpackage
import { archive } from "@natsuneko-laboratory/vpmpackage";
await archive({
name: "cat.natsuneko.asset-lens", // package name that archived as ...
package: "Assets/NatsunekoLaboratory/AssetLens/package.json", // package.json path of VPM package
dist: "./dist/package.zip", // output filename
});
# prepare
$ yarn install
# publish
$ npm publish --access public
MIT by @6jz