@forsakringskassan/vite-lib-config 5.9.1 → 5.9.2

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.
@@ -835,7 +835,8 @@ async function findCypressConfigPath(cwd) {
835
835
  const { findUp: findUp2 } = await Promise.resolve().then(() => (init_find_up(), find_up_exports));
836
836
  const absolutePath = await findUp2("cypress/tsconfig.json", { cwd });
837
837
  if (absolutePath) {
838
- return path3.relative(cwd, absolutePath).replaceAll("\\", "/");
838
+ const relativePath = path3.relative(cwd, absolutePath).replaceAll("\\", "/");
839
+ return relativePath.startsWith(".") ? relativePath : `./${relativePath}`;
839
840
  }
840
841
  return "./cypress/tsconfig.json";
841
842
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "5.9.1",
3
+ "version": "5.9.2",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"