@forsakringskassan/vite-lib-config 3.5.0 → 3.6.0

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.
@@ -9156,10 +9156,10 @@ function createDedent(options) {
9156
9156
  // src/utils/extract-augmentations.ts
9157
9157
  function extractAugmentations(content) {
9158
9158
  const matches = content.matchAll(
9159
- /^declare module\s*"([^"]+)"\s*{([^]+?)^}/gm
9159
+ /^declare (?:module\s*"([^"]+)"|global)\s*{([^]+?)^}/gm
9160
9160
  );
9161
9161
  return Array.from(matches).map((it) => {
9162
- const [withDeclaration, name, withoutDeclaration] = it;
9162
+ const [withDeclaration, name = "", withoutDeclaration] = it;
9163
9163
  if (name.startsWith(".")) {
9164
9164
  const exported = withoutDeclaration.replace(
9165
9165
  /^(\s*)interface/g,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"