@shipstatic/drop 2.10.4-beta.12 → 2.10.4-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1015,10 +1015,10 @@ async function processFiles(input, { limits, onStatus }) {
1015
1015
  statusMessage: validation.files[i]?.statusMessage ?? file.statusMessage
1016
1016
  }));
1017
1017
  if (!validation.canDeploy) {
1018
+ const issues = validation.errors.map((e) => e.message);
1018
1019
  return failure({
1019
1020
  title: CANT_DEPLOY,
1020
- details: `${ship.pluralize(validation.errors.length, "file", "files", true)} refused`,
1021
- errors: validation.errors.map((e) => e.message),
1021
+ ...issues.length === 1 ? { details: issues[0] } : { details: `${issues.length} files refused`, errors: issues },
1022
1022
  files: validated,
1023
1023
  sourceName
1024
1024
  });
@@ -1138,7 +1138,7 @@ function useDrop({ ship }) {
1138
1138
  setState({
1139
1139
  ...initialState,
1140
1140
  phase: "error",
1141
- status: { title: "Empty Folder", details: "It has no files to deploy." }
1141
+ status: { title: CANT_DEPLOY, details: "The folder has no files." }
1142
1142
  });
1143
1143
  return;
1144
1144
  }