1. #!/usr/bin/env node
    
  2. 
    
  3. 'use strict';
    
  4. 
    
  5. const clear = require('clear');
    
  6. const {confirm} = require('../utils');
    
  7. const theme = require('../theme');
    
  8. 
    
  9. const run = async ({cwd, packages, skipPackages, tags}) => {
    
  10.   if (skipPackages.length === 0) {
    
  11.     return;
    
  12.   }
    
  13. 
    
  14.   clear();
    
  15. 
    
  16.   console.log(
    
  17.     theme`{spinnerSuccess ✓} The following packages will not be published as part of this release`
    
  18.   );
    
  19. 
    
  20.   skipPackages.forEach(packageName => {
    
  21.     console.log(theme`• {package ${packageName}}`);
    
  22.   });
    
  23. 
    
  24.   await confirm('Do you want to proceed?');
    
  25. 
    
  26.   clear();
    
  27. };
    
  28. 
    
  29. // Run this directly because it's fast,
    
  30. // and logPromise would interfere with console prompting.
    
  31. module.exports = run;