@forsakringskassan/vite-lib-config 2.3.0 → 3.1.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.
- package/README.md +3 -3
- package/dist/api-extractor.js +80 -41
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/vite.config.cjs +404 -293
- package/dist/vite.config.mjs +4320 -4225
- package/package.json +3 -3
package/README.md
CHANGED
package/dist/api-extractor.js
CHANGED
|
@@ -237,14 +237,24 @@ var require_brace_expansion = __commonJS({
|
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
|
|
240
|
-
// node_modules/ci-info/vendors.json
|
|
240
|
+
// node_modules/is-ci/node_modules/ci-info/vendors.json
|
|
241
241
|
var require_vendors = __commonJS({
|
|
242
|
-
"node_modules/ci-info/vendors.json"(exports2, module2) {
|
|
242
|
+
"node_modules/is-ci/node_modules/ci-info/vendors.json"(exports2, module2) {
|
|
243
243
|
module2.exports = [
|
|
244
|
+
{
|
|
245
|
+
name: "Agola CI",
|
|
246
|
+
constant: "AGOLA",
|
|
247
|
+
env: "AGOLA_GIT_REF",
|
|
248
|
+
pr: "AGOLA_PULL_REQUEST_ID"
|
|
249
|
+
},
|
|
244
250
|
{
|
|
245
251
|
name: "Appcircle",
|
|
246
252
|
constant: "APPCIRCLE",
|
|
247
|
-
env: "AC_APPCIRCLE"
|
|
253
|
+
env: "AC_APPCIRCLE",
|
|
254
|
+
pr: {
|
|
255
|
+
env: "AC_GIT_PR",
|
|
256
|
+
ne: "false"
|
|
257
|
+
}
|
|
248
258
|
},
|
|
249
259
|
{
|
|
250
260
|
name: "AppVeyor",
|
|
@@ -255,13 +265,23 @@ var require_vendors = __commonJS({
|
|
|
255
265
|
{
|
|
256
266
|
name: "AWS CodeBuild",
|
|
257
267
|
constant: "CODEBUILD",
|
|
258
|
-
env: "CODEBUILD_BUILD_ARN"
|
|
268
|
+
env: "CODEBUILD_BUILD_ARN",
|
|
269
|
+
pr: {
|
|
270
|
+
env: "CODEBUILD_WEBHOOK_EVENT",
|
|
271
|
+
any: [
|
|
272
|
+
"PULL_REQUEST_CREATED",
|
|
273
|
+
"PULL_REQUEST_UPDATED",
|
|
274
|
+
"PULL_REQUEST_REOPENED"
|
|
275
|
+
]
|
|
276
|
+
}
|
|
259
277
|
},
|
|
260
278
|
{
|
|
261
279
|
name: "Azure Pipelines",
|
|
262
280
|
constant: "AZURE_PIPELINES",
|
|
263
|
-
env: "
|
|
264
|
-
pr:
|
|
281
|
+
env: "TF_BUILD",
|
|
282
|
+
pr: {
|
|
283
|
+
BUILD_REASON: "PullRequest"
|
|
284
|
+
}
|
|
265
285
|
},
|
|
266
286
|
{
|
|
267
287
|
name: "Bamboo",
|
|
@@ -344,6 +364,11 @@ var require_vendors = __commonJS({
|
|
|
344
364
|
constant: "DSARI",
|
|
345
365
|
env: "DSARI"
|
|
346
366
|
},
|
|
367
|
+
{
|
|
368
|
+
name: "Earthly",
|
|
369
|
+
constant: "EARTHLY",
|
|
370
|
+
env: "EARTHLY_CI"
|
|
371
|
+
},
|
|
347
372
|
{
|
|
348
373
|
name: "Expo Application Services",
|
|
349
374
|
constant: "EAS",
|
|
@@ -354,6 +379,11 @@ var require_vendors = __commonJS({
|
|
|
354
379
|
constant: "GERRIT",
|
|
355
380
|
env: "GERRIT_PROJECT"
|
|
356
381
|
},
|
|
382
|
+
{
|
|
383
|
+
name: "Gitea Actions",
|
|
384
|
+
constant: "GITEA_ACTIONS",
|
|
385
|
+
env: "GITEA_ACTIONS"
|
|
386
|
+
},
|
|
357
387
|
{
|
|
358
388
|
name: "GitHub Actions",
|
|
359
389
|
constant: "GITHUB_ACTIONS",
|
|
@@ -439,6 +469,11 @@ var require_vendors = __commonJS({
|
|
|
439
469
|
ne: "false"
|
|
440
470
|
}
|
|
441
471
|
},
|
|
472
|
+
{
|
|
473
|
+
name: "Prow",
|
|
474
|
+
constant: "PROW",
|
|
475
|
+
env: "PROW_JOB_ID"
|
|
476
|
+
},
|
|
442
477
|
{
|
|
443
478
|
name: "ReleaseHub",
|
|
444
479
|
constant: "RELEASEHUB",
|
|
@@ -473,20 +508,6 @@ var require_vendors = __commonJS({
|
|
|
473
508
|
env: "SEMAPHORE",
|
|
474
509
|
pr: "PULL_REQUEST_NUMBER"
|
|
475
510
|
},
|
|
476
|
-
{
|
|
477
|
-
name: "Shippable",
|
|
478
|
-
constant: "SHIPPABLE",
|
|
479
|
-
env: "SHIPPABLE",
|
|
480
|
-
pr: {
|
|
481
|
-
IS_PULL_REQUEST: "true"
|
|
482
|
-
}
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
name: "Solano CI",
|
|
486
|
-
constant: "SOLANO",
|
|
487
|
-
env: "TDDIUM",
|
|
488
|
-
pr: "TDDIUM_PR_ID"
|
|
489
|
-
},
|
|
490
511
|
{
|
|
491
512
|
name: "Sourcehut",
|
|
492
513
|
constant: "SOURCEHUT",
|
|
@@ -521,6 +542,14 @@ var require_vendors = __commonJS({
|
|
|
521
542
|
ne: "false"
|
|
522
543
|
}
|
|
523
544
|
},
|
|
545
|
+
{
|
|
546
|
+
name: "Vela",
|
|
547
|
+
constant: "VELA",
|
|
548
|
+
env: "VELA",
|
|
549
|
+
pr: {
|
|
550
|
+
VELA_PULL_REQUEST: "1"
|
|
551
|
+
}
|
|
552
|
+
},
|
|
524
553
|
{
|
|
525
554
|
name: "Vercel",
|
|
526
555
|
constant: "VERCEL",
|
|
@@ -529,7 +558,8 @@ var require_vendors = __commonJS({
|
|
|
529
558
|
"NOW_BUILDER",
|
|
530
559
|
"VERCEL"
|
|
531
560
|
]
|
|
532
|
-
}
|
|
561
|
+
},
|
|
562
|
+
pr: "VERCEL_GIT_PULL_REQUEST_ID"
|
|
533
563
|
},
|
|
534
564
|
{
|
|
535
565
|
name: "Visual Studio App Center",
|
|
@@ -561,9 +591,9 @@ var require_vendors = __commonJS({
|
|
|
561
591
|
}
|
|
562
592
|
});
|
|
563
593
|
|
|
564
|
-
// node_modules/ci-info/index.js
|
|
594
|
+
// node_modules/is-ci/node_modules/ci-info/index.js
|
|
565
595
|
var require_ci_info = __commonJS({
|
|
566
|
-
"node_modules/ci-info/index.js"(exports2) {
|
|
596
|
+
"node_modules/is-ci/node_modules/ci-info/index.js"(exports2) {
|
|
567
597
|
"use strict";
|
|
568
598
|
var vendors = require_vendors();
|
|
569
599
|
var env = process.env;
|
|
@@ -574,6 +604,7 @@ var require_ci_info = __commonJS({
|
|
|
574
604
|
});
|
|
575
605
|
exports2.name = null;
|
|
576
606
|
exports2.isPR = null;
|
|
607
|
+
exports2.id = null;
|
|
577
608
|
vendors.forEach(function(vendor) {
|
|
578
609
|
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
|
|
579
610
|
const isCI2 = envs.every(function(obj) {
|
|
@@ -584,24 +615,8 @@ var require_ci_info = __commonJS({
|
|
|
584
615
|
return;
|
|
585
616
|
}
|
|
586
617
|
exports2.name = vendor.name;
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
exports2.isPR = !!env[vendor.pr];
|
|
590
|
-
break;
|
|
591
|
-
case "object":
|
|
592
|
-
if ("env" in vendor.pr) {
|
|
593
|
-
exports2.isPR = vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne;
|
|
594
|
-
} else if ("any" in vendor.pr) {
|
|
595
|
-
exports2.isPR = vendor.pr.any.some(function(key) {
|
|
596
|
-
return !!env[key];
|
|
597
|
-
});
|
|
598
|
-
} else {
|
|
599
|
-
exports2.isPR = checkEnv(vendor.pr);
|
|
600
|
-
}
|
|
601
|
-
break;
|
|
602
|
-
default:
|
|
603
|
-
exports2.isPR = null;
|
|
604
|
-
}
|
|
618
|
+
exports2.isPR = checkPR(vendor);
|
|
619
|
+
exports2.id = vendor.constant;
|
|
605
620
|
});
|
|
606
621
|
exports2.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
607
622
|
(env.BUILD_ID || // Jenkins, Cloudbees
|
|
@@ -628,6 +643,30 @@ var require_ci_info = __commonJS({
|
|
|
628
643
|
return env[k] === obj[k];
|
|
629
644
|
});
|
|
630
645
|
}
|
|
646
|
+
function checkPR(vendor) {
|
|
647
|
+
switch (typeof vendor.pr) {
|
|
648
|
+
case "string":
|
|
649
|
+
return !!env[vendor.pr];
|
|
650
|
+
case "object":
|
|
651
|
+
if ("env" in vendor.pr) {
|
|
652
|
+
if ("any" in vendor.pr) {
|
|
653
|
+
return vendor.pr.any.some(function(key) {
|
|
654
|
+
return env[vendor.pr.env] === key;
|
|
655
|
+
});
|
|
656
|
+
} else {
|
|
657
|
+
return vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne;
|
|
658
|
+
}
|
|
659
|
+
} else if ("any" in vendor.pr) {
|
|
660
|
+
return vendor.pr.any.some(function(key) {
|
|
661
|
+
return !!env[key];
|
|
662
|
+
});
|
|
663
|
+
} else {
|
|
664
|
+
return checkEnv(vendor.pr);
|
|
665
|
+
}
|
|
666
|
+
default:
|
|
667
|
+
return null;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
631
670
|
}
|
|
632
671
|
});
|
|
633
672
|
|