sindresorhus / np

A better `npm publish`
MIT License
7.56k stars 299 forks source link

Provide a way to silently approve in advanced files that won't be part of the published package #713

Open Asaf-S opened 1 year ago

Asaf-S commented 1 year ago

Description

Scenario:

  1. Commit changes to the code.
  2. Run np.

Current behavior:

  1. np prompts: The following new files will not be part of your published package: and waits for manual interaction.

Is the feature request related to a problem? No.

Possible implementation

Suggested behavior:

  1. The current behavior should be the default behavior.
  2. Provide a flag (e.g. --y or --suppress-ignored-files-warning) to auto-approve in advance the files that will not be part of your published package (without listing them and without human interaction).
  3. If such an option exists - document it better :)

Alternatives

Manually approve the file list every time.