1.0.0 • Published 5 months ago

local-dependency-packager v1.0.0

Weekly downloads
-
License
GLP-3.0
Repository
github
Last release
5 months ago

locally running codesandbox dependency packager. There is no aws-s3 and aws-lambda. Only run locally.

const { pack } = require("local-dependency-packager");
const path = require("path");
async function exec() {
  const response = await pack(
    {
      name: "axios",
      version: "1.5.1",
    },
    {
      registry: "https://registry.npmmirror.com",
      installArgs: ["--json"],
      yarnCliPath: path.resolve(__dirname, "./node_modules/yarn/lib/cli"),
    },
  );
}

exec();