@shipstatic/drop 2.10.4-beta.11 → 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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +1 -1
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/testing.js.map +1 -1
- package/package.json +3 -3
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: `${
|
|
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:
|
|
1141
|
+
status: { title: CANT_DEPLOY, details: "The folder has no files." }
|
|
1142
1142
|
});
|
|
1143
1143
|
return;
|
|
1144
1144
|
}
|