@forsakringskassan/vite-lib-config 5.4.2 → 5.4.3
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 +3 -2
- package/package.json +1 -1
package/dist/write-config.mjs
CHANGED
|
@@ -715,18 +715,19 @@ async function writeJsonFile(cwd, filename, content) {
|
|
|
715
715
|
function updateBuildScripts(pkg, options) {
|
|
716
716
|
const result = { ...pkg, scripts: { ...pkg.scripts } };
|
|
717
717
|
const haveBuildMock = Boolean(result.scripts["build:mock"]);
|
|
718
|
+
const buildSelectors = options.enableSelectors || options.enablePageobjects;
|
|
718
719
|
result.scripts.build = [
|
|
719
720
|
"run-s",
|
|
720
721
|
haveBuildMock ? "build:mock" : null,
|
|
721
722
|
"build:lib",
|
|
722
|
-
|
|
723
|
+
buildSelectors ? "build:selectors" : null,
|
|
723
724
|
"build:dts",
|
|
724
725
|
options.enableApiExtractor ? "build:api" : null
|
|
725
726
|
].filter(Boolean).join(" ");
|
|
726
727
|
result.scripts["build:api"] = options.enableApiExtractor ? "fk-api-extractor api-extractor.*.json" : void 0;
|
|
727
728
|
result.scripts["build:dts"] = "vue-tsc -b";
|
|
728
729
|
result.scripts["build:lib"] = "fk-build-vue-lib";
|
|
729
|
-
result.scripts["build:selectors"] =
|
|
730
|
+
result.scripts["build:selectors"] = buildSelectors ? "fk-build-selectors" : void 0;
|
|
730
731
|
delete result.scripts["build:pageobject"];
|
|
731
732
|
return result;
|
|
732
733
|
}
|