@forsakringskassan/vite-lib-config 5.1.7 → 5.1.8
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 +7 -0
- package/package.json +1 -1
package/dist/write-config.mjs
CHANGED
|
@@ -622,6 +622,13 @@ async function run(cwd, argv) {
|
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
624
624
|
const pkg = await readJsonFile(path3.join(cwd, "package.json"));
|
|
625
|
+
if (!pkg.devDependencies?.["@forsakringskassan/vite-lib-config"]) {
|
|
626
|
+
console.error(
|
|
627
|
+
`The "${pkg.name}" does not use "@forsakringskassan/vite-lib-config".`
|
|
628
|
+
);
|
|
629
|
+
console.error(`Skipping writing configuration.`);
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
625
632
|
const cypressConfigPath = await findCypressConfigPath(cwd);
|
|
626
633
|
const testRunner = detectTestRunner(flags);
|
|
627
634
|
const options = {
|