UNPKG

verdaccio

Version:

A lightweight private npm proxy registry

1 lines • 1.08 kB
{"version":3,"file":"cli.cjs","names":["getPackageVersion","runCli"],"sources":["../../../src/lib/cli.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { runCli } from '@verdaccio/cli';\n\nimport { startServer } from './run-server';\nimport { getPackageVersion } from './utils';\n\nconst pkgVersion = getPackageVersion();\n\nif (pkgVersion.includes('canary')) {\n console.warn(\n '\\n' +\n '⚠️ WARNING: You are running a CANARY build of Verdaccio (v' +\n pkgVersion +\n ').\\n' +\n ' This is an unstable pre-release version meant for testing only.\\n' +\n ' Do not use in production. For stable releases: npm install -g verdaccio\\n'\n );\n}\n\n// Reuse @verdaccio/cli's command set, but inject 7.x's server factory so the\n// registry boots with the legacy-callback-capable Storage.\nrunCli({ startServer, version: pkgVersion, pkgName: 'verdaccio' });\n"],"mappings":";;;;;;AAMA,IAAM,aAAaA,kBAAAA,kBAAkB;AAErC,IAAI,WAAW,SAAS,QAAQ,GAC9B,QAAQ,KACN,kEAEE,aACA,sJAGJ;CAKFC,GAAAA,eAAAA,OAAAA,CAAO;CAAE,aAAA,uBAAA;CAAa,SAAS;CAAY,SAAS;AAAY,CAAC"}