@arcgis/components-build-utils 5.1.0-next.94 → 5.1.0-next.95

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
@@ -378,7 +378,10 @@ function externalizeDependencies(options) {
378
378
  };
379
379
  return plugin;
380
380
  }
381
- const stringToStartsWithGlob = (option) => typeof option === "string" ? new RegExp(`^${option.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&")}(?:/.+)?$`, "u") : option;
381
+ const stringToStartsWithGlob = (option) => typeof option === "string" ? new RegExp(
382
+ `^${option.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&")}${option.endsWith("/") ? "(?:.+)?" : "(?:/.+)?"}$`,
383
+ "u"
384
+ ) : option;
382
385
  exports.asyncFindPath = asyncFindPath;
383
386
  exports.asyncRetrievePackageJson = asyncRetrievePackageJson;
384
387
  exports.asyncSh = asyncSh;
package/dist/index.js CHANGED
@@ -354,7 +354,10 @@ function externalizeDependencies(options) {
354
354
  };
355
355
  return plugin;
356
356
  }
357
- const stringToStartsWithGlob = (option) => typeof option === "string" ? new RegExp(`^${option.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&")}(?:/.+)?$`, "u") : option;
357
+ const stringToStartsWithGlob = (option) => typeof option === "string" ? new RegExp(
358
+ `^${option.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&")}${option.endsWith("/") ? "(?:.+)?" : "(?:/.+)?"}$`,
359
+ "u"
360
+ ) : option;
358
361
  export {
359
362
  asyncFindPath,
360
363
  asyncRetrievePackageJson,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/components-build-utils",
3
- "version": "5.1.0-next.94",
3
+ "version": "5.1.0-next.95",
4
4
  "description": "Collection of common internal build-time patterns and utilities for ArcGIS Maps SDK for JavaScript components.",
5
5
  "homepage": "https://developers.arcgis.com/javascript/latest/",
6
6
  "type": "module",