fbredius/storybook

View on GitHub
scripts/run-registry.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function run has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const run = async () => {
  const port = await freePort(program.port);
  logger.log(`🌏 found a open port: ${port}`);

  const verdaccioUrl = `http://localhost:${port}`;
Severity: Minor
Found in scripts/run-registry.ts - About 1 hr to fix

    Function publish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const publish = (packages: { name: string; location: string }[], url: string) => {
      logger.log(`Publishing packages with a concurrency of ${maxConcurrentTasks}`);
    
      const limit = pLimit(maxConcurrentTasks);
      let i = 0;
    Severity: Minor
    Found in scripts/run-registry.ts - About 1 hr to fix

      Function startVerdaccio has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const startVerdaccio = (port: number) => {
        let resolved = false;
        return Promise.race([
          new Promise((resolve) => {
            const cache = path.join(__dirname, '..', '.verdaccio-cache');
      Severity: Minor
      Found in scripts/run-registry.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status