@shipstatic/drop 2.13.0-beta.3 → 2.13.0-beta.4

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/README.md CHANGED
@@ -188,7 +188,7 @@ const ready = drop.files.filter(f => f.status === FileValidationStatus.READY);
188
188
 
189
189
  ## Build on upload
190
190
 
191
- Drop recognises an unbuilt project (source files with `package.json` / `node_modules`) and sets `needsBuild`. The project is sent as its repository holds it: `node_modules` stays behind (it is skipped during traversal and stripped from folder-picker selections), and so does whatever the project's `.gitignore` lists, read the way git reads it, so an old `dist/` never rides along. A project's source isn't the site, so neither the entry-point check nor deploy validation applies to it: Astro, Next.js, SvelteKit and Eleventy have no `index.html` until they are built. Every file goes straight to `ready`, and the build gives the verdict.
191
+ Drop recognises an unbuilt project (source files with `package.json` / `node_modules`) and sets `needsBuild`. `node_modules` stays behind (it is skipped during traversal and stripped from folder-picker selections), and so does whatever the project's `.gitignore` lists, read the way git reads it, so an old `dist/` the project ignores never rides along. A project's source isn't the site, so neither the entry-point check nor deploy validation applies to it: Astro, Next.js, SvelteKit and Eleventy have no `index.html` until they are built. Every file goes straight to `ready`, and the build gives the verdict.
192
192
 
193
193
  Pass the signal through to the SDK:
194
194
 
package/dist/index.cjs CHANGED
@@ -282,6 +282,7 @@ function rebase(line, base) {
282
282
  let body = negated ? pattern.slice(1) : pattern;
283
283
  const directoryOnly = body.endsWith("/");
284
284
  if (directoryOnly) body = body.slice(0, -1);
285
+ if (body.replace(/^\//, "") === "") return null;
285
286
  const rebased = body.includes("/") ? `${folder}/${body.replace(/^\//, "")}` : `${folder}/**/${body}`;
286
287
  return `${negated ? "!" : ""}${rebased}${directoryOnly ? "/" : ""}`;
287
288
  }
@@ -1025,7 +1026,7 @@ async function processFiles(input, { limits, onStatus }) {
1025
1026
  needsBuild: true,
1026
1027
  status: {
1027
1028
  title: "Ready",
1028
- details: `${ship.pluralize(ready.length, "file", "files", true)} ready \u2014 project will be built`
1029
+ details: `${ship.pluralize(ready.length, "file", "files", true)} ready. We'll build the project.`
1029
1030
  }
1030
1031
  };
1031
1032
  }