@form8ion/javascript 11.6.1 → 11.7.1
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/lib/index.js +24 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +24 -6
- package/lib/index.mjs.map +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -143,7 +143,7 @@ async function lift$2({projectRoot, packageManager}) {
|
|
|
143
143
|
]);
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
return
|
|
146
|
+
return codecovResults;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
function c8IsConfigured ({projectRoot}) {
|
|
@@ -503,13 +503,31 @@ async function scaffoldPackageType ({
|
|
|
503
503
|
]);
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
|
|
506
|
+
function enhanceSlsa ({packageDetails: {publishConfig: {access, provenance}}}) {
|
|
507
|
+
if ('public' === access && provenance) {
|
|
508
|
+
return {
|
|
509
|
+
badges: {
|
|
510
|
+
status: {
|
|
511
|
+
slsa: {
|
|
512
|
+
img: 'https://slsa.dev/images/gh-badge-level2.svg',
|
|
513
|
+
url: 'https://slsa.dev',
|
|
514
|
+
text: 'SLSA Level 2'
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
return {};
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
async function liftPublishable ({projectRoot, packageDetails}) {
|
|
507
525
|
await javascriptCore.mergeIntoExistingPackageJson({projectRoot, config: {publishConfig: {provenance: true}}});
|
|
508
526
|
|
|
509
|
-
return
|
|
510
|
-
|
|
511
|
-
scripts: {'lint:publish': 'publint --strict'}
|
|
512
|
-
|
|
527
|
+
return deepmerge__default["default"](
|
|
528
|
+
enhanceSlsa({packageDetails}),
|
|
529
|
+
{devDependencies: ['publint'], scripts: {'lint:publish': 'publint --strict'}}
|
|
530
|
+
);
|
|
513
531
|
}
|
|
514
532
|
|
|
515
533
|
function liftPackage$1 ({projectRoot, packageDetails}) {
|