Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// This is a helper file to make it easier to tell when verdaccio successfully launches or fails to launch.
// Using verdaccio CLI has the same output whether it fails or succeeds, just one additional line if it fails,
// making it very hard to tell if it spawned correctly.
const startServer = require('verdaccio').default;
const store = require('verdaccio-memory').default;
const arguments = {
port: process.argv[2]
};
const port = arguments.port;
if (!port) {
console.error('Please provide a port');
} else {
const config = {
packages: {
'**': {
access: '$anonymous',
publish: '$anonymous'
}