@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.
- package/dist/write-config.mjs +2 -1
- package/package.json +1 -1
package/dist/write-config.mjs
CHANGED
|
@@ -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
|
-
|
|
838
|
+
const relativePath = path3.relative(cwd, absolutePath).replaceAll("\\", "/");
|
|
839
|
+
return relativePath.startsWith(".") ? relativePath : `./${relativePath}`;
|
|
839
840
|
}
|
|
840
841
|
return "./cypress/tsconfig.json";
|
|
841
842
|
}
|